mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #1616 from martinetd/xwayland_nowidth
xwayland: do not send surface configure when no width/height
This commit is contained in:
commit
790cf11c18
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ static void set_position(struct sway_view *view, double ox, double oy) {
|
||||||
view->swayc->x = ox;
|
view->swayc->x = ox;
|
||||||
view->swayc->y = oy;
|
view->swayc->y = oy;
|
||||||
|
|
||||||
|
if (view->width == 0 || view->height == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wlr_xwayland_surface_configure(view->wlr_xwayland_surface,
|
wlr_xwayland_surface_configure(view->wlr_xwayland_surface,
|
||||||
ox + loutput->x, oy + loutput->y,
|
ox + loutput->x, oy + loutput->y,
|
||||||
view->width, view->height);
|
view->width, view->height);
|
||||||
|
|
Loading…
Reference in a new issue