https://bugs.kde.org/show_bug.cgi?id=444962

David Gow <da...@ingeniumdigital.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |da...@ingeniumdigital.com

--- Comment #4 from David Gow <da...@ingeniumdigital.com> ---
I'm seeing what I think is the same issue with Plasma 5.23.3 on OpenSUSE
Tumbleweed with all SDL2 applications when fullscreen.

What appears to be happening is that the application is receiving a configure
request to resize itself to 1×1, which SDL2 accepts. In my case, due to a scale
factor of 2.00, this results in the game rendering to a 2px×2px buffer, which
is what shows up in the taskbar thumbnail preview.

SDL2 has code to ignore resizes from configure events which try to resize a
non-resizable window, but it only takes effect in non-fullscreen modes. 

I haven't found toggling VSync does anything here: the game gets a 1×1
configure event regardless. Nor am I running applications in Flatpack. Equally,
I can reproduce this with the latest main branch of SDL2. As noted, setting
SDL_VIDEODRIVER=x11 works around the issue by using XWayland.

Excerpts from WAYLAND_DEBUG which illustrate the issue:
[449104.573]  -> xdg_toplevel@29.set_fullscreen(wl_output@16)
[449106.869] wl_display@1.delete_id(27)
[449107.012] xdg_toplevel@29.configure(1600, 900, array)
[449107.061] xdg_surface@28.configure(65673)
[449107.112]  -> wl_surface@23.set_buffer_scale(2)
[…]
[449384.857] xdg_toplevel@29.configure(1, 1, array)
[449384.874] xdg_surface@28.configure(65674)
[449384.887]  -> wl_surface@23.set_buffer_scale(2)
[449384.899]  -> wl_compositor@4.create_region(new id wl_region@32)
[449384.909]  -> wl_reg...@32.add(0, 0, 1, 1)
[449384.929]  -> wl_surface@23.set_opaque_region(wl_region@32)
[449384.938]  -> wl_region@32.destroy()
[449384.944]  -> xdg_surface@28.set_window_geometry(0, 0, 1, 1)
[449384.963]  -> xdg_surface@28.ack_configure(65674)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to