Fix timestamp before restoring focus - FocusIn event has no timestamp :(.
svn path=/trunk/kdebase/kwin/; revision=254891
This commit is contained in:
parent
0050bd7155
commit
a3767f483a
1 changed files with 5 additions and 0 deletions
|
@ -476,6 +476,11 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in
|
||||||
// wasn't allowed to activate
|
// wasn't allowed to activate
|
||||||
void Workspace::restoreFocus()
|
void Workspace::restoreFocus()
|
||||||
{
|
{
|
||||||
|
// this updateXTime() is necessary - as FocusIn events don't have
|
||||||
|
// a timestamp *sigh*, kwin's timestamp would be older than the timestamp
|
||||||
|
// that was used by whoever caused the focus change, and therefore
|
||||||
|
// the attempt to restore the focus would fail due to old timestamp
|
||||||
|
updateXTime();
|
||||||
if( should_get_focus.count() > 0 )
|
if( should_get_focus.count() > 0 )
|
||||||
requestFocus( should_get_focus.last());
|
requestFocus( should_get_focus.last());
|
||||||
else if( last_active_client )
|
else if( last_active_client )
|
||||||
|
|
Loading…
Reference in a new issue