~focus-follows-mouse/ubuntu/precise/compiz/fix-883383

« back to all changes in this revision

Viewing changes to plugins/switcher/src/switcher.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-03-22 21:45:34 UTC
  • mfrom: (0.168.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110322214534-l6i6ds54os5uoqt1
Tags: 1:0.9.4git20110322-0ubuntu1
* New upstream bug fix snapshot:
  - Application windows can sometimes fail to display and will
    mask regions of the screen (LP: #709461)
  - Compiz switcher Alt-Tab order is not predictable - should
    maintain LIFO ordering in application switcher (LP: #175874)
  - after compiz crashed, gnome-panel isn't mapped again (LP: #711378)
  - invisible windows border problem (LP: #710271)
  - Compiz thinks you are clicking in an edge window when you
    are not (LP: #734250)
  - Add test case for invisible window regressions (LP: #736876)
  - often can't alt-click-dnd to move the focussed dialog (LP: #711911)
  - When windows open for the first time they should not hide (LP: #723878)
  - Unity Grid is broken for multi-monitor setups (LP: #709221)
  - Pixmaps trashed during animations when window is unmapped (LP: #733331)
  - Windows have blank decorations when rapidly closing and
    reopening (LP: #733328)
  - Unity is not restored on unity/compiz crash: compiz doesn't register
    properly with gnome-session (LP: #716462)
* remove the patch taken from upstream
* refresh u-w-d patch with latest upstream work
* debian/compiz-core.install:
  - image move to the final destination
* debian/patches/100_bump_core.h.patch:
  - bump for ABI breakage
* debian/compiz-decorator:
  - use gtk-window-decorator and not unity-window-decorator as it's really
    crashy for now (will probably redo an upload tomorrow with a fixed
    decorator)

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
SwitchScreen::switchToWindow (bool toNext)
158
158
{
159
159
    CompWindow *w =
160
 
        BaseSwitchScreen::switchToWindow (toNext, optionGetAutoRotate ());
 
160
        BaseSwitchScreen::switchToWindow (toNext, optionGetAutoRotate (), optionGetFocusOnSwitch ());
161
161
    if (w)
162
162
    {
163
163
        if (!zoomedWindow)
285
285
 
286
286
        screen->setWindowProp (popupWindow, Atoms::winDesktop, 0xffffffff);
287
287
 
288
 
        setSelectedWindowHint ();
 
288
        setSelectedWindowHint (false);
289
289
    }
290
290
 
291
291
    if (!grabIndex)
305
305
            {
306
306
                XMapWindow (screen->dpy (), popupWindow);
307
307
 
308
 
                setSelectedWindowHint ();
 
308
                setSelectedWindowHint (optionGetFocusOnSwitch ());
309
309
            }
310
310
 
311
311
            lastActiveWindow = screen->activeWindow ();
396
396
        }
397
397
 
398
398
        ss->selectedWindow = NULL;
399
 
        ss->setSelectedWindowHint ();
 
399
        ss->setSelectedWindowHint (false);
400
400
 
401
401
        ss->lastActiveNum = 0;
402
402
 
538
538
            if (popup)
539
539
                CompositeWindow::get (popup)->addDamage ();
540
540
 
541
 
            setSelectedWindowHint ();
 
541
            setSelectedWindowHint (optionGetFocusOnSwitch ());
542
542
        }
543
543
 
544
544
        if (old != selectedWindow)