diff options
| author | bakkeby <[email protected]> | 2022-10-10 22:58:35 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-10-10 22:58:35 +0200 |
| commit | 9a5378440c57718e6d219418eee4fd4f90704e74 (patch) | |
| tree | a97704a4f970e0039815903aabe2da249cd8f291 | |
| parent | cc58ad2ef41bf0b9a298366fbdc5afbde31edb17 (diff) | |
| download | dwm-flexipatch-9a5378440c57718e6d219418eee4fd4f90704e74.tar.gz dwm-flexipatch-9a5378440c57718e6d219418eee4fd4f90704e74.zip | |
rounded rectangles: fullscreen compatibility fix ref. #304
| -rw-r--r-- | dwm.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3482,6 +3482,10 @@ setfullscreen(Client *c, int fullscreen) c->bw = 0; c->isfloating = 1; resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); + #if ROUNDED_CORNERS_PATCH + XRectangle rect = { .x = 0, .y = 0, .width = c->w, .height = c->h }; + XShapeCombineRectangles(dpy, c->win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, 1); + #endif // ROUNDED_CORNERS_PATCH XRaiseWindow(dpy, c->win); } else if (restorestate && (c->oldstate & (1 << 1))) { c->bw = c->oldbw; @@ -3516,6 +3520,10 @@ setfullscreen(Client *c, int fullscreen) c->bw = 0; c->isfloating = 1; resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); + #if ROUNDED_CORNERS_PATCH + XRectangle rect = { .x = 0, .y = 0, .width = c->w, .height = c->h }; + XShapeCombineRectangles(dpy, c->win, ShapeBounding, 0, 0, &rect, 1, ShapeSet, 1); + #endif // ROUNDED_CORNERS_PATCH XRaiseWindow(dpy, c->win); #endif // !FAKEFULLSCREEN_PATCH } else if (!fullscreen && c->isfullscreen){ |
