panel: implemented --edge=none on X11
This commit is contained in:
5
glfw/x11_window.c
vendored
5
glfw/x11_window.c
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user