summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/views/window.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/views/window.cc b/chrome/views/window.cc
index 4c9de42..6171b3a 100644
--- a/chrome/views/window.cc
+++ b/chrome/views/window.cc
@@ -629,11 +629,8 @@ DWORD Window::CalculateWindowStyle() {
DWORD Window::CalculateWindowExStyle() {
DWORD window_ex_styles = 0;
- if (window_delegate_->AsDialogDelegate()) {
+ if (window_delegate_->AsDialogDelegate())
window_ex_styles |= WS_EX_DLGMODALFRAME;
- } else if (!(window_style() & WS_CHILD)) {
- window_ex_styles |= WS_EX_APPWINDOW;
- }
if (window_delegate_->IsAlwaysOnTop())
window_ex_styles |= WS_EX_TOPMOST;
return window_ex_styles;