[KWin - Dock Question] - How to hide a window from PresentWindows effect?
Martin Graesslin
mgraesslin at kde.org
Thu Dec 8 18:29:36 UTC 2016
On Thursday, December 8, 2016 7:17:31 PM CET Michail Vourlakos wrote:
> Hello everyone,
>
> in NowDock I have managed to subclass a QuickWindow in order to provide
> masking and various visibility states for the dock.
>
> In all the visibility states I am setting for this subclassed window:
>
> m_dockWindow->setFlags(Qt::FramelessWindowHint|Qt::WindowDoesNotAcceptFocus)
> ; KWindowSystem::setState(m_dockWindow->winId(), NET::SkipTaskbar |
> NET::SkipPager);
>
>
> but even though the above code enables me to make my dock ontop or
> onbottom when I need it, it doesnt hide my dock from the "present
> windows effect" and from the "Alt+Tab". I tried to use:
>
> KWindowSystem::setType(m_dockWindow->winId(), NET::Dock);
>
> m_dockWindow->setFlags(m_dockWindow->flags() ^ (Qt::WindowStaysOnTopHint));
>
>
> but it didnt help, the dock is still shown in the window effects....
There is no way for a window to hint that it should be excluded from
switchers. Only inside KWin there is a windows-specific rule to exclude windows
from switchers.
The problem here is clearly that your window is still accepting focus. If it
doesn't accept focus KWin will skip it. So verify with xprop and xwininfo that
the window is really excluding focus.
Cheers
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161208/834028f0/attachment.sig>
More information about the Plasma-devel
mailing list