sowm: prevent fullscreen windows from being moved or resized.

This commit is contained in:
Dylan Araps 2019-11-25 14:30:34 +00:00
parent df34385548
commit 1fb75817aa
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
sowm.c
View File

@ -93,7 +93,7 @@ void notify_enter(XEvent *e) {
} }
void notify_motion(XEvent *e) { void notify_motion(XEvent *e) {
if (!mouse.subwindow) return; if (!mouse.subwindow || cur->f) return;
while(XCheckTypedEvent(d, MotionNotify, e)); while(XCheckTypedEvent(d, MotionNotify, e));
@ -124,7 +124,7 @@ void button_press(XEvent *e) {
} }
void button_release() { void button_release() {
cur->f = mouse.subwindow = 0; mouse.subwindow = 0;
} }
void win_add(Window w) { void win_add(Window w) {