Commit 46fabd13 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

PhoshHome: Use PhoshLayerSurface signals and props to handle resizing

This fixes the issue with disappearing bottom bar when output dimensions
change and it actually more in line with what we wanted to achieve there.
parent e3dd0722
......@@ -113,7 +113,7 @@ phosh_home_resize (PhoshHome *self)
phosh_arrow_set_progress (PHOSH_ARROW (self->arrow_home), 1 - progress);
gtk_window_get_size (GTK_WINDOW (self), NULL, &height);
g_object_get (self, "configured-height", &height, NULL);
margin = (-height + PHOSH_HOME_BUTTON_HEIGHT) * progress;
phosh_layer_surface_set_margins (PHOSH_LAYER_SURFACE (self), 0, 0, margin, 0);
......@@ -206,7 +206,7 @@ phosh_home_constructed (GObject *object)
g_signal_connect (self,
G_CALLBACK (phosh_home_resize),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment