Commit 38b78d1a authored by Gustavo Noronha's avatar Gustavo Noronha

HACK: Don't include the chrome in sizes

parent d6a70631
......@@ -63,6 +63,7 @@ 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,6 +71,7 @@ class ClientSideNonClientFrameView : public NonClientFrameView {
}
gfx::Rect GetWindowBoundsForClientBounds(
const gfx::Rect& client_bounds) const override {
return client_bounds;
if (widget_->IsFullscreen())
return client_bounds;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment