Merge lp:~townsend/compiz/fix-lp1333277 into lp:compiz/0.9.12

Proposed by Christopher Townsend
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 3876
Merged at revision: 3876
Proposed branch: lp:~townsend/compiz/fix-lp1333277
Merge into: lp:compiz/0.9.12
Diff against target: 47 lines (+3/-10)
1 file modified
plugins/expo/src/expo.cpp (+3/-10)
To merge this branch: bzr merge lp:~townsend/compiz/fix-lp1333277
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+224163@code.launchpad.net

Commit message

Remove the need to check the viewport we are painting the maximized window in while in Expo mode and only scale maximized windows that are not being dragged. Fixes a regression caused in r3868.

Description of the change

Remove the need to check the viewport we are painting the maximized window in while in Expo mode and only scale maximized windows that aren't being dragged. This is done because it is too tricky to paint the scaled window and get the Expo wall borders correctly.

Fixes a regression caused in r3868.

To test:
1. Open a maximized window.
2. Invoke Expo.
3. Move maximized window to another workspace while in Expo.

Note that the maximized window will go back to it's original size while being dragged. I think this OK because this is not causing a regression since this is what it looked like previously.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

This looks fine to me, but I'm not getting the maximized window to be restored while dragged here... mhmh

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/expo/src/expo.cpp'
--- plugins/expo/src/expo.cpp 2014-06-05 13:17:05 +0000
+++ plugins/expo/src/expo.cpp 2014-06-24 18:41:45 +0000
@@ -1462,7 +1462,6 @@
1462 unsigned int mask)1462 unsigned int mask)
1463{1463{
1464 GLMatrix wTransform (transform);1464 GLMatrix wTransform (transform);
1465 GLWindowPaintAttrib wAttrib (attrib);
14661465
1467 if (eScreen->expoActive)1466 if (eScreen->expoActive)
1468 {1467 {
@@ -1474,8 +1473,6 @@
1474 ExpoScreen::ExpoAnimationZoom;1473 ExpoScreen::ExpoAnimationZoom;
1475 bool hide = eScreen->optionGetHideDocks () &&1474 bool hide = eScreen->optionGetHideDocks () &&
1476 (window->wmType () & CompWindowTypeDockMask);1475 (window->wmType () & CompWindowTypeDockMask);
1477 CompPoint vp;
1478 screen->viewportForGeometry (window->geometry (), vp);
14791476
1480 if (!zoomAnim)1477 if (!zoomAnim)
1481 opacity = attrib.opacity * eScreen->expoCam;1478 opacity = attrib.opacity * eScreen->expoCam;
@@ -1494,7 +1491,8 @@
14941491
1495 /* Stretch maximized windows a little so that you don't1492 /* Stretch maximized windows a little so that you don't
1496 * have an awkward gap */1493 * have an awkward gap */
1497 if ((window->state () & MAXIMIZE_STATE) == MAXIMIZE_STATE)1494 if (((window->state () & MAXIMIZE_STATE) == MAXIMIZE_STATE) &&
1495 (eScreen->dndWindow != window))
1498 {1496 {
1499 CompOutput *o = &screen->outputDevs ()[screen->outputDeviceForGeometry(window->geometry())];1497 CompOutput *o = &screen->outputDevs ()[screen->outputDeviceForGeometry(window->geometry())];
1500 float yS = 1.0 + ((o->height () / (float) window->height ()) - 1.0f) * sigmoidProgress (eScreen->expoCam);1498 float yS = 1.0 + ((o->height () / (float) window->height ()) - 1.0f) * sigmoidProgress (eScreen->expoCam);
@@ -1506,15 +1504,10 @@
1506 wTransform.translate (-(window->x () + window->width ()),1504 wTransform.translate (-(window->x () + window->width ()),
1507 -(window->y () + window->height ()),1505 -(window->y () + window->height ()),
1508 0.0f);1506 0.0f);
1509
1510 if (eScreen->paintingVp != vp)
1511 mask |= PAINT_WINDOW_NO_CORE_INSTANCE_MASK;
1512
1513 mask |= PAINT_WINDOW_TRANSFORMED_MASK;
1514 }1507 }
1515 }1508 }
15161509
1517 return gWindow->glPaint (wAttrib, wTransform, region, mask);1510 return gWindow->glPaint (attrib, wTransform, region, mask);
1518}1511}
15191512
1520bool1513bool

Subscribers

People subscribed via source and target branches