ValveSoftware / gamescope

SteamOS session compositing window manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gamescope tries to set viewport source and destination to empty rectangle

mahkoh opened this issue · comments

[1107540.395] xdg_toplevel@53.configure(0, 0, array[16])
[1107540.397] xdg_surface@52.configure(2)
[...]
[1107580.834]  -> wp_viewport@46.set_source(0.00000000, 0.00000000, 0.00000000, 0.00000000)
[1107580.836]  -> wp_viewport@46.set_destination(0, 0)
[...]
[1107580.930] wl_display@1.error(wl_display@1, 3, "An error occurred while processing a request: Could not process a `wp_viewport.set_source` request: Rectangle is empty or outside the first quadrant")

So, looking at wayland_backend.cpp, I’m pretty sure that the parent compositor is the one responsible for the xdg_toplevel@53.configure(0, 0, array[16])

and looking at the documentation for that function: https://wayland.app/protocols/xdg-shell#xdg_toplevel:event:configure

If the width or height arguments are zero, it means the client should decide its own window dimension. This may happen when the compositor needs to configure the state of the surface but doesn't have any information about any previous or expected dimension.

So either gamescope needs to check for the above condition, or change something else that will ensure the parent compositor doesn’t decide to configure any dimensions to zero.

@mahkoh what wayland compositor are you running gamescope under?