diff options
| author | bakkeby <[email protected]> | 2020-08-27 21:05:34 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-27 21:05:34 +0200 |
| commit | c44b14e3dd063cbe85ac152229991411c67de3dc (patch) | |
| tree | 325799d94b5fc72303f94402b799e84dfbd7f5b6 /patch/maximize.c | |
| parent | b3d336322e56637c7e157a44695dab6def2fcb05 (diff) | |
| download | dwm-flexipatch-c44b14e3dd063cbe85ac152229991411c67de3dc.tar.gz dwm-flexipatch-c44b14e3dd063cbe85ac152229991411c67de3dc.zip | |
setborderpx compatibility improvements
Diffstat (limited to 'patch/maximize.c')
| -rw-r--r-- | patch/maximize.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/patch/maximize.c b/patch/maximize.c index 77775f3..53336eb 100644 --- a/patch/maximize.c +++ b/patch/maximize.c @@ -30,6 +30,25 @@ maximize(int x, int y, int w, int h) while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } +#if SETBORDERPX_PATCH +void +togglemax(const Arg *arg) +{ + maximize(selmon->wx, selmon->wy, selmon->ww - 2 * selmon->borderpx, selmon->wh - 2 * selmon->borderpx); +} + +void +toggleverticalmax(const Arg *arg) +{ + maximize(selmon->sel->x, selmon->wy, selmon->sel->w, selmon->wh - 2 * selmon->borderpx); +} + +void +togglehorizontalmax(const Arg *arg) +{ + maximize(selmon->wx, selmon->sel->y, selmon->ww - 2 * selmon->borderpx, selmon->sel->h); +} +#else void togglemax(const Arg *arg) { @@ -46,4 +65,5 @@ void togglehorizontalmax(const Arg *arg) { maximize(selmon->wx, selmon->sel->y, selmon->ww - 2 * borderpx, selmon->sel->h); -}
\ No newline at end of file +} +#endif // SETBORDERPX_PATCH
\ No newline at end of file |
