diff options
| author | bakkeby <[email protected]> | 2019-10-06 23:43:51 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-10-06 23:43:51 +0200 |
| commit | 132ceee07309efc81476a55a1ff80ebb9b594291 (patch) | |
| tree | 10f1e03020046458cb17f3fe67b2f78e27983e22 /patch | |
| parent | ac4269a4f28f29bad9a319993ad814830248f89a (diff) | |
| download | dwm-flexipatch-132ceee07309efc81476a55a1ff80ebb9b594291.tar.gz dwm-flexipatch-132ceee07309efc81476a55a1ff80ebb9b594291.zip | |
Added statusallmons patch, fixed minor cross-compatibility issues for killunsel, fullscreen, noborder, tagintostack patches
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/fullscreen.c | 4 | ||||
| -rw-r--r-- | patch/killunsel.c | 7 | ||||
| -rw-r--r-- | patch/vanitygaps.c | 4 | ||||
| -rw-r--r-- | patch/vanitygaps.h | 2 |
4 files changed, 13 insertions, 4 deletions
diff --git a/patch/fullscreen.c b/patch/fullscreen.c index aace550..ac50f37 100644 --- a/patch/fullscreen.c +++ b/patch/fullscreen.c @@ -1,9 +1,9 @@ -Layout *last_layout = &layouts[0]; +Layout *last_layout; void fullscreen(const Arg *arg) { - if (selmon->showbar) { + if (selmon->showbar || last_layout == NULL) { for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++); setlayout(&((Arg) { .v = &layouts[MONOCLE_LAYOUT_POS] })); } else { diff --git a/patch/killunsel.c b/patch/killunsel.c index 9e06d53..1e15d2b 100644 --- a/patch/killunsel.c +++ b/patch/killunsel.c @@ -8,7 +8,12 @@ killunsel(const Arg *arg) for (i = selmon->clients; i; i = i->next) { if (ISVISIBLE(i) && i != selmon->sel) { - if (!sendevent(i, wmatom[WMDelete])) { + #if SYSTRAY_PATCH + if (!sendevent(i->win, wmatom[WMDelete], NoEventMask, wmatom[WMDelete], CurrentTime, 0, 0, 0)) + #else + if (!sendevent(i, wmatom[WMDelete])) + #endif // SYSTRAY_PATCH + { XGrabServer(dpy); XSetErrorHandler(xerrordummy); XSetCloseDownMode(dpy, DestroyAll); diff --git a/patch/vanitygaps.c b/patch/vanitygaps.c index b46944d..9b50c15 100644 --- a/patch/vanitygaps.c +++ b/patch/vanitygaps.c @@ -106,6 +106,7 @@ incrivgaps(const Arg *arg) ); } +#if CENTEREDFLOATINGMASTER_LAYOUT || DECK_LAYOUT || FIBONACCI_DWINDLE_LAYOUT || FIBONACCI_SPIRAL_LAYOUT || GAPPLESSGRID_LAYOUT || HORIZGRID_LAYOUT || BSTACK_LAYOUT || BSTACKHORIZ_LAYOUT || GRIDMODE_LAYOUT || FLEXTILE_DELUXE_LAYOUT static void getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc) { @@ -122,4 +123,5 @@ getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc) *ih = m->gappih*ie; // inner horizontal gap *iv = m->gappiv*ie; // inner vertical gap *nc = n; // number of clients -}
\ No newline at end of file +} +#endif // CENTEREDFLOATINGMASTER_LAYOUT || DECK_LAYOUT || FIBONACCI_DWINDLE_LAYOUT || FIBONACCI_SPIRAL_LAYOUT || GAPPLESSGRID_LAYOUT || HORIZGRID_LAYOUT || BSTACK_LAYOUT || BSTACKHORIZ_LAYOUT || GRIDMODE_LAYOUT || FLEXTILE_DELUXE_LAYOUT
\ No newline at end of file diff --git a/patch/vanitygaps.h b/patch/vanitygaps.h index 74486d1..861cba6 100644 --- a/patch/vanitygaps.h +++ b/patch/vanitygaps.h @@ -10,5 +10,7 @@ static void incrivgaps(const Arg *arg); static void togglegaps(const Arg *arg); /* Internals */ +#if CENTEREDFLOATINGMASTER_LAYOUT || DECK_LAYOUT || FIBONACCI_DWINDLE_LAYOUT || FIBONACCI_SPIRAL_LAYOUT || GAPPLESSGRID_LAYOUT || HORIZGRID_LAYOUT || BSTACK_LAYOUT || BSTACKHORIZ_LAYOUT || GRIDMODE_LAYOUT || FLEXTILE_DELUXE_LAYOUT static void getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc); +#endif // CENTEREDFLOATINGMASTER_LAYOUT || DECK_LAYOUT || FIBONACCI_DWINDLE_LAYOUT || FIBONACCI_SPIRAL_LAYOUT || GAPPLESSGRID_LAYOUT || HORIZGRID_LAYOUT || BSTACK_LAYOUT || BSTACKHORIZ_LAYOUT || GRIDMODE_LAYOUT || FLEXTILE_DELUXE_LAYOUT static void setgaps(int oh, int ov, int ih, int iv);
\ No newline at end of file |
