mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
linux: Fix modal message box.
This commit is contained in:
@@ -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(
|
||||
|
||||
2
vendor/brightray
vendored
2
vendor/brightray
vendored
Submodule vendor/brightray updated: 227af5c6af...13628c0d7f
Reference in New Issue
Block a user