Handle expose events for root window.

svn path=/branches/work/kwin_composite/; revision=558264
This commit is contained in:
Luboš Luňák 2006-07-04 23:46:02 +00:00
parent f4f07d4fd3
commit dfe8968d8e
2 changed files with 6 additions and 1 deletions

View file

@ -472,6 +472,10 @@ bool Workspace::workspaceEvent( XEvent * e )
XRefreshKeyboardMapping( &e->xmapping );
tab_box->updateKeyMapping();
break;
case Expose:
if( e->xexpose.window == rootWindow() && compositing())
setDamaged(); // root window needs repainting
break;
default:
break;
}

View file

@ -169,7 +169,8 @@ Workspace::Workspace( bool restore )
ColormapChangeMask |
SubstructureRedirectMask |
SubstructureNotifyMask |
FocusChangeMask // for NotifyDetailNone
FocusChangeMask | // for NotifyDetailNone
ExposureMask
);
Extensions::init();