-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build with drm_backend
or sdl2_backend
disabled
#1347
Comments
I tackled the code and looks like it is pretty much impossible to disable As for diff --git a/src/main.cpp b/src/main.cpp
index 01dd8ca..3aa0ffc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -834,8 +834,10 @@ int main(int argc, char **argv)
case gamescope::GamescopeBackend::Wayland:
gamescope::IBackend::Set<gamescope::CWaylandBackend>();
+#if HAVE_SDL2
if ( !GetBackend() )
gamescope::IBackend::Set<gamescope::CSDLBackend>();
+#endif
break;
default:
abort();
diff --git a/src/wayland_backend.cpp b/src/wayland_backend.cpp
index c5b33cf..745cb35 100644
--- a/src/wayland_backend.cpp
+++ b/src/wayland_backend.cpp
@@ -1247,8 +1247,10 @@ namespace gamescope
return false;
}
+#if HAVE_SDL2
m_pDefaultCursorInfo = GetX11HostCursor();
m_pDefaultCursorSurface = CursorInfoToSurface( m_pDefaultCursorInfo );
+#endif
if ( g_bForceRelativeMouse )
this->SetRelativeMouseMode( true );
|
There's another backend for platforms not using libdrm that I haven't pushed up yet. I think GetX11HostCursor should be moved into its own file, then that can be a proper fix for upstream |
This seems to work. I'm not a C++ guy though, so I maybe did it wrong. Edit: actually its easier to review it as a PR: #1350. |
And another bit of improvement: #1351 |
drm_backend
andsdl2_backend
meson options are effectively useless right now as you can't disable them.When trying to build with
drm_backend=disabled
:When trying to build with
sdl2_backend=disabled
:The text was updated successfully, but these errors were encountered: