panel: implemented --edge=none on X11

This commit is contained in:
alex-huff
2025-10-09 17:18:40 -05:00
parent 3ca953d98e
commit 1967fd9dd5

5
glfw/x11_window.c vendored
View File

@@ -607,6 +607,11 @@ calculate_layer_geometry(_GLFWwindow *window) {
ans.width = m.width - config.requested_right_margin - config.requested_left_margin;
ans.struts[s.bottom] = ans.height; ans.struts[s.bottom_end_x] = ans.width;
break;
case GLFW_EDGE_NONE:
ans.needs_strut = false;
ans.x = m.x + config.requested_left_margin;
ans.y = m.y + config.requested_top_margin;
break;
case GLFW_EDGE_CENTER_SIZED:
ans.needs_strut = false;
ans.x = (m.width - ans.width) / 2;