improved stays-on-top hint handling
svn path=/trunk/kdebase/kwin/; revision=56111
This commit is contained in:
parent
678f92f146
commit
c3a382cac9
2 changed files with 8 additions and 5 deletions
|
@ -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 )
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue