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,18 +449,23 @@ namespace SwayNotificationCenter { ...@@ -449,18 +449,23 @@ namespace SwayNotificationCenter {
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.RIGHT, true); GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.RIGHT, true);
break; break;
} }
switch (pos_y) { if (ConfigModel.instance.fit_to_screen) {
default: GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.TOP, true);
case PositionY.TOP: GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.BOTTOM, true);
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.TOP, true); } else {
break; switch (pos_y) {
case PositionY.CENTER: default:
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.TOP, true); case PositionY.TOP:
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.BOTTOM, true); GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.TOP, true);
break; break;
case PositionY.BOTTOM: case PositionY.CENTER:
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.BOTTOM, true); GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.TOP, true);
break; GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.BOTTOM, true);
break;
case PositionY.BOTTOM:
GtkLayerShell.set_anchor (this, GtkLayerShell.Edge.BOTTOM, true);
break;
}
} }
} }
} }
......
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