]> khamidou — GitHub mirrors - electron.git/commitdiff
linux: Fix modal message box.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 14 Jul 2014 08:34:22 +0000 (16:34 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 14 Jul 2014 08:34:22 +0000 (16:34 +0800)
atom/browser/ui/message_box_views.cc
vendor/brightray

index ed67c3054669db3907757cfc07cba9edbbc865b2..de736216df7ceef81c2d98380ed95832bf34f853 100644 (file)
@@ -166,7 +166,7 @@ MessageDialog::MessageDialog(NativeWindow* parent_window,
 
 #if defined(USE_X11)
   // In X11 the window frame is drawn by the application.
-  widget_params.remove_standard_frame = true;
+  params.remove_standard_frame = true;
 #endif
 
   widget_.reset(new views::Widget);
@@ -237,11 +237,7 @@ views::View* MessageDialog::GetInitiallyFocusedView() {
 }
 
 ui::ModalType MessageDialog::GetModalType() const {
-#if defined(USE_X11)
-  return ui::MODAL_TYPE_NONE;
-#else
   return ui::MODAL_TYPE_SYSTEM;
-#endif
 }
 
 views::NonClientFrameView* MessageDialog::CreateNonClientFrameView(
index 227af5c6af2ce54df0916bc61168045c177d3d39..13628c0d7f799952c2d0067dbacded0bd73d5671 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 227af5c6af2ce54df0916bc61168045c177d3d39
+Subproject commit 13628c0d7f799952c2d0067dbacded0bd73d5671