diff options
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r-- | sway/desktop/xwayland.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 01c993b3..5f9c99a3 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -67,13 +67,10 @@ static void set_position(struct sway_view *view, double ox, double oy) { | |||
67 | view->swayc->x = ox; | 67 | view->swayc->x = ox; |
68 | view->swayc->y = oy; | 68 | view->swayc->y = oy; |
69 | 69 | ||
70 | if (view->width == 0 || view->height == 0) { | ||
71 | return; | ||
72 | } | ||
73 | |||
74 | wlr_xwayland_surface_configure(view->wlr_xwayland_surface, | 70 | wlr_xwayland_surface_configure(view->wlr_xwayland_surface, |
75 | ox + loutput->x, oy + loutput->y, | 71 | ox + loutput->x, oy + loutput->y, |
76 | view->width, view->height); | 72 | view->wlr_xwayland_surface->width, |
73 | view->wlr_xwayland_surface->height); | ||
77 | } | 74 | } |
78 | 75 | ||
79 | static void set_activated(struct sway_view *view, bool activated) { | 76 | static void set_activated(struct sway_view *view, bool activated) { |