summaryrefslogtreecommitdiffstats
path: root/patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff
diff options
context:
space:
mode:
authorturret <turret@duck.com>2026-01-16 18:33:51 -0600
committerturret <turret@duck.com>2026-01-16 18:33:51 -0600
commitf6e8612c574a1fd349b9df05cc527f6c9a760574 (patch)
treebc1ab0412e1d3301193dea06ca16569f6cf65249 /patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff
parentb874d76c7b11e16ee99c555c48806a78c4b993d9 (diff)
downloadportage-savedconfig-master.tar.gz
portage-savedconfig-master.tar.bz2
portage-savedconfig-master.zip
update 2026HEADmaster
Diffstat (limited to 'patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff')
-rw-r--r--patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff107
1 files changed, 107 insertions, 0 deletions
diff --git a/patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff b/patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff
new file mode 100644
index 0000000..eac5270
--- /dev/null
+++ b/patches/x11-wm/dwm/dwm-fakefullscreen-20210714-138b405.diff
@@ -0,0 +1,107 @@
+From 33c7811ca7280be7890851f5a83fa8d1a3313374 Mon Sep 17 00:00:00 2001
+From: Sebastian LaVine <mail@smlavine.com>
+Date: Wed, 14 Jul 2021 11:22:34 -0400
+Subject: [PATCH] Set new lockfullscreen variable to 0
+
+This more properly fixes the problem introduced by 67d76bd than the
+previous patch revision does.
+---
+ config.def.h | 2 +-
+ dwm.c | 28 ++--------------------------
+ 2 files changed, 3 insertions(+), 27 deletions(-)
+
+diff --git a/dwm.c b/dwm.c
+index 5e4d494..968e256 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -522,7 +522,7 @@ clientmessage(XEvent *e)
+ if (cme->data.l[1] == netatom[NetWMFullscreen]
+ || cme->data.l[2] == netatom[NetWMFullscreen])
+ setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
+- || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
++ || cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */));
+ } else if (cme->message_type == netatom[NetActiveWindow]) {
+ if (c != selmon->sel && !c->isurgent)
+ seturgent(c, 1);
+@@ -552,7 +552,6 @@ void
+ configurenotify(XEvent *e)
+ {
+ Monitor *m;
+- Client *c;
+ XConfigureEvent *ev = &e->xconfigure;
+ int dirty;
+
+@@ -565,9 +564,6 @@ configurenotify(XEvent *e)
+ drw_resize(drw, sw, bh);
+ updatebars();
+ for (m = mons; m; m = m->next) {
+- for (c = m->clients; c; c = c->next)
+- if (c->isfullscreen)
+- resizeclient(c, m->mx, m->my, m->mw, m->mh);
+ XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
+ }
+ focus(NULL);
+@@ -1144,8 +1140,6 @@ movemouse(const Arg *arg)
+
+ if (!(c = selmon->sel))
+ return;
+- if (c->isfullscreen) /* no support moving fullscreen windows by mouse */
+- return;
+ restack(selmon);
+ ocx = c->x;
+ ocy = c->y;
+@@ -1299,8 +1293,6 @@ resizemouse(const Arg *arg)
+
+ if (!(c = selmon->sel))
+ return;
+- if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */
+- return;
+ restack(selmon);
+ ocx = c->x;
+ ocy = c->y;
+@@ -1477,24 +1469,10 @@ setfullscreen(Client *c, int fullscreen)
+ XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
+ PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
+ c->isfullscreen = 1;
+- c->oldstate = c->isfloating;
+- c->oldbw = c->bw;
+- c->bw = 0;
+- c->isfloating = 1;
+- resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
+- XRaiseWindow(dpy, c->win);
+ } else if (!fullscreen && c->isfullscreen){
+ XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
+ PropModeReplace, (unsigned char*)0, 0);
+ c->isfullscreen = 0;
+- c->isfloating = c->oldstate;
+- c->bw = c->oldbw;
+- c->x = c->oldx;
+- c->y = c->oldy;
+- c->w = c->oldw;
+- c->h = c->oldh;
+- resizeclient(c, c->x, c->y, c->w, c->h);
+- arrange(c->mon);
+ }
+ }
+
+@@ -1619,7 +1597,7 @@ showhide(Client *c)
+ if (ISVISIBLE(c)) {
+ /* show clients top down */
+ XMoveWindow(dpy, c->win, c->x, c->y);
+- if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen)
++ if (!c->mon->lt[c->mon->sellt]->arrange || c->isfloating)
+ resize(c, c->x, c->y, c->w, c->h, 0);
+ showhide(c->snext);
+ } else {
+@@ -1713,8 +1691,6 @@ togglefloating(const Arg *arg)
+ {
+ if (!selmon->sel)
+ return;
+- if (selmon->sel->isfullscreen) /* no support for fullscreen windows */
+- return;
+ selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
+ if (selmon->sel->isfloating)
+ resize(selmon->sel, selmon->sel->x, selmon->sel->y,
+--
+2.32.0
+