]> khamidou — GitHub mirrors - electron.git/commitdiff
also register touch events.
authorKarim Hamidou <khamidou@gmail.com>
Fri, 12 Feb 2016 17:01:49 +0000 (09:01 -0800)
committerKarim Hamidou <khamidou@gmail.com>
Fri, 12 Feb 2016 17:01:49 +0000 (09:01 -0800)
atom/browser/native_window_views.cc

index 44df87da9fb81cb5a37285c86c006a6ef346a27c..28cac5551050723d72c0325043c5f65e5d5a064d 100644 (file)
@@ -255,6 +255,9 @@ NativeWindowViews::NativeWindowViews(
     ex_style |= WS_EX_COMPOSITED;
     ::SetWindowLong(GetAcceleratedWidget(), GWL_EXSTYLE, ex_style);
   }
+
+  // Enable Windows 8 touch events
+  RegisterTouchWindow(GetAcceleratedWidget(), 0)
 #endif
 
   // TODO(zcbenz): This was used to force using native frame on Windows 2003, we