obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.25k stars 7.98k forks source link

Hiding OBS window (not with minimizing, but with hide from tray/status icon) when preview is active causes preview window to be transparent when OBS is shown/unhidden #7134

Open RushingAlien opened 2 years ago

RushingAlien commented 2 years ago

Operating System Info

Other

Other OS

Arch Linux, Flatpak

OBS Studio Version

27.2.4

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/JWL1Vk3wKTLzEhyS

OBS Studio Crash Log URL

No response

Expected Behavior

For preview to not be transparent

Current Behavior

Preview becomes transparent

Steps to Reproduce

  1. Be in a wayland session
  2. Run OBS
  3. Make sure OBS is running natively in wayland with xeyes, if the eyes follow, it's an x11 window
  4. If it is an x window, restart obs with QT_QPA_PLATFORM=wayland variable
  5. Hide OBS via the tray/status icon while preview is active
  6. Unhide/show OBS window again and see that it is transparent until i deactivate preview and activate it again

Anything else we should know?

Doesn't happen when hiding OBS while preview is inactive

https://user-images.githubusercontent.com/80886145/185568878-5d73e059-4d5a-4892-89fe-efd3ef6e5c60.mp4

tytan652 commented 2 years ago
  • Make sure OBS is running natively in wayland with xeyes, if the eyes follow, it's an x11 window

  • If it is an x window, restart obs with QT_QPA_PLATFORM=wayland variable

Off-topic: we already enforce QT_QPA_PLATFORM=wayland in OBS code when under Wayland.

tytan652 commented 1 year ago

Still happen on 29.

Note: step 3 and 4 are no longer required.

evertvorster commented 1 year ago

I can confirm that this happens to me too. Arch Linux, KDE, and git version of OBS Studio

nowrep commented 1 year ago

This seems to be Qt issue: https://codereview.qt-project.org/c/qt/qtwayland/+/472528 (fixed in Qt 6.5.1)

RushingAlien commented 1 year ago

oh nice

RushingAlien commented 1 year ago

Should i close? Since this is not OBS Studio's bug