Bug 14016

Summary: Compiz Scale plugin should select window if none currently selected
Product: xorg Reporter: dmenest-alliztdf
Component: App/compizAssignee: David Reveman <reveman>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium CC: m.wissenbach
Version: 7.2 (2007.02)   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Sample 1-2 line patch to solve the problem none

Description dmenest-alliztdf 2008-01-10 15:45:33 UTC
The Scale Window Title Filter plugin from Compiz Fusion interacts with the Scale plugin by updating the Scale plugin's CompMatch and then telling it to relayout the slots (via the scaleRelayoutSlots function).  If the new CompMatch filters out the currently selected window, then no new window is selected, and the user must move the mouse or press an arrow key to select a window.  The Scale plugin should ensure that some window remains selected after a relayout.
Comment 1 dmenest-alliztdf 2008-01-10 15:49:37 UTC
Created attachment 13655 [details] [review]
Sample 1-2 line patch to solve the problem

This is how I solved the problem myself.  I called scaleMoveFocusWindow (s, 0, 0) in scaleRelayoutSlots.  This ought to update the selected window if none is currently displayed.

I'm not too familiar with the code base, but this is as simple as I could make the patch.
Comment 2 m.wissenbach 2008-02-18 12:44:25 UTC
Just want to say that I am also interested in this being solved!
Comment 3 Danny Baumann 2008-02-23 08:28:12 UTC
Fixed in git head of compiz and scalefilter.

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.