2
0
mirror of https://github.com/bakkeby/patches synced 2024-11-09 13:10:41 +00:00
patches/dwm/dwm-losefullscreen-6.2.diff

26 lines
588 B
Diff
Raw Normal View History

From baaeaa28dfc361b38e218c7c089edd7867b15c53 Mon Sep 17 00:00:00 2001
From: bakkeby <bakkeby@gmail.com>
Date: Tue, 7 Apr 2020 11:40:30 +0200
Subject: [PATCH] Lose fullscreen on focus change
---
dwm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dwm.c b/dwm.c
index 4465af1..520a794 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1751,6 +1751,8 @@ unfocus(Client *c, int setfocus)
{
if (!c)
return;
+ if (c->isfullscreen && ISVISIBLE(c))
+ setfullscreen(c, 0);
grabbuttons(c, 0);
XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel);
if (setfocus) {
--
2.19.1