improved stays-on-top hint handling

svn path=/trunk/kdebase/kwin/; revision=56111
icc-effect-5.14.5
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? // 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() ) if ( isMenu() )
return; // menus don't take focus return; // menus don't take focus
if ( input ) if ( input )
XSetInputFocus( qt_xdisplay(), win, RevertToPointerRoot, kwin_time ); XSetInputFocus( qt_xdisplay(), win, RevertToPointerRoot, kwin_time );
if ( Ptakefocus ) if ( Ptakefocus )

View File

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