frontend: Make projectors somewhat work on Wayland#11558
frontend: Make projectors somewhat work on Wayland#11558cg2121 wants to merge 1 commit intoobsproject:masterfrom
Conversation
572fba9 to
93f5c40
Compare
|
If we are going to disable fullscreen on wayland I have a newer better version of this somewhere. |
|
To be clear, this just disables the right click menu options, in the projector window, of changing to fullscreen or windowed. |
|
Right, I wasnt clear but that is what i meant. |
|
This also appears to fix the "explicit sync" crash for me, even without the change from #11556. I'd like to point out though that the "Fullscreen" and "Windowed" context menu entries seemed to work fine for me with kwin and labwc, so maybe that's specific to certain Wayland compositors. Out of curiosity, in which compositors do you have issues with those menu options? I personally don't care much about those menu options though, so if this is a more general fix or workaround for more Wayland compositors, that's great. |
|
The projector problems, I've been seeing, happen on Gnome with Mutter. |
|
@cg2121 Ah okay, that's interesting. I gave Gnome 47 in Wayland mode a quick try on my machine. Without any patches, the stable version of OBS crashes with the same explicit sync error as it does in KDE. With #11556 applied, I think I see what you mean, the projector window is missing its decoration (the context menu entries for fullscreen/windowed appear to work though). With your pull request applied it works better and does show the window decorations. I guess the behavior somewhat depends on the specific Wayland compositor. |
|
The commit description below exceeds the 72-character limit.
|
93f5c40 to
e468044
Compare
This makes the projectors work on Wayland. The ability to set a fullscreen projector windowed and vice-versa is disabled, as Wayland doesn't really support resizing windows from code.
e468044 to
9174eb3
Compare
|
Updated to latest master |
|
Found my old code, but after cleaning it up its really only some fixes to when we call show compared to the old code. Pushed it at #11773 , added your disable fullscreen/windowed switch since it seems like the only good choice on gnome... |
|
Closing, as #11773 is now submitted by @kkartaltepe. |
Description
This makes the projectors work on Wayland. The ability to set a fullscreen projector windowed and vice-versa is disabled, as Wayland doesn't really support resizing windows from code.
Motivation and Context
Original PR by @kkartaltepe #6357
How Has This Been Tested?
Make projectors usable on Wayland
Types of changes
Checklist: