mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
parent
5fd5024ca6
commit
428423cfa9
1 changed files with 6 additions and 0 deletions
|
|
@ -357,6 +357,12 @@ menu_configure(struct menu *menu, int lx, int ly, enum menu_align align)
|
|||
double oy = ly;
|
||||
struct wlr_output *wlr_output = wlr_output_layout_output_at(
|
||||
menu->server->output_layout, lx, ly);
|
||||
if (!wlr_output) {
|
||||
wlr_log(WLR_ERROR,
|
||||
"Failed to position menu %s (%s) and its submenus: "
|
||||
"Not enough screen space", menu->id, menu->label);
|
||||
return;
|
||||
}
|
||||
wlr_output_layout_output_coords(menu->server->output_layout,
|
||||
wlr_output, &ox, &oy);
|
||||
struct wlr_box usable = output_usable_area_from_cursor_coords(menu->server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue