Yet another workaround for the crappy systray mechanism, looking forward

to deprecate it. The tray should work again now.

svn path=/trunk/kdebase/kwin/; revision=263494
This commit is contained in:
Luboš Luňák 2003-10-31 17:56:10 +00:00
parent 50a9e9aa2e
commit 0d96e60c81

View file

@ -290,6 +290,10 @@ bool Workspace::workspaceEvent( XEvent * e )
case ReparentNotify:
{
// Check if a systray has been reparented back to the root window, even if not mapped.
// QXEmbed doesn't map the window when reparenting back.
if( e->xreparent.parent == root )
addSystemTrayWin( e->xreparent.window );
//do not confuse Qt with these events. After all, _we_ are the
//window manager who does the reparenting.
return TRUE;