From 667069cff28bfe172573e05d2966930682b39949 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 7 Feb 2016 18:00:29 +0100 Subject: [PATCH] Adwaita: No rounded corners for fullscreen If the theme has rounded corners for fullscreen, we don't tell the window manager that we are now fully opaque, which then makes things less efficient than they should be. https://bugzilla.gnome.org//show_bug.cgi?id=761571 --- gtk/theme/Adwaita/_common.scss | 1 + gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 1e07337e31..9892e3f00a 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3555,6 +3555,7 @@ decoration { 0 0 0 1px $_wm_border_backdrop; } + .fullscreen &, .tiled & { border-radius: 0; } .popup & { box-shadow: none; } diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index c8b8602992..cfc20dff1a 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -4307,7 +4307,7 @@ decoration { * change when we go to backdrop, to prevent jumping windows */ box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 3px 9px 1px transparent, 0 0 0 1px rgba(28, 31, 31, 0.9); } - .tiled decoration { + .fullscreen decoration, .tiled decoration { border-radius: 0; } .popup decoration { box-shadow: none; } diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 02c4090e03..dfd27bf2f2 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -4448,7 +4448,7 @@ decoration { * change when we go to backdrop, to prevent jumping windows */ box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 3px 9px 1px transparent, 0 0 0 1px rgba(0, 0, 0, 0.18); } - .tiled decoration { + .fullscreen decoration, .tiled decoration { border-radius: 0; } .popup decoration { box-shadow: none; }