mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 01:20:23 -07:00
sowm: prevent fullscreen windows from being moved or resized.
This commit is contained in:
parent
df34385548
commit
1fb75817aa
4
sowm.c
4
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user