Allow moving fullscreen windows to another monitor - dwm - [fork] dynamic window manager
 (HTM) git clone https://git.drkhsh.at/dwm.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4612869e90addea9debbc23a80b0f7b6f782db1c
 (DIR) parent 23c56bc6a0d3efd7ab3767a7bcdb9ebaceac557d
 (HTM) Author: drkhsh <me@drkhsh.at>
       Date:   Mon, 16 Dec 2024 22:32:42 +0100
       
       Allow moving fullscreen windows to another monitor
       
       tagmonfixfs patch
       (https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagmonfixfs-6.2.diff)
       
       Allow moving a fullscreen window to another monitor while it remains in fullscreen.
       
       Diffstat:
         M dwm.c                               |      12 ++++++++++--
       
       1 file changed, 10 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/dwm.c b/dwm.c
       @@ -1800,9 +1800,17 @@ tag(const Arg *arg)
        void
        tagmon(const Arg *arg)
        {
       -        if (!selmon->sel || !mons->next)
       +        Client *c = selmon->sel;
       +        if (!c || !mons->next)
                        return;
       -        sendmon(selmon->sel, dirtomon(arg->i));
       +        if (c->isfullscreen) {
       +                c->isfullscreen = 0;
       +                sendmon(c, dirtomon(arg->i));
       +                c->isfullscreen = 1;
       +                resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
       +                XRaiseWindow(dpy, c->win);
       +        } else
       +                sendmon(c, dirtomon(arg->i));
        }
        
        void