diff options
| author | bakkeby <[email protected]> | 2019-09-05 23:39:25 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-09-05 23:39:25 +0200 |
| commit | 1d7247ebb5ebb1aabd8a60f7c9eaf965641c4915 (patch) | |
| tree | 9380cce1740f557c1e91664b3ce2d32583957192 | |
| parent | 448f8db4c28b91418abfc461304aebd4530a4cfc (diff) | |
| download | dwm-flexipatch-1d7247ebb5ebb1aabd8a60f7c9eaf965641c4915.tar.gz dwm-flexipatch-1d7247ebb5ebb1aabd8a60f7c9eaf965641c4915.zip | |
Adding tagmonfixfs patch
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | dwm.c | 11 | ||||
| -rw-r--r-- | patches.h | 10 |
3 files changed, 23 insertions, 1 deletions
@@ -24,6 +24,9 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t - [systray](https://dwm.suckless.org/patches/systray/) - adds system tray in the status bar + - [tagmonfixfs](https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-tagmonfixfs-6.2.diff) + - allows moving a fullscreen window to another monitor while remaining in fullscreen + - [togglefullscreen](https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-togglefullscreen-6.2.diff) - allows you to toggle fullscreen on and off using a single shortcut key @@ -1952,9 +1952,20 @@ tag(const Arg *arg) void tagmon(const Arg *arg) { + #if TAGMONFIXFS_PATCH + Client *c = selmon->sel; + if (!c || !mons->next) + return; + sendmon(c, dirtomon(arg->i)); + if (c->isfullscreen) { + setfullscreen(c, 0); + setfullscreen(c, 1); + } + #else if (!selmon->sel || !mons->next) return; sendmon(selmon->sel, dirtomon(arg->i)); + #endif // TAGMONFIXFS_PATCH } void @@ -28,11 +28,19 @@ */ #define PERTAGBAR_PATCH 0 +/* If you try to send a fullscreen window to an adjacent monitor using tagmon then + * the window is moved behind the scenes, but it remains in fullscreen on the original + * monitor until you exit fullscreen view (at which point it will appear on the adjacent + * monitor). This patch allows a fullscreen window to be moved to an adjacent monitor + * while remaining in fullscreen. + * https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-tagmonfixfs-6.2.diff + */ +#define TAGMONFIXFS_PATCH 0 /* This patch allows you to toggle fullscreen on and off using a single shortcut key. * https://github.com/bakkeby/dwm-vanitygaps/blob/master/patches/dwm-togglefullscreen-6.2.diff */ -#define TOGGLEFULLSCREEN_PATCH 1 +#define TOGGLEFULLSCREEN_PATCH 0 /* The zoomswap patch allows a master and a stack window to swap places * rather than every window on the screen changing position. |
