From b7ecb963f08566b69db336d9d2fe136fee57dd16 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 12 Mar 2014 14:36:18 +0000 Subject: [PATCH] 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 --- patch/patches/views_widget_180.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/patch/patches/views_widget_180.patch b/patch/patches/views_widget_180.patch index 6a1b5075e..29b72a99b 100644 --- a/patch/patches/views_widget_180.patch +++ b/patch/patches/views_widget_180.patch @@ -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)