Skip to content

Commit b383741

Browse files
authored
window-list: set initial button state later (#313)
Fixes #312
1 parent 6920bbe commit b383741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ 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
7271

7372
label.set_ellipsize(Pango::EllipsizeMode::END);
7473
label.set_hexpand(true);
@@ -155,6 +154,7 @@ class WayfireToplevel::impl
155154
this->window_list = window_list;
156155

157156
send_rectangle_hints();
157+
set_state(0); // will set the appropriate button style
158158
}
159159

160160
int grab_off_x;

0 commit comments

Comments
 (0)