mirror of
https://github.com/bakkeby/patches
synced 2024-11-17 15:29:53 +00:00
33 lines
1000 B
Diff
33 lines
1000 B
Diff
From fb3713e426c42c45837f4a943cef2f496a1577e3 Mon Sep 17 00:00:00 2001
|
|
From: bakkeby <bakkeby@gmail.com>
|
|
Date: Tue, 15 Sep 2020 08:34:59 +0200
|
|
Subject: [PATCH 2/2] Adding fake fullscreen compatible noborder patch
|
|
|
|
---
|
|
dwm.c | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/dwm.c b/dwm.c
|
|
index 5352547..0bf05cd 100644
|
|
--- a/dwm.c
|
|
+++ b/dwm.c
|
|
@@ -1293,6 +1293,15 @@ resizeclient(Client *c, int x, int y, int w, int h)
|
|
c->oldw = c->w; c->w = wc.width = w;
|
|
c->oldh = c->h; c->h = wc.height = h;
|
|
wc.border_width = c->bw;
|
|
+ if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
|
|
+ || &monocle == c->mon->lt[c->mon->sellt]->arrange)
|
|
+ && (c->fakefullscreen == 1 || !c->isfullscreen)
|
|
+ && !c->isfloating
|
|
+ && c->mon->lt[c->mon->sellt]->arrange) {
|
|
+ c->w = wc.width += c->bw * 2;
|
|
+ c->h = wc.height += c->bw * 2;
|
|
+ wc.border_width = 0;
|
|
+ }
|
|
XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
|
|
configure(c);
|
|
if (c->fakefullscreen == 1)
|
|
--
|
|
2.19.1
|
|
|