Commit 6af582b0 authored by Erik Reider's avatar Erik Reider

Fixed fit-to-screen not applying when layer-shell-cover-screen is disabled

parent 079eee12
...@@ -449,6 +449,10 @@ namespace SwayNotificationCenter { ...@@ -449,6 +449,10 @@ namespace SwayNotificationCenter {
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.RIGHT, true); GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.RIGHT, true);
break; break;
} }
if (ConfigModel.instance.fit_to_screen) {
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.TOP, true);
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.BOTTOM, true);
} else {
switch (pos_y) { switch (pos_y) {
default: default:
case PositionY.TOP: case PositionY.TOP:
...@@ -464,6 +468,7 @@ namespace SwayNotificationCenter { ...@@ -464,6 +468,7 @@ namespace SwayNotificationCenter {
} }
} }
} }
}
// Set the box margins // Set the box margins
box.set_margin_top (ConfigModel.instance.control_center_margin_top); box.set_margin_top (ConfigModel.instance.control_center_margin_top);
......
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