2
0
mirror of https://github.com/bakkeby/patches synced 2024-11-17 15:29:53 +00:00
patches/dwm/dwm-fullscreen-compilation-rule-6.2.diff

51 lines
1.5 KiB
Diff
Raw Normal View History

2021-06-09 11:59:04 +00:00
From e0e096f565942088fa14774433523e43136e0e36 Mon Sep 17 00:00:00 2001
2020-09-15 07:22:17 +00:00
From: bakkeby <bakkeby@gmail.com>
Date: Wed, 12 May 2021 16:05:54 +0200
2020-09-15 07:22:17 +00:00
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
2021-06-09 11:59:04 +00:00
index b1d0936..246888f 100644
2020-09-15 07:22:17 +00:00
--- 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;
2021-06-09 11:59:04 +00:00
@@ -303,6 +304,7 @@ applyrules(Client *c)
2020-09-15 07:22:17 +00:00
{
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.19.1