diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2006-08-02 21:03:14 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2006-08-02 21:03:14 +0000 |
| commit | 41a1d2ea7bd8a69dc0eaf1deb3f3bd96a1a579e5 (patch) | |
| tree | 32dab4ade420ed88f90d5487db4915782a18ea49 /openbox | |
| parent | 629585d990c3a966376374815c698048df0bf05c (diff) | |
hopefully fix keyboard move and resize refusing to go outside the screen
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/moveresize.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c index f7c5c69a..94167fea 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -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; |
