1
1
Fork 0
mirror of https://github.com/swaywm/sway synced 2024-06-15 06:07:36 +02:00

Merge pull request #1616 from martinetd/xwayland_nowidth

xwayland: do not send surface configure when no width/height
This commit is contained in:
Drew DeVault 2018-03-03 10:51:28 -05:00 committed by GitHub
commit 790cf11c18
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);