From a3767f483a8f743be2f40ac05af491f2b7bde244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 29 Sep 2003 15:56:07 +0000 Subject: [PATCH] Fix timestamp before restoring focus - FocusIn event has no timestamp :(. svn path=/trunk/kdebase/kwin/; revision=254891 --- activation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/activation.cpp b/activation.cpp index 15bfc8ada9..069ed94675 100644 --- a/activation.cpp +++ b/activation.cpp @@ -476,6 +476,11 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in // wasn't allowed to activate 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 ) requestFocus( should_get_focus.last()); else if( last_active_client )