Commit 844d0d75 authored by stransky's avatar stransky
Browse files

Bug 1661219 [Linux/KDE] Disable XINPUT2 by default on KDE, r=botond a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D89194
parent d8a0f63d
......@@ -3838,8 +3838,11 @@ int XREMain::XRE_mainStartup(bool* aExitFlag) {
const char* useXI2env = PR_GetEnv("MOZ_USE_XINPUT2");
const bool disableXI2ByPref = (useXI2env && (*useXI2env == '0'));
const bool enabledXI2ByPref = (useXI2env && (*useXI2env == '1'));
if (!enabledXI2ByPref &&
(gtk_check_version(3, 24, 0) != nullptr || disableXI2ByPref)) {
const char* currentDesktop = getenv("XDG_CURRENT_DESKTOP");
const bool IsKDEDesktop =
(currentDesktop && strstr(currentDesktop, "KDE") != nullptr);
if (!enabledXI2ByPref && (gtk_check_version(3, 24, 0) != nullptr ||
disableXI2ByPref || IsKDEDesktop)) {
gdk_disable_multidevice();
}
# endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment