~ubuntu-branches/ubuntu/vivid/compiz/vivid

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Chris Townsend
  • Date: 2014-04-04 21:41:53 UTC
  • mfrom: (3248.176.35)
  • Revision ID: package-import@ubuntu.com-20140404214153-5hmxpvjpd1laazhn
Tags: 1:0.9.11+14.04.20140404-0ubuntu1
[ Chris Townsend ]
* Fix issue where Compiz passively grabs all mouse buttons which
  severely affects scrolling in Gtk apps. Now only unconditionally
  grab buttons 1-3 for all windows except the desktop window and only
  grab other buttons when there is a modifier attached to it. (LP:
  #1171342)
* Only fade in and fade out a window when it's hidden if it's not in
  Show Desktop mode. This allows for a good fade out effect in Unity
  when exiting Spread while in Show Desktop mode. (LP: #1104236)

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
    /* Windows that wouldn't be visible before and after entering
261
261
     * scale mode (because some plugin modified CompWindow::focus)
262
262
     * should be faded in and out */
263
 
    if (window->state () & CompWindowStateHiddenMask)
 
263
    if (window->state () & CompWindowStateHiddenMask &&
 
264
        !window->inShowDesktopMode ())
264
265
    {
265
266
        GLfloat factor = 0;
266
267
        GLfloat targetX, targetY, targetScale;