diff options
| author | bakkeby <[email protected]> | 2020-06-15 13:24:23 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-06-15 13:24:23 +0200 |
| commit | a7b226de41122f5cd6c9a9b0ed410f1616654342 (patch) | |
| tree | 306b38fd39d81f4e992408902888a30aa6aec539 /config.def.h | |
| parent | f3151887288895944d17026b81e8d0f0a3a92d66 (diff) | |
| download | dwm-flexipatch-a7b226de41122f5cd6c9a9b0ed410f1616654342.tar.gz dwm-flexipatch-a7b226de41122f5cd6c9a9b0ed410f1616654342.zip | |
Make EWMH windows float
Move updatewindowtype() functionality into applyrules(), and also make
following EWMH windows float: DIALOG, UTILITY, TOOLBAR, SPLASH.
This is taking the proposed patch to add window type to the rule matching
options for dwm, allowing dialog, utility, toolbar and splash windows
to be configured to float by default.
This patch is intended to be merged into the main dwm build.
In effect the intermediate EWMH_WINDOWS_FLOAT_PATCH has also been removed.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h index d1aa5f6..d970fa6 100644 --- a/config.def.h +++ b/config.def.h @@ -308,9 +308,9 @@ static const int tagrows = 2; * - using the RULE macro * * A traditional struct table looks like this: - * // class instance title tags mask isfloating monitor - * { "Gimp", NULL, NULL, 1 << 4, 0, -1 }, - * { "Firefox", NULL, NULL, 1 << 7, 0, -1 }, + * // class instance title wintype tags mask isfloating monitor + * { "Gimp", NULL, NULL, NULL, 1 << 4, 0, -1 }, + * { "Firefox", NULL, NULL, NULL, 1 << 7, 0, -1 }, * * The RULE macro has the default values set for each field allowing you to only * specify the values that are relevant for your rule, e.g. @@ -330,7 +330,12 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title * WM_WINDOW_ROLE(STRING) = role + * _NET_WM_WINDOW_TYPE(ATOM) = wintype */ + RULE(.wintype = WTYPE "DIALOG", .floating = 1) + RULE(.wintype = WTYPE "UTILITY", .floating = 1) + RULE(.wintype = WTYPE "TOOLBAR", .floating = 1) + RULE(.wintype = WTYPE "SPLASH", .floating = 1) RULE(.class = "Gimp", .tags = 1 << 4) RULE(.class = "Firefox", .tags = 1 << 7) #if SCRATCHPADS_PATCH |
