]> khamidou — GitHub mirrors - electron.git/commitdiff
cocoa: Don't use Chrome's UnderlayOpenGLHostingWindow.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 25 Sep 2013 08:18:46 +0000 (16:18 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 25 Sep 2013 08:51:33 +0000 (16:51 +0800)
The UnderlayOpenGLHostingWindow would add a semi-transparent layer under
the window, I'm not very sure what does this class exactly do, but
removing it seems no harm to the renderer.

Fixes atom/atom#877.

browser/atom_event_processing_window.h

index d9874dd77c520d821563848ee66b2bfd81e601f2..cb13025f3d40614d93c9f092ac51632d848103f5 100644 (file)
@@ -8,12 +8,11 @@
 #import <Cocoa/Cocoa.h>
 
 #include "base/memory/scoped_nsobject.h"
-#import "ui/base/cocoa/underlay_opengl_hosting_window.h"
 
 // Override NSWindow to access unhandled keyboard events (for command
 // processing); subclassing NSWindow is the only method to do
 // this.
-@interface AtomEventProcessingWindow : UnderlayOpenGLHostingWindow {
+@interface AtomEventProcessingWindow : NSWindow {
  @private
   BOOL redispatchingEvent_;
   BOOL eventHandled_;