Skip to content

Commit 74c763c

Browse files
authored
PanelWindow: Remove leftover size handling (#684)
This was needed because in gtk3 we would fullscreen the wingpanel when an indicator was opened but we don't have to do that anymore.
1 parent 42d0993 commit 74c763c

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

src/PanelWindow.vala

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class Wingpanel.PanelWindow : Gtk.Window {
6464
}
6565
});
6666

67-
notify["scale-factor"].connect (on_scale_changed);
67+
notify["scale-factor"].connect (update_panel_dimensions);
6868
}
6969

7070
construct {
@@ -98,22 +98,6 @@ public class Wingpanel.PanelWindow : Gtk.Window {
9898
popover_manager.toggle_popover_visible (name);
9999
}
100100

101-
private void on_scale_changed () {
102-
if (desktop_panel != null) {
103-
desktop_panel.set_size (-1, get_actual_height ());
104-
}
105-
106-
update_panel_dimensions ();
107-
}
108-
109-
private int get_actual_height () {
110-
if (!Services.DisplayConfig.is_logical_layout ()) {
111-
return get_height () * get_scale_factor ();
112-
}
113-
114-
return get_height ();
115-
}
116-
117101
public void registry_handle_global (Wl.Registry wl_registry, uint32 name, string @interface, uint32 version) {
118102
if (@interface == "io_elementary_pantheon_shell_v1") {
119103
desktop_shell = wl_registry.bind<Pantheon.Desktop.Shell> (name, ref Pantheon.Desktop.Shell.iface, uint32.min (version, 1));

0 commit comments

Comments
 (0)