Skip to content

Commit

Permalink
Revert "Some linux fixes test / linux: prefers Wayland over XWayland s…
Browse files Browse the repository at this point in the history
…hadps4-emu#1827"

This reverts commit 849b6dc.
  • Loading branch information
diegolix29 committed Dec 25, 2024
1 parent 20d1f47 commit 88264c9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/sdl_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ static Uint32 SDLCALL PollController(void* userdata, SDL_TimerID timer_id, Uint3
WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameController* controller_,
std::string_view window_title)
: width{width_}, height{height_}, controller{controller_} {
#if defined(SDL_PLATFORM_LINUX)
if (getenv("WAYLAND_DISPLAY") && !SDL_SetHint(SDL_HINT_VIDEO_DRIVER, "wayland")) {
UNREACHABLE_MSG("Failed to set video driver hint to Wayland: {}", SDL_GetError());
}
#endif
if (!SDL_Init(SDL_INIT_VIDEO)) {
UNREACHABLE_MSG("Failed to initialize SDL video subsystem: {}", SDL_GetError());
}
Expand Down

0 comments on commit 88264c9

Please sign in to comment.