~noskcaj/ubuntu/trusty/xfwm4/4.11

« back to all changes in this revision

Viewing changes to src/moveresize.c

  • Committer: Package Import Robot
  • Author(s): Yves-Alexis Perez, Lionel Le Folgoc
  • Date: 2011-12-20 08:39:20 UTC
  • mfrom: (3.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20111220083920-70n7z88r0wnl1i1p
[ Lionel Le Folgoc ]
* New upstream release, including:
  - Fix crash in signal handler.                                  lp: #495361
* debian/patches:
  - 0001-Do-not-enforce-the-size-increment-only-if-the-size-r.patch: dropped,
    included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
442
442
    int cx, cy, delta;
443
443
    int disp_x, disp_y, disp_max_x, disp_max_y;
444
444
    int frame_x, frame_y, frame_height, frame_width;
445
 
    int frame_top, frame_left, frame_right, frame_bottom;
 
445
    int frame_top, frame_left;
446
446
    int frame_x2, frame_y2;
447
447
    int best_frame_x, best_frame_y;
448
448
    int best_delta_x, best_delta_y;
463
463
    frame_width = frameWidth (c);
464
464
    frame_top = frameTop (c);
465
465
    frame_left = frameLeft (c);
466
 
    frame_right = frameRight (c);
467
 
    frame_bottom = frameBottom (c);
468
466
 
469
467
    cx = frame_x + (frame_width / 2);
470
468
    cy = frame_y + (frame_height / 2);
702
700
                passdata->move_resized = TRUE;
703
701
            }
704
702
        }
705
 
        else
 
703
        else if (passdata->use_keys)
706
704
        {
707
705
            moving = clientKeyPressIsModifier(xevent);
708
706
        }
855
853
            if (xevent->xmotion.y_root - passdata->my > 15)
856
854
            {
857
855
                /* to keep the distance from the edges of the window proportional. */
858
 
                double xratio, yratio;
859
 
 
860
 
                xratio = (xevent->xmotion.x_root - c->x)/(double)c->width;
861
 
                yratio = (xevent->xmotion.y_root - c->y)/(double)c->width;
862
 
 
 
856
                double xratio;
 
857
 
 
858
                xratio = (xevent->xmotion.x_root - c->x) / (double)c->width;
863
859
                clientToggleMaximized (c, WIN_STATE_MAXIMIZED, FALSE);
864
860
                passdata->move_resized = TRUE;
865
861
                passdata->ox = c->x;
1173
1169
    eventFilterStatus status;
1174
1170
    int prev_x, prev_y, prev_width, prev_height;
1175
1171
    int cx, cy, disp_x, disp_y, disp_max_x, disp_max_y;
1176
 
    int frame_x, frame_y, frame_height, frame_width;
1177
 
    int frame_top, frame_left, frame_right, frame_bottom;
 
1172
    int frame_x, frame_y, frame_height, frame_width, frame_top;
1178
1173
    int move_top, move_bottom, move_left, move_right;
1179
1174
    int temp;
1180
1175
    gint min_visible;
1196
1191
    frame_height = frameHeight (c);
1197
1192
    frame_width = frameWidth (c);
1198
1193
    frame_top = frameTop (c);
1199
 
    frame_left = frameLeft (c);
1200
 
    frame_right = frameRight (c);
1201
 
    frame_bottom = frameBottom (c);
1202
1194
    min_visible = MAX (frame_top, CLIENT_MIN_VISIBLE);
1203
1195
 
1204
1196
    cx = frame_x + (frame_width / 2);
1331
1323
                clientResizeConfigure (c, prev_x, prev_y, prev_width, prev_height);
1332
1324
            }
1333
1325
        }
1334
 
        else
 
1326
        else if (passdata->use_keys)
1335
1327
        {
1336
1328
            resizing = clientKeyPressIsModifier(xevent);
1337
1329
        }