From 3a95d4ed03bb506658382f1c5dc4e3d002a90464 Mon Sep 17 00:00:00 2001 From: A Frederick Christensen Date: Tue, 26 Mar 2024 20:00:46 -0500 Subject: [PATCH 1/4] Fix rule examples; minimize newbie surprises Make example rules be actual EXAMPLES. Now newcomers should not have to ask, "When I start firefox, nothing happens. What is going on?" Also clarified a minor typo and a consistency in spacing. --- config.def.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config.def.h b/config.def.h index 9009517..8847e58 100644 --- a/config.def.h +++ b/config.def.h @@ -11,7 +11,7 @@ static const float rootcolor[] = COLOR(0x222222ff); static const float bordercolor[] = COLOR(0x444444ff); static const float focuscolor[] = COLOR(0x005577ff); static const float urgentcolor[] = COLOR(0xff0000ff); -/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */ +/* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */ /* tagging - TAGCOUNT must be no greater than 31 */ @@ -21,11 +21,10 @@ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You ca static int log_level = WLR_ERROR; static const Rule rules[] = { - /* app_id title tags mask isfloating monitor */ - /* examples: - { "Gimp", NULL, 0, 1, -1 }, - */ - { "firefox", NULL, 1 << 8, 0, -1 }, + /* app_id title tags mask isfloating monitor */ + /* examples: */ + { "Gimp_EXAMPLE", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */ + { "firefox_EXAMPLE", NULL, 1 << 8, 0, -1 }, /* Start on ONLY tag "9" */ }; /* layout(s) */ @@ -95,6 +94,7 @@ LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE */ static const enum libinput_config_accel_profile accel_profile = LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE; static const double accel_speed = 0.0; + /* You can choose between: LIBINPUT_CONFIG_TAP_MAP_LRM -- 1/2/3 finger tap maps to left/right/middle LIBINPUT_CONFIG_TAP_MAP_LMR -- 1/2/3 finger tap maps to left/middle/right From f7154d539d09b4aa5b92371c296d9aa7a045bac0 Mon Sep 17 00:00:00 2001 From: korei999 Date: Sun, 24 Mar 2024 12:54:32 +0200 Subject: [PATCH 2/4] properly resize on configurex11 --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 5867b0c..39ce68c 100644 --- a/dwl.c +++ b/dwl.c @@ -2962,7 +2962,7 @@ configurex11(struct wl_listener *listener, void *data) } if (c->isfloating || client_is_unmanaged(c)) resize(c, (struct wlr_box){.x = event->x, .y = event->y, - .width = event->width, .height = event->height}, 0); + .width = event->width + c->bw * 2, .height = event->height + c->bw * 2}, 0); else arrange(c->mon); } From dd00d994ce4c53829d0b871622dc05e90a6f58c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sun, 31 Mar 2024 21:41:12 -0600 Subject: [PATCH 3/4] do not set withdrawn state for xwayland clients Closes: https://codeberg.org/dwl/dwl/issues/573 --- client.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client.h b/client.h index fe9dffc..800b867 100644 --- a/client.h +++ b/client.h @@ -379,10 +379,8 @@ static inline void client_set_suspended(Client *c, int suspended) { #ifdef XWAYLAND - if (client_is_x11(c)) { - wlr_xwayland_surface_set_withdrawn(c->surface.xwayland, suspended); + if (client_is_x11(c)) return; - } #endif wlr_xdg_toplevel_set_suspended(c->surface.xdg->toplevel, suspended); From 577d8da6d17dad5f847795582ebf813f3c5c04a7 Mon Sep 17 00:00:00 2001 From: choc Date: Thu, 4 Apr 2024 18:48:16 +0800 Subject: [PATCH 4/4] put wlr_layer_shell top layer below fullscreen fixes wlr_layer_shell top clients showing over fullscreen clients --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 39ce68c..bf763df 100644 --- a/dwl.c +++ b/dwl.c @@ -81,7 +81,7 @@ /* enums */ enum { CurNormal, CurPressed, CurMove, CurResize }; /* cursor */ enum { XDGShell, LayerShell, X11 }; /* client types */ -enum { LyrBg, LyrBottom, LyrTile, LyrFloat, LyrFS, LyrTop, LyrOverlay, LyrBlock, NUM_LAYERS }; /* scene layers */ +enum { LyrBg, LyrBottom, LyrTile, LyrFloat, LyrTop, LyrFS, LyrOverlay, LyrBlock, NUM_LAYERS }; /* scene layers */ #ifdef XWAYLAND enum { NetWMWindowTypeDialog, NetWMWindowTypeSplash, NetWMWindowTypeToolbar, NetWMWindowTypeUtility, NetLast }; /* EWMH atoms */