From 2a44a6599b0c57a4b42e65a9063db6cf38d87330 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 21 Mar 2026 09:55:04 +0000 Subject: [PATCH 1/4] fix(scratchpad): hide scratchpads correctly on minimize When a scratchpad window was minimized (hidden), its `issticky` flag and `tags` were not updated to the `SCRATCHPAD_MASK`. This caused the window to still be considered visible on the active tags and rendered in the titlebar as a grayed-out "minimized" window. Clicking it would then incorrectly trigger `title_drag_finish` showing it again. Additionally, this prevented instantwmctl commands like `scratchpad show` from working, since the scratchpad was still considered `issticky` (visible). This patch modifies `src/client/visibility.rs`'s `hide` function to intercept when a scratchpad is hidden, properly clearing `issticky` and setting its `tags` to `SCRATCHPAD_MASK`, ensuring the scratchpad correctly drops out of the titlebar and standard toggle commands work. Co-authored-by: paperbenni <15818888+paperbenni@users.noreply.github.com> From e13d746f798357c784c2ebe2d837d16d1d66d67f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 21 Mar 2026 10:08:46 +0000 Subject: [PATCH 2/4] fix(scratchpad): properly handle scratchpad tags when minimizing Co-authored-by: paperbenni <15818888+paperbenni@users.noreply.github.com> From affaf11fd7f5a35f36b28c6b8afc014480fa4b0a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 21 Mar 2026 10:13:00 +0000 Subject: [PATCH 3/4] fix(scratchpad): properly handle scratchpad tags when minimizing Co-authored-by: paperbenni <15818888+paperbenni@users.noreply.github.com> From be06f4a05301d8278b99113c1ec5def29b1ac6d1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 23 Mar 2026 12:45:57 +0000 Subject: [PATCH 4/4] fix(scratchpad): properly handle scratchpad tags when minimizing Co-authored-by: paperbenni <15818888+paperbenni@users.noreply.github.com>