~smspillaz/compiz/experimental

« back to all changes in this revision

Viewing changes to plugins/resize/src/logic/src/resize-logic.cpp

MergeĀ lp:compiz

Show diffs side-by-side

added added

removed removed

Lines of Context:
1359
1359
            if (sourceExternalApp)
1360
1360
            {
1361
1361
                int output = w->outputDevice ();
1362
 
                int lco, tco, bco, rco;
 
1362
 
1363
1363
                bool sl = mScreen->outputDevs ().at (output).workArea ().left () >
1364
1364
                          w->serverGeometry ().left ();
1365
1365
                bool sr = mScreen->outputDevs ().at (output).workArea ().right () <
1369
1369
                bool sb = mScreen->outputDevs ().at (output).workArea ().bottom () <
1370
1370
                          w->serverGeometry ().bottom ();
1371
1371
 
1372
 
                lco = tco = bco = rco = output;
1373
 
 
1374
1372
                /* Prevent resizing beyond work area edges when resize is
1375
1373
                   initiated externally (e.g. with window frame or menu)
1376
1374
                   and not with a key (e.g. alt+button) */
1377
1375
                offWorkAreaConstrained = true;
1378
1376
 
1379
 
                lco = getOutputForEdge (output, TOUCH_RIGHT, sl);
1380
 
                rco = getOutputForEdge (output, TOUCH_LEFT, sr);
1381
 
                tco = getOutputForEdge (output, TOUCH_BOTTOM, st);
1382
 
                bco = getOutputForEdge (output, TOUCH_TOP, sb);
 
1377
                int lco = getOutputForEdge (output, TOUCH_RIGHT, sl);
 
1378
                int rco = getOutputForEdge (output, TOUCH_LEFT, sr);
 
1379
                int tco = getOutputForEdge (output, TOUCH_BOTTOM, st);
 
1380
                int bco = getOutputForEdge (output, TOUCH_TOP, sb);
1383
1381
 
1384
1382
                /* Now we need to form one big rect which describes
1385
1383
                 * the available workarea */