]> khamidou — GitHub mirrors - electron.git/commitdiff
Enable accelerated composition in frameless window.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 9 Jul 2014 11:05:24 +0000 (19:05 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 9 Jul 2014 11:05:24 +0000 (19:05 +0800)
atom/browser/default_app/index.html
atom/browser/native_window.cc

index 2b85bd7b37d9683af33bb9eb549908e06bb1b1d1..df6001242836acc312c37ec34c3139043726216e 100644 (file)
@@ -78,7 +78,7 @@
     };
   </script>
 
-  <h2>Welcome to Atom Shell</h2>
+  <h2 style="-webkit-app-region: drag">Welcome to Atom Shell</h2>
 
   <p>
   To run your app with atom-shell, execute the following command under your
index 527da4a70a58b4ffa2df300d5074449bc9bf2b07..c853cf6de97c99faba89494e3821c5e8d794b33c 100644 (file)
@@ -329,10 +329,6 @@ void NativeWindow::AppendExtraCommandLineSwitches(
 }
 
 void NativeWindow::OverrideWebkitPrefs(const GURL& url, WebPreferences* prefs) {
-  // FIXME Disable accelerated composition in frameless window.
-  if (!has_frame_)
-    prefs->accelerated_compositing_enabled = false;
-
   bool b;
   std::vector<base::FilePath> list;
   if (!web_preferences_)