mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
layer: get struct output from wlr_output user-data
...rather than output_from_wlr_output()
This commit is contained in:
parent
73df50a1c8
commit
349a38e676
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ move_popup_to_top_layer(struct lab_layer_surface *toplevel,
|
|||
struct server *server = toplevel->server;
|
||||
struct wlr_output *wlr_output =
|
||||
toplevel->scene_layer_surface->layer_surface->output;
|
||||
struct output *output = output_from_wlr_output(server, wlr_output);
|
||||
struct output *output = (struct output *)wlr_output->data;
|
||||
struct wlr_box box = { 0 };
|
||||
wlr_output_layout_get_box(server->output_layout, wlr_output, &box);
|
||||
int lx = toplevel->scene_layer_surface->tree->node.x + box.x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue