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

« back to all changes in this revision

Viewing changes to src/screen.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:
3413
3413
 
3414
3414
void cps::GrabManager::updatePassiveButtonGrabs(Window serverFrame)
3415
3415
{
 
3416
    CompWindow *window = NULL;
 
3417
 
 
3418
    foreach (CompWindow *w, screen->windows ())
 
3419
    {
 
3420
        if (w->frame () == serverFrame)
 
3421
        {
 
3422
            window = w;
 
3423
            break;
 
3424
        }
 
3425
    }
 
3426
 
3416
3427
    /* Grab only we have bindings on */
3417
3428
    foreach (ButtonGrab &bind, buttonGrabs)
3418
3429
    {
3427
3438
            if (ignore & ~modHandler->ignoredModMask ())
3428
3439
                continue;
3429
3440
 
 
3441
            if (window &&
 
3442
                !(window->type () & CompWindowTypeDesktopMask) &&
 
3443
                bind.button > 3 &&
 
3444
                !mods)
 
3445
                continue;
 
3446
 
3430
3447
            XGrabButton (screen->dpy(),
3431
3448
                         bind.button,
3432
3449
                         mods | ignore,