Wayland SDL support
The vanilla SRB2 runs fine under a Wayland compositor. When I launch srb2kart it fails to create an xdg_surface and the application quits.
Output of WAYLAND_DEBUG=1 SDL_VIDEODRIVER=wayland srb2kart
:
===========================================================================
We hope you enjoy this game as
much as we did making it!
===========================================================================
SRB2Kart v1.3 (Aug 28 2021 02:17:08 6f8d246d)
SDL Linux 64-bit
[725229.360] wl_display@1.delete_id(35)
[725229.423] wl_buffer@36.release()
[725229.459] wl_callback@35.done(22707)
[725229.501] -> wl_surface@23.attach(wl_buffer@33, 0, 0)
[725229.558] -> wl_surface@23.damage(0, 0, 2147483647, 2147483647)
[725229.896] -> wl_surface@23.commit()
[725229.942] -> wl_display@1.sync(new id wl_callback@35)
[725230.103] xdg_toplevel@30.configure(0, 0, array)
[725230.160] -> xdg_toplevel@30.set_min_size(0, 0)
[725230.235] -> xdg_toplevel@30.set_max_size(0, 0)
[725230.309] -> wl_surface@23.commit()
[725230.358] -> xdg_toplevel@30.set_fullscreen(wl_output@18)
[725230.404] xdg_surface@29.configure(22700)
[725230.444] -> wl_surface@23.set_buffer_scale(1)
[725230.489] -> wl_compositor@6.create_region(new id wl_region@37)
[725230.540] -> wl_region@37.add(0, 0, 0, 0)
[725230.593] -> wl_surface@23.set_opaque_region(wl_region@37)
[725230.646] -> wl_region@37.destroy()
[725230.687] -> xdg_surface@29.set_window_geometry(0, 0, 0, 0)
[725230.772] -> xdg_surface@29.ack_configure(22700)
[725230.830] wl_keyboard@20.enter(22704, wl_surface@23, array)
[725230.920] wl_keyboard@20.modifiers(22705, 0, 0, 0, 0)
[725231.019] wl_data_device@16.data_offer(new id wl_data_offer@3639993360)
[725231.078] wl_data_offer@4278190080.offer("UTF8_STRING")
[725231.141] wl_data_offer@4278190080.offer("COMPOUND_TEXT")
[725231.181] wl_data_offer@4278190080.offer("TEXT")
[725231.221] wl_data_offer@4278190080.offer("STRING")
[725231.283] wl_data_offer@4278190080.offer("text/plain;charset=utf-8")
[725231.340] wl_data_offer@4278190080.offer("text/plain")
[725231.407] wl_data_offer@4278190080.offer("SAVE_TARGETS")
[725231.470] wl_data_device@16.selection(wl_data_offer@4278190080)
[725231.529] wl_callback@26.done(26402461)
[725231.571] -> wl_surface@23.frame(new id wl_callback@34)
[725231.643] xdg_toplevel@30.configure(320, 200, array)
[725231.719] -> xdg_toplevel@30.set_min_size(0, 0)
[725231.763] -> xdg_toplevel@30.set_max_size(0, 0)
[725231.814] -> wl_surface@23.commit()
[725231.866] -> xdg_toplevel@30.set_fullscreen(wl_output@18)
[725231.925] xdg_surface@29.configure(22703)
[725231.981] -> wl_surface@23.set_buffer_scale(1)
[725232.036] -> wl_compositor@6.create_region(new id wl_region@26)
[725232.099] -> wl_region@26.add(0, 0, 320, 200)
[725232.188] -> wl_surface@23.set_opaque_region(wl_region@26)
[725232.251] -> wl_region@26.destroy()
[725232.304] -> xdg_surface@29.set_window_geometry(0, 0, 320, 200)
[725232.395] -> xdg_surface@29.ack_configure(22703)
[725232.459] wl_surface@23.enter(wl_output@18)
[725232.501] wl_pointer@19.enter(22707, wl_surface@23, 160.000000, 100.000000)
[725232.637] -> wl_pointer@19.set_cursor(22707, wl_surface@21, 5, 5)
[725232.725] -> wl_surface@21.attach(wl_buffer@3, 0, 0)
[725232.790] -> wl_surface@21.damage(0, 0, 32, 32)
[725232.868] -> wl_surface@21.commit()
[725232.912] -> wl_pointer@19.set_cursor(22707, wl_surface@21, 5, 5)
[725232.991] -> wl_surface@21.attach(wl_buffer@3, 0, 0)
[725233.065] -> wl_surface@21.damage(0, 0, 32, 32)
[725233.152] -> wl_surface@21.commit()
[725233.214] wl_pointer@19.frame()
[725233.268] xdg_toplevel@30.configure(1920, 1080, array)
[725233.337] xdg_surface@29.configure(22708)
[725233.391] -> wl_surface@23.set_buffer_scale(1)
[725233.454] -> wl_compositor@6.create_region(new id wl_region@32)
[725233.508] -> wl_region@32.add(0, 0, 1920, 1080)
[725233.594] -> wl_surface@23.set_opaque_region(wl_region@32)
[725233.661] -> wl_region@32.destroy()
[725233.712] -> xdg_surface@29.set_window_geometry(0, 0, 1920, 1080)
[725233.781] -> xdg_surface@29.ack_configure(22708)
[725376.000] wl_display@1.delete_id(35)
[725376.059] wl_display@1.delete_id(37)
[725376.112] wl_display@1.error(xdg_surface@29, 4294967295, "Tried to set invalid xdg-surface geometry")
xdg_surface@29: error -1: Tried to set invalid xdg-surface geometry
Shutdown tty console
I_ShutdownGraphics(): shut down
Shutting down joy system
I_Joystick: SDL's Joystick system has been shutdown
I_ShutdownTcpDriver: shut down
I_ShutdownSystem(): end of logstream.
Shutdown tty console