diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-03-03 10:51:28 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-03-03 10:51:28 -0500 |
| commit | 7a9ed36d4e66e26d155f89b6c9cd21d3641e763e (patch) | |
| tree | 7c35e6101237e133904ff16e44af82cc6c66ac9f | |
| parent | b379605a35ca6ff2d6a97e9cd7985c079e070e73 (diff) | |
| parent | 2dd9fb628167d37a16780df3094df6bbe9b48be6 (diff) | |
Merge pull request #1616 from martinetd/xwayland_nowidth
xwayland: do not send surface configure when no width/height
| -rw-r--r-- | sway/desktop/xwayland.c | 4 |
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) { view->swayc->x = ox; view->swayc->y = oy; + if (view->width == 0 || view->height == 0) { + return; + } + wlr_xwayland_surface_configure(view->wlr_xwayland_surface, ox + loutput->x, oy + loutput->y, view->width, view->height); |
