aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-31 08:30:07 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commitc9e3a313b440c171ae0bf78eb5b85bf63c3121b9 (patch)
tree7262123c295411c5e089ed1c359b363fabf21854 /sway/desktop/xwayland.c
parentFix crash when using multiple outputs (diff)
downloadsway-c9e3a313b440c171ae0bf78eb5b85bf63c3121b9.tar.gz
sway-c9e3a313b440c171ae0bf78eb5b85bf63c3121b9.tar.zst
sway-c9e3a313b440c171ae0bf78eb5b85bf63c3121b9.zip
Fix fullscreen position of xwayland views
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 76265ea9..75bfb7b2 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -237,12 +237,12 @@ static void handle_commit(struct wl_listener *listener, void *data) {
237 struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; 237 struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
238 if (view->swayc && container_is_floating(view->swayc)) { 238 if (view->swayc && container_is_floating(view->swayc)) {
239 view_update_size(view, xsurface->width, xsurface->height); 239 view_update_size(view, xsurface->width, xsurface->height);
240 view_update_position(view,
241 xwayland_view->pending_lx, xwayland_view->pending_ly);
242 } else { 240 } else {
243 view_update_size(view, xwayland_view->pending_width, 241 view_update_size(view, xwayland_view->pending_width,
244 xwayland_view->pending_height); 242 xwayland_view->pending_height);
245 } 243 }
244 view_update_position(view,
245 xwayland_view->pending_lx, xwayland_view->pending_ly);
246 view_damage_from(view); 246 view_damage_from(view);
247} 247}
248 248