Skip to content

Commit e085897

Browse files
authored
panel: show new toplevels as inactive by default (#292)
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.
1 parent 378d2da commit e085897

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/panel/widgets/window-list/toplevel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class WayfireToplevel::impl
6868
button_contents.set_spacing(5);
6969
button.set_child(button_contents);
7070
button.set_tooltip_text("none");
71+
set_state(0); // will set the appropriate button style
7172

7273
label.set_ellipsize(Pango::EllipsizeMode::END);
7374
label.set_hexpand(true);

0 commit comments

Comments
 (0)