Bug 11536 - Desktop Plane plugin does not focus the top most window in a viewport when switching
Summary: Desktop Plane plugin does not focus the top most window in a viewport when sw...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/compiz (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: David Reveman
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2007-07-10 21:53 UTC by Ed Martin
Modified: 2007-10-01 01:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ed Martin 2007-07-10 21:53:11 UTC
When using the Desktop Plane plugin and switching viewports the top-most window in the new viewport should be focused, right now the focus does not change and you end up with the focused window being off screen

I looked at the rotate cube plugin which does not have this bug and came up with this patch which appears to work

diff --git a/plugins/plane.c b/plugins/plane.c
index 0ebfa2e..4581177 100644
--- a/plugins/plane.c
+++ b/plugins/plane.c
@@ -188,7 +188,7 @@ planePreparePaintScreen (CompScreen *s,
     PLANE_SCREEN (s);
 
     ps->timer -= msSinceLastPaint;
-
+    focusDefaultWindow (s->display);
     UNWRAP (ps, s, preparePaintScreen);
 
     (* s->preparePaintScreen) (s, msSinceLastPaint);


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.