Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 321223002: Update the window shape when toggling whether the system titlebar and borders are used on KDE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
index ced380dc42d43c0cc9a09035944ae1172f75e183..8a612a1068f757aba38d1a10337fe8fe01616249 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
@@ -349,10 +349,8 @@ aura::WindowTreeHost* DesktopWindowTreeHostX11::AsWindowTreeHost() {
void DesktopWindowTreeHostX11::ShowWindowWithState(
ui::WindowShowState show_state) {
- if (!window_mapped_) {
+ if (!window_mapped_)
MapWindow(show_state);
- ResetWindowRegion();
- }
if (show_state == ui::SHOW_STATE_NORMAL ||
show_state == ui::SHOW_STATE_MAXIMIZED) {
@@ -1274,6 +1272,7 @@ bool DesktopWindowTreeHostX11::HasWMSpecProperty(const char* property) const {
void DesktopWindowTreeHostX11::SetUseNativeFrame(bool use_native_frame) {
use_native_frame_ = use_native_frame;
x11_window_event_filter_->SetUseHostWindowBorders(use_native_frame);
+ ResetWindowRegion();
pkotwicz 2014/06/10 22:00:53 I am unsure if XShapeCombineRectangles() is safe t
}
void DesktopWindowTreeHostX11::OnCaptureReleased() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698