From 4f997d2d4c59b0f69bd73e38a98c8c2d0db15f85 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 11 Sep 2026 20:52:11 +0200 Subject: [PATCH] Filter out IME popup toplevels from the taskbar Hyprland.toplevels included fcitx's "Input" and "Default IME" popup surfaces, which don't appear in hyprctl clients and showed up in the taskbar as icon-less letter buttons. Genuine application windows always have a workspace assigned; these don't, so filter on that. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Dujsk9jYfxUVLtb5B8eC94 --- quickshell/default/Bar.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/quickshell/default/Bar.qml b/quickshell/default/Bar.qml index 99bee61..da50e93 100644 --- a/quickshell/default/Bar.qml +++ b/quickshell/default/Bar.qml @@ -375,8 +375,15 @@ Variants { // Hyprland.toplevels can silently reorder (e.g. on focus changes), // which makes taskbar buttons jump around. Sort by address so each // window keeps a stable slot like a real taskbar. + // + // It also includes things hyprctl clients doesn't (e.g. fcitx's + // "Input" / "Default IME" popup toplevels) - those never get a + // real workspace assigned, unlike genuine application windows, so + // filter on that. readonly property var sortedToplevels: { - var arr = Hyprland.toplevels.values.slice() + var arr = Hyprland.toplevels.values.filter(function (tl) { + return tl.workspace !== null + }) arr.sort(function (a, b) { return a.address < b.address ? -1 : (a.address > b.address ? 1 : 0) })