diff options
author | Bert <ber.t@gmx.com> | 2011-02-19 22:53:22 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-19 22:53:22 +0100 |
commit | 09335fdc1404de66849ee0232596978e9f234490 (patch) | |
tree | af240c6c8d2a16b5d675ce6d778839f6d73a5c91 /main.c | |
parent | fbfec45b3360d4d0d4011bad182fc2a21f8da6ae (diff) |
Fixed offsets in resize win to image
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -344,8 +344,8 @@ void on_keypress(XKeyEvent *kev) { /* render on next configurenotify */ break; case XK_W: - x = win.x + img.x; - y = win.y + img.y; + x = MAX(0, win.x + img.x); + y = MAX(0, win.y + img.y); w = img.w * img.zoom; h = img.h * img.zoom; if ((changed = win_moveresize(&win, x, y, w, h))) { |