From fc25ef5568291528f6e1c3463b3b142139eb8e8d Mon Sep 17 00:00:00 2001 From: aura Date: Fri, 2 Oct 2026 00:29:58 +0200 Subject: add tiling --- openbox/client.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 85aaf6e4..d3bef6c7 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -20,6 +20,7 @@ #include "client.h" #include "debug.h" #include "startupnotify.h" +#include "tiling.h" #include "dock.h" #include "screen.h" #include "moveresize.h" @@ -608,6 +609,7 @@ void client_unmanage(ObClient *self) mouse_grab_for_client(self, FALSE); self->managed = FALSE; + tiling_forget(self); /* remove the window from our save set, unless we are managing an internal ObPrompt window */ @@ -2132,6 +2134,12 @@ void client_update_title(ObClient *self) g_free(data); } + if (tiling_key(self)) { + data = visible; + visible = g_strdup_printf("[F%u] %s", tiling_key(self), data); + g_free(data); + } + OBT_PROP_SETS(self->window, NET_WM_VISIBLE_NAME, visible); self->title = visible; @@ -2557,6 +2565,7 @@ static void client_change_state(ObClient *self) if (self->frame) frame_adjust_state(self->frame); + tiling_client_changed(self); } ObClient *client_search_focus_tree(ObClient *self) @@ -3318,6 +3327,7 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, { client_calc_layer(self); } + tiling_client_changed(self); } void client_fullscreen(ObClient *self, gboolean fs) -- cgit v1.2.3