07:10 dviola: I have this one game that I run through Xwayland (Factorio), every time I close the game the steam window disappears completely but top(1) still list the process, I have to kill Xwayland when that happens... this never happens if I run the game with SDL_VIDEODRIVER=wayland or if I use XWAYLAND_NO_GLAMOR=1 (although that makes things very slow)
07:10 dviola: is this worth to investigate?
07:12 dviola: seems to happen independently of the compositor being used also
07:21 dviola: I can't reproduce it with non-rootless Xwayland
07:42 dviola: MrCooper: ^
08:18 MrCooper: dviola: weird; in general, Xwayland (like any X server) doesn't hide windows on its own, only on behalf of a client
08:25 dviola: I don't remember it being a problem before
08:26 dviola: I would test old xwayland but I had a hard time getting sway to use my build before
08:28 MrCooper: may need to build wlroots/sway against xwayland.pc from your build
08:28 MrCooper: FWIW, mutter has an xwayland_path build option
08:29 MrCooper: or the brute-force method, temporarily replacing /usr/bin/Xwayland with your build :)
08:29 dviola: ah, but your comment also made it sound that could be factorio doing something that it shouldn't, I'm happy to investigate this
08:29 MrCooper: could be Factorio, Steam or the window manager / compositor
08:29 dviola: ah
08:30 dviola: tested on weston btw, it happens there as well
08:30 dviola: s/btw/too/
08:30 MrCooper: if it happens with all compositors, Factorio or Steam seems more likely
08:30 dviola: let me build xwayland+sway real quick to see, will report back
08:31 dviola: sounds like it
08:31 dviola: I couldn't repro it with Steam's big picture mode IIRC
08:32 dviola: but it's strange that XWAYLAND_NO_GLAMOR=1 avoids the issue
08:38 dviola: 25.029 Warning GraphicsInterfaceOpenGL.cpp:256: SDL_GL_SetSwapInterval failed: That operation is not supported
08:39 dviola: I'm getting this with XWAYLAND_NO_GLAMOR=1
08:39 dviola: when I close the game I think
08:49 MrCooper: that is strange indeed, could be that disabling HW acceleration just happens to avoid the problematic path somehow though
08:50 dviola: ah, I've had not happen with X11+i3 also I think
08:55 dviola: I don't think I could get this to happen with proton games, just factorio for now, maybe it happens with other SDL games too
08:55 dviola: a workaround for me is to kill Xwayland and launch steam again
09:08 MrCooper: how about just killing steam and starting it again?
09:11 dviola: that works too
09:12 dviola: trying to compile xwayland but the build complains that it can't find xorgproto, even though I have that package
09:12 dviola: xorgproto: NO Neither a subproject directory nor a xorgproto.wrap file was found.
09:14 MrCooper: it looks for xproto.pc
09:15 MrCooper: and a bunch of other ones
09:15 dviola: I have that: /usr/share/pkgconfig/xproto.pc
09:15 MrCooper: can you pastebin the full output from meson?
09:15 dviola: sure, one sec
09:17 dviola: https://0x0.st/Xk4H.log.txt
09:19 MrCooper: looks like it can't find applewmproto.pc
09:20 dviola: hmm
09:23 dviola: doesn't make sense :/
09:26 dviola: let me try with the xwayland-* tags
09:27 dviola: that's working
09:29 MrCooper: that file has been shipped and required for years, so something like "meson configure --clearcache <build directory>" might have done the trick
09:31 dviola: getting this when trying to compile old xwayland: https://0x0.st/Xk4N.txt
09:32 dviola: seems like it doesn't like my compiler anymore?
09:35 dviola: xwayland-24.1.4 builds fine
09:35 dviola: let me try to build sway against this first, then I'll do it with old xwayland
09:44 dviola: managed to build xwayland-22.1.0 with gcc13
09:47 dviola: yeah and I can see through lsof it's using my Xwayland build
09:49 dviola: well, it didn't crash but factorio is running really slow... I'm not sure glamor is enabled?
09:57 dviola: steam says I'm running with llvmpipe now
09:58 dviola: have no idea why
09:58 dviola: that's with my build of sway/xwayland
10:08 dviola: "Failed to initialize glamor, falling back to sw"
10:12 dviola: _amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed(-13)
10:15 dviola: MrCooper: any ideas?
10:31 dviola: I think my PKG_CONFIG_PATH is probably incorrect, so it can't find stuff in /usr, but I'm not sure
10:39 dviola: it's actually Xwayland, I ran it non-rootless, ran xterm inside of it and reports llvmpipe, oof...
10:40 dviola: glxinfo, that's it
10:58 dviola: strace throws a bunch of permission denied messages I think
11:00 dviola: I should be able to run it fine as a non-root user, no?
11:04 dviola: device initialization messages go away after I run it as root, but still can't initialize glamor with my build
11:19 dviola: just tried a local build of xwayland-24.1.4 and that works fine, acceleration and all
11:19 dviola: no clue why 22.x won't work
11:27 dviola: oldest xwayland I could compile with hw acceleration is xwayland-24.0.99.901 but that also has the issue with the steam window
11:58 dviola: just tested another sdl game (carrion) and I don't get that issue, weird
12:04 dviola: the game throws a "Steam API shutdown" when I close it, but I've no idea what that means
12:08 dviola: that's on the wayland version too