]> Dogcows Code - chaz/openbox/commitdiff
hopefully fix keyboard move and resize refusing to go outside the screen
authorMikael Magnusson <mikachu@comhem.se>
Wed, 2 Aug 2006 21:03:14 +0000 (21:03 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 2 Aug 2006 21:03:14 +0000 (21:03 +0000)
openbox/moveresize.c

index f7c5c69aa0b3443d341ff990aacda3cebf8b0bb7..94167fea7c3b61bac71e4eb6fdd1725e51f59739 100644 (file)
@@ -193,9 +193,10 @@ void moveresize_end(gboolean cancel)
 
 static void do_move(gboolean resist)
 {
-    if (resist)
+    if (resist) {
         resist_move_windows(moveresize_client, &cur_x, &cur_y);
-    resist_move_monitors(moveresize_client, &cur_x, &cur_y);
+        resist_move_monitors(moveresize_client, &cur_x, &cur_y);
+    }
 
     /* get where the client should be */
     frame_frame_gravity(moveresize_client->frame, &cur_x, &cur_y);
@@ -216,9 +217,10 @@ static void do_resize(gboolean resist)
     cur_y += moveresize_client->frame->size.top +
         moveresize_client->frame->size.bottom;
 
-    if (resist)
+    if (resist) {
         resist_size_windows(moveresize_client, &cur_x, &cur_y, lockcorner);
-    resist_size_monitors(moveresize_client, &cur_x, &cur_y, lockcorner);
+        resist_size_monitors(moveresize_client, &cur_x, &cur_y, lockcorner);
+    }
 
     cur_x -= moveresize_client->frame->size.left +
         moveresize_client->frame->size.right;
This page took 0.022687 seconds and 4 git commands to generate.