From 1fb75817aa741bb56d118d0347c1ff3f2d3cf755 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Nov 2019 14:30:34 +0000 Subject: [PATCH] sowm: prevent fullscreen windows from being moved or resized. --- sowm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sowm.c b/sowm.c index d1b4c2a..bc14c4e 100644 --- a/sowm.c +++ b/sowm.c @@ -93,7 +93,7 @@ void notify_enter(XEvent *e) { } void notify_motion(XEvent *e) { - if (!mouse.subwindow) return; + if (!mouse.subwindow || cur->f) return; while(XCheckTypedEvent(d, MotionNotify, e)); @@ -124,7 +124,7 @@ void button_press(XEvent *e) { } void button_release() { - cur->f = mouse.subwindow = 0; + mouse.subwindow = 0; } void win_add(Window w) {