improved stays-on-top hint handling

svn path=/trunk/kdebase/kwin/; revision=56111
This commit is contained in:
Matthias Ettrich 2000-07-11 14:38:17 +00:00
parent 678f92f146
commit c3a382cac9
2 changed files with 8 additions and 5 deletions

View file

@ -450,7 +450,7 @@ Client::Client( Workspace *ws, WId w, QWidget *parent, const char *name, WFlags
// window wants to stay on top?
stays_on_top = info->state() & NET::StaysOnTop;
stays_on_top = ( info->state() & NET::StaysOnTop) != 0;
@ -1879,7 +1879,7 @@ void Client::takeFocus()
{
if ( isMenu() )
return; // menus don't take focus
if ( input )
XSetInputFocus( qt_xdisplay(), win, RevertToPointerRoot, kwin_time );
if ( Ptakefocus )

View file

@ -258,10 +258,9 @@ Workspace::Workspace( bool restore )
grabKey(XK_Tab, ControlMask);
grabKey(XK_Tab, ControlMask | ShiftMask);
createKeybindings();
init();
tab_box = new TabBox( this );
init();
}
void Workspace::init()
@ -349,6 +348,10 @@ void Workspace::init()
}
updateClientArea();
// initialize stacking
if ( stacking_order.last() )
raiseClient( stacking_order.last() );
}
Workspace::~Workspace()