dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit fa660fb61e9c883901c43afaf3056af9a8b4736e
parent 9a84789ff1ba5cac059e536d57a849917ab360b6
Author: Leonardo Hernández Hernández <leohdz172@proton.me>
Date:   Tue, 12 Dec 2023 22:17:57 -0600

check toplevel resources

it's just a aesthetic change

Diffstat:
Mclient.h | 2+-
Mdwl.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client.h b/client.h @@ -352,7 +352,7 @@ client_set_tiled(Client *c, uint32_t edges) if (client_is_x11(c)) return; #endif - if (wl_resource_get_version(c->surface.xdg->resource) + if (wl_resource_get_version(c->surface.xdg->toplevel->resource) >= XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) { wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges); } else { diff --git a/dwl.c b/dwl.c @@ -1577,7 +1577,7 @@ maximizenotify(struct wl_listener *listener, void *data) * protocol version * wlr_xdg_surface_schedule_configure() is used to send an empty reply. */ Client *c = wl_container_of(listener, c, maximize); - if (wl_resource_get_version(c->surface.xdg->resource) + if (wl_resource_get_version(c->surface.xdg->toplevel->resource) < XDG_TOPLEVEL_WM_CAPABILITIES_SINCE_VERSION) wlr_xdg_surface_schedule_configure(c->surface.xdg); }