Bug 1432158 - Update comment for gdk_disable_multidevice() call on Wayland backend, r?jhorak draft
authorMartin Stransky <stransky@redhat.com>
Mon, 22 Jan 2018 15:52:17 +0100
changeset 723078 4a8e4a9a54cf8bd31345a4780e5e43f2826ec897
parent 722069 abbe0ca5d9693e06484fcb52bbcac189c3461f50
child 746765 2d9f2f842f94c82021bd21c24884b8cad2ea9511
push id96323
push userstransky@redhat.com
push dateMon, 22 Jan 2018 14:53:32 +0000
reviewersjhorak
bugs1432158
milestone59.0a1
Bug 1432158 - Update comment for gdk_disable_multidevice() call on Wayland backend, r?jhorak MozReview-Commit-ID: QaCVmUbxNg
toolkit/xre/nsAppRunner.cpp
--- 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.