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/decorationhints.c | |
| parent | b3d336322e56637c7e157a44695dab6def2fcb05 (diff) | |
| download | dwm-flexipatch-c44b14e3dd063cbe85ac152229991411c67de3dc.tar.gz dwm-flexipatch-c44b14e3dd063cbe85ac152229991411c67de3dc.zip | |
setborderpx compatibility improvements
Diffstat (limited to 'patch/decorationhints.c')
| -rw-r--r-- | patch/decorationhints.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/patch/decorationhints.c b/patch/decorationhints.c index a7498ee..6636998 100644 --- a/patch/decorationhints.c +++ b/patch/decorationhints.c @@ -14,16 +14,20 @@ updatemotifhints(Client *c) return; if (XGetWindowProperty(dpy, c->win, motifatom, 0L, 5L, False, motifatom, - &real, &format, &n, &extra, &p) == Success && p != NULL) { + &real, &format, &n, &extra, &p) == Success && p != NULL) { motif = (unsigned long*)p; if (motif[MWM_HINTS_FLAGS_FIELD] & MWM_HINTS_DECORATIONS) { width = WIDTH(c); height = HEIGHT(c); if (motif[MWM_HINTS_DECORATIONS_FIELD] & MWM_DECOR_ALL || - motif[MWM_HINTS_DECORATIONS_FIELD] & MWM_DECOR_BORDER || - motif[MWM_HINTS_DECORATIONS_FIELD] & MWM_DECOR_TITLE) + motif[MWM_HINTS_DECORATIONS_FIELD] & MWM_DECOR_BORDER || + motif[MWM_HINTS_DECORATIONS_FIELD] & MWM_DECOR_TITLE) + #if SETBORDERPX_PATCH + c->bw = c->oldbw = c->mon->borderpx; + #else c->bw = c->oldbw = borderpx; + #endif // SETBORDERPX_PATCH else c->bw = c->oldbw = 0; |
