feat: make fullscreen windows movable

(idk why they weren't)
This commit is contained in:
Arthur Khachaturov 2024-07-20 01:50:40 +03:00
parent 765fb16e7d
commit 3af76b3c34
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55
3 changed files with 23 additions and 20 deletions

7
dwm.c
View file

@ -918,7 +918,6 @@ focus(Client *c)
}
setfocus(c);
} else {
notify("SELMON STACK EMPTY");
XSetInputFocus(dpy, root, RevertToNone, CurrentTime);
XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
}
@ -1307,8 +1306,10 @@ movemouse(const Arg *arg)
if (!(c = selmon->sel))
return;
if (c->isfullscreen) /* no support moving fullscreen windows by mouse */
return;
if (c->isfullscreen)
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
restack(selmon);
ocx = c->x;
ocy = c->y;