more netwm details

svn path=/trunk/kdebase/kwin/; revision=71162
This commit is contained in:
Matthias Ettrich 2000-11-17 16:39:47 +00:00
parent 5b8bc65b2b
commit 2d401d3acc

View file

@ -404,6 +404,11 @@ bool Workspace::workspaceEvent( XEvent * e )
XUngrabKeyboard( qt_xdisplay(), kwin_time ); XUngrabKeyboard( qt_xdisplay(), kwin_time );
} }
if ( e->type == PropertyNotify || e->type == ClientMessage ) {
if ( netCheck( e ) )
return TRUE;
}
Client * c = findClient( e->xany.window ); Client * c = findClient( e->xany.window );
if ( c ) if ( c )
return c->windowEvent( e ); return c->windowEvent( e );
@ -529,10 +534,6 @@ bool Workspace::workspaceEvent( XEvent * e )
break; break;
case FocusOut: case FocusOut:
break; break;
case PropertyNotify:
case ClientMessage:
return netCheck( e );
break;
default: default:
if ( e->type == Shape::shapeEvent() ) { if ( e->type == Shape::shapeEvent() ) {
c = findClient( ((XShapeEvent *)e)->window ); c = findClient( ((XShapeEvent *)e)->window );
@ -1949,7 +1950,7 @@ bool Workspace::netCheck( XEvent* e )
if ( dirty & NET::DesktopNames ) if ( dirty & NET::DesktopNames )
saveDesktopSettings(); saveDesktopSettings();
return FALSE; return dirty != 0;
} }
/*! /*!