From 87651a2cb3cdf5d5356f9248125a08de62637077 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 8 Aug 2023 06:51:24 +0200 Subject: [PATCH] More Linux compile fixes, fixes #3524. --- src/qt/qt_rendererstack.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qt/qt_rendererstack.cpp b/src/qt/qt_rendererstack.cpp index 93a6abe07..bb812bc03 100644 --- a/src/qt/qt_rendererstack.cpp +++ b/src/qt/qt_rendererstack.cpp @@ -73,8 +73,8 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index) m_monitor_index = monitor_index; #if defined __unix__ && !defined __HAIKU__ - mousedata.mouse_type = getenv("EMU86BOX_MOUSE"), auto_mouse_type[16]; - if (!mousedata.mouse_type || (mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) { + mousedata.mouse_type = getenv("EMU86BOX_MOUSE"), char auto_mouse_type[16]; + if (!mousedata.mouse_type || (mousedata.mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) { if (QApplication::platformName().contains("wayland")) strcpy(auto_mouse_type, "wayland"); else if (QApplication::platformName() == "eglfs") @@ -87,17 +87,17 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index) } # ifdef WAYLAND - if (!stricmp(mouse_type, "wayland")) { + if (!stricmp(mousedata.mouse_type, "wayland")) { wl_init(); this->mouse_capture_func = wl_mouse_capture; this->mouse_uncapture_func = wl_mouse_uncapture; } # endif # ifdef EVDEV_INPUT - if (!stricmp(mouse_type, "evdev")) + if (!stricmp(mousedata.mouse_type, "evdev")) evdev_init(); # endif - if (!stricmp(mouse_type, "xinput2")) { + if (!stricmp(mousedata.mouse_type, "xinput2")) { extern void xinput2_init(); extern void xinput2_exit(); xinput2_init();