~sil2100/compiz/ubuntu-0.9.8.6-snapshot-3433

« back to all changes in this revision

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

  • Committer: Timo Jyrinki
  • Date: 2012-11-28 09:32:41 UTC
  • mfrom: (3248.2.14)
  • Revision ID: timo.jyrinki@canonical.com-20121128093241-oegb9vul39mpdnrs
* New upstream release.
  - Enable Unredirect Fullscreen Windows by default. It seems to be 
    stable enough with all the major graphics drivers now, as at Ubuntu 
    12.10 (with updates). (LP: #1063690)
  - Grid: Reset the currently handled window in the GridWindow 
    destructor only if the destroyed window was the handled one.
    (LP: #1048855) (LP: #1067812)
  - Grid: Set GridWindow->lastTarget to GridMaximize only if the 
    window was fully maximized. (LP: #1071689)

Show diffs side-by-side

added added

removed removed

Lines of Context:
916
916
    else if (!(lastState & MAXIMIZE_STATE) &&
917
917
             window->state () & MAXIMIZE_STATE)
918
918
    {
919
 
        lastTarget = GridMaximize;
 
919
        if ((window->state () & MAXIMIZE_STATE) == MAXIMIZE_STATE)
 
920
            lastTarget = GridMaximize;
920
921
        if (window->grabbed ())
921
922
        {
922
923
            originalSize = gScreen->slotToRect (window,
1142
1143
    if (gScreen->mGrabWindow == window)
1143
1144
        gScreen->mGrabWindow = NULL;
1144
1145
 
1145
 
    gScreen->o[0].value ().set (0);
 
1146
    CompWindow *w = screen->findWindow (CompOption::getIntOptionNamed (gScreen->o, "window"));
 
1147
    if (w == window)
 
1148
        gScreen->o[0].value ().set (0);
1146
1149
}
1147
1150
 
1148
1151
/* Initial plugin init function called. Checks to see if we are ABI