summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantosh Mahto <santoshmahto@collabora.co.uk>2017-10-19 08:01:03 (GMT)
committerSantosh Mahto <santoshmahto@collabora.co.uk>2017-10-19 08:01:03 (GMT)
commitef8e036648e250d3bc2115642bd2e95175ac93f7 (patch)
tree5a20d2b89c645edb5d6f59da2e97e3621c2c3f4a
parent7aaf1b4a91dc15e9d89085c83d7c992f03519d02 (diff)
downloadchromium-cef-wayland.tar.gz
chromium-cef-wayland.tar.xz
Issue: T6548 Fix workaround done for window insets.cef-wayland
The window insets is hardcoded to gfx(33,0,0,0) by default for chrome usecases so it is changed to gfx(0,0,0,0).
-rw-r--r--services/ui/ws/window_server.cc2
-rw-r--r--ui/views/mus/desktop_window_tree_host_mus.cc2
2 files changed, 1 insertions, 3 deletions
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 260aa06..c415b9d 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -579,7 +579,7 @@ bool WindowServer::GetFrameDecorationsForUser(
// tabstrip height in BrowserNonClientFrameViewMus::GetHeaderHeigh().
// TODO(tonikitoo,msisov): Maybe there is some refinement to be done here?
// What about maximized_client_area_insets and max_title_bar_button_width?
- (*values)->normal_client_area_insets = gfx::Insets(33, 0, 0, 0);
+ (*values)->normal_client_area_insets = gfx::Insets(0, 0, 0, 0);
return true;
}
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index 8c56ebf..1d054ac 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -62,7 +62,6 @@ class ClientSideNonClientFrameView : public NonClientFrameView {
// NonClientFrameView:
gfx::Rect GetBoundsForClientView() const override {
gfx::Rect result(GetLocalBounds());
- return result;
if (widget_->IsFullscreen())
return result;
result.Inset(GetDefaultWindowManagerInsets(widget_->IsMaximized()));
@@ -70,7 +69,6 @@ class ClientSideNonClientFrameView : public NonClientFrameView {
}
gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override {
- return client_bounds;
if (widget_->IsFullscreen())
return client_bounds;