Skip to content

Commit

Permalink
frontend-tools: Avoid initializing the scene switcher on Wayland
Browse files Browse the repository at this point in the history
The Linux implementation of the automatic scene switcher is X11-only and
the design itself of the feature is incompatible with how Wayland works.
  • Loading branch information
tytan652 authored and RytoEX committed Jul 30, 2024
1 parent e12ef51 commit 5e5865b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UI/frontend-plugins/frontend-tools/auto-scene-switcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ static void OBSEvent(enum obs_frontend_event event, void *)

extern "C" void InitSceneSwitcher()
{
#if !defined(__APPLE__) && !defined(_WIN32)
if (QApplication::platformName().contains("wayland"))
return;
#endif

QAction *action = (QAction *)obs_frontend_add_tools_menu_qaction(
obs_module_text("SceneSwitcher"));

Expand Down

0 comments on commit 5e5865b

Please sign in to comment.