aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-03 10:51:28 -0500
committerLibravatar GitHub <noreply@github.com>2018-03-03 10:51:28 -0500
commit790cf11c18af7dbca218ba1253a098708989003d (patch)
tree7c35e6101237e133904ff16e44af82cc6c66ac9f
parentMerge pull request #1611 from acrisci/ipc-new-window (diff)
parentxwayland: do not send surface configure when no width/height (diff)
downloadsway-790cf11c18af7dbca218ba1253a098708989003d.tar.gz
sway-790cf11c18af7dbca218ba1253a098708989003d.tar.zst
sway-790cf11c18af7dbca218ba1253a098708989003d.zip
Merge pull request #1616 from martinetd/xwayland_nowidth
xwayland: do not send surface configure when no width/height
-rw-r--r--sway/desktop/xwayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 519c050e..6b5e03f9 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -67,6 +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
70 wlr_xwayland_surface_configure(view->wlr_xwayland_surface, 74 wlr_xwayland_surface_configure(view->wlr_xwayland_surface,
71 ox + loutput->x, oy + loutput->y, 75 ox + loutput->x, oy + loutput->y,
72 view->width, view->height); 76 view->width, view->height);