From fa26c8042f9a75ca0a40e4d998dec43e6922a783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kondor=20D=C3=A1niel?= Date: Sun, 13 Apr 2025 13:34:03 +0200 Subject: [PATCH] panel: show new toplevels as inactive by default If the newly created toplevel is the active one, we will get notified explicitly (via the "state" event). However, if a toplevel is opened in the "background", no event will be sent, and we should not show it as active. --- src/panel/widgets/window-list/toplevel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panel/widgets/window-list/toplevel.cpp b/src/panel/widgets/window-list/toplevel.cpp index 05802076..7938bd98 100644 --- a/src/panel/widgets/window-list/toplevel.cpp +++ b/src/panel/widgets/window-list/toplevel.cpp @@ -63,6 +63,7 @@ class WayfireToplevel::impl button_contents.set_halign(Gtk::ALIGN_START); button.add(button_contents); button.set_tooltip_text("none"); + set_state(0); // will set the appropriate button style button.signal_clicked().connect_notify( sigc::mem_fun(this, &WayfireToplevel::impl::on_clicked));