Windows: Don't apply inset to borderless windows (issue #1195).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1632 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2014-03-12 14:36:18 +00:00
parent d9310e2c58
commit b7ecb963f0

View File

@ -46,6 +46,20 @@ Index: widget.cc
native_widget(NULL),
desktop_window_tree_host(NULL),
top_level(false),
@@ -389,7 +391,12 @@
Minimize();
} else if (params.delegate) {
SetContentsView(params.delegate->GetContentsView());
- SetInitialBoundsForFramelessWindow(params.bounds);
+ if (params.parent_widget) {
+ // Set the bounds directly instead of applying an inset.
+ SetBounds(params.bounds);
+ } else {
+ SetInitialBoundsForFramelessWindow(params.bounds);
+ }
}
native_widget_initialized_ = true;
}
Index: widget.h
===================================================================
--- widget.h (revision 251746)