Skip to content

Commit

Permalink
populate lx/ly when Xwayland view is created
Browse files Browse the repository at this point in the history
  • Loading branch information
djpohly committed Oct 17, 2023
1 parent 31c129b commit 14ba8d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xwayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ handle_xwayland_surface_new(struct wl_listener *listener, void *data)

view_init(&xwayland_view->view, server, CAGE_XWAYLAND_VIEW, &xwayland_view_impl);
xwayland_view->xwayland_surface = xwayland_surface;
xwayland_view->view.lx = xwayland_surface->x;
xwayland_view->view.ly = xwayland_surface->y;

xwayland_view->map.notify = handle_xwayland_surface_map;
wl_signal_add(&xwayland_surface->events.map, &xwayland_view->map);
Expand Down

0 comments on commit 14ba8d3

Please sign in to comment.