Bug 1432158 - Update comment for gdk_disable_multidevice() call on Wayland backend, r?jhorak
MozReview-Commit-ID: QaCVmUbxNg
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -3870,17 +3870,20 @@ XREMain::XRE_mainStartup(bool* aExitFlag
nsAutoCString program(gAppData->name);
ToLowerCase(program);
g_set_prgname(program.get());
}
// Initialize GTK here for splash.
#if defined(MOZ_WIDGET_GTK) && defined(MOZ_X11)
- // Disable XInput2 support due to focus bugginess. See bugs 1182700, 1170342.
+ // Disable XInput2 multidevice support due to focus bugginess.
+ // See bugs 1182700, 1170342.
+ // gdk_disable_multidevice() affects Gdk X11 backend only,
+ // the multidevice support is always enabled on Wayland backend.
const char* useXI2 = PR_GetEnv("MOZ_USE_XINPUT2");
if (!useXI2 || (*useXI2 == '0'))
gdk_disable_multidevice();
#endif
// Open the display ourselves instead of using gtk_init, so that we can
// close it without fear that one day gtk might clean up the display it
// opens.