-
Notifications
You must be signed in to change notification settings - Fork 30
/
dwm-fullscreen-compilation-rule-6.2.diff
50 lines (45 loc) · 1.5 KB
/
dwm-fullscreen-compilation-rule-6.2.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From c05eeaad8101522756d533510d5129972740e9ab Mon Sep 17 00:00:00 2001
From: Bakkeby <[email protected]>
Date: Mon, 1 Jul 2024 22:16:15 +0200
Subject: [PATCH 2/2] Adding fake fullscreen client rule
---
config.def.h | 6 +++---
dwm.c | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/config.def.h b/config.def.h
index 5f28f2c..dd98367 100644
--- a/config.def.h
+++ b/config.def.h
@@ -26,9 +26,9 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
- /* class instance title tags mask isfloating monitor */
- { "Gimp", NULL, NULL, 0, 1, -1 },
- { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
+ /* class instance title tags mask isfloating isfakefullscreen monitor */
+ { "Gimp", NULL, NULL, 0, 1, 0, -1 },
+ { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 },
};
/* layout(s) */
diff --git a/dwm.c b/dwm.c
index 763c224..c62a02b 100644
--- a/dwm.c
+++ b/dwm.c
@@ -139,6 +139,7 @@ typedef struct {
const char *title;
unsigned int tags;
int isfloating;
+ int isfakefullscreen;
int monitor;
} Rule;
@@ -303,6 +304,7 @@ applyrules(Client *c)
{
c->isfloating = r->isfloating;
c->tags |= r->tags;
+ c->fakefullscreen = r->isfakefullscreen;
for (m = mons; m && m->num != r->monitor; m = m->next);
if (m)
c->mon = m;
--
2.45.2