diff options
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 5f9c99a3..bbaa88c8 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -41,7 +41,7 @@ static void set_size(struct sway_view *view, int width, int height) { | |||
41 | view->sway_xwayland_surface->pending_height = height; | 41 | view->sway_xwayland_surface->pending_height = height; |
42 | 42 | ||
43 | struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; | 43 | struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; |
44 | wlr_xwayland_surface_configure(xsurface, view->swayc->x, view->swayc->y, | 44 | wlr_xwayland_surface_configure(xsurface, xsurface->x, xsurface->y, |
45 | width, height); | 45 | width, height); |
46 | } | 46 | } |
47 | 47 | ||
@@ -151,7 +151,7 @@ static void handle_map(struct wl_listener *listener, void *data) { | |||
151 | view_damage_whole(sway_surface->view); | 151 | view_damage_whole(sway_surface->view); |
152 | } | 152 | } |
153 | 153 | ||
154 | static void handle_configure_request(struct wl_listener *listener, void *data) { | 154 | static void handle_request_configure(struct wl_listener *listener, void *data) { |
155 | struct sway_xwayland_surface *sway_surface = | 155 | struct sway_xwayland_surface *sway_surface = |
156 | wl_container_of(listener, sway_surface, request_configure); | 156 | wl_container_of(listener, sway_surface, request_configure); |
157 | struct wlr_xwayland_surface_configure_event *ev = data; | 157 | struct wlr_xwayland_surface_configure_event *ev = data; |
@@ -206,7 +206,7 @@ void handle_xwayland_surface(struct wl_listener *listener, void *data) { | |||
206 | 206 | ||
207 | wl_signal_add(&xsurface->events.request_configure, | 207 | wl_signal_add(&xsurface->events.request_configure, |
208 | &sway_surface->request_configure); | 208 | &sway_surface->request_configure); |
209 | sway_surface->request_configure.notify = handle_configure_request; | 209 | sway_surface->request_configure.notify = handle_request_configure; |
210 | 210 | ||
211 | wl_signal_add(&xsurface->events.unmap, &sway_surface->unmap); | 211 | wl_signal_add(&xsurface->events.unmap, &sway_surface->unmap); |
212 | sway_surface->unmap.notify = handle_unmap; | 212 | sway_surface->unmap.notify = handle_unmap; |