mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-18 19:41:07 +00:00
sowm: Set minimum resize amount.
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -58,8 +58,8 @@ void notify_motion(XEvent *e) {
|
||||
XMoveResizeWindow(d, mouse.subwindow,
|
||||
wx + (mouse.button == 1 ? xd : 0),
|
||||
wy + (mouse.button == 1 ? yd : 0),
|
||||
ww + (mouse.button == 3 ? xd : 0),
|
||||
wh + (mouse.button == 3 ? yd : 0));
|
||||
MAX(1, ww + (mouse.button == 3 ? xd : 0)),
|
||||
MAX(1, wh + (mouse.button == 3 ? yd : 0)));
|
||||
}
|
||||
|
||||
void key_press(XEvent *e) {
|
||||
|
||||
Reference in new issue
Block a user