Adwaita: control surface for resize tiled windows

- window resizing control area is implemented as where the shadows are drawn
- create a 'fake' shadow for the tiled case to allow easier resizing of
  the tiled window ratio even if it's offset to the side of the border

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3670
This commit is contained in:
Jakub Steiner
2021-02-16 14:06:35 +01:00
parent f5bd591d89
commit edcd4c6207

View File

@@ -4117,9 +4117,11 @@ window {
&.tiled-right,
&.tiled-bottom {
border-radius: 0;
box-shadow: 0 0 0 1px $_wm_border_backdrop;
&:backdrop { box-shadow: 0 0 0 1px $_wm_border_backdrop; }
box-shadow: 0 0 0 1px $_wm_border_backdrop,
0 0 0 20px transparent; //transparent control workaround -- #3670
}
&:backdrop { box-shadow: 0 0 0 1px $_wm_border_backdrop,
0 0 0 20px transparent; // #3670
}
&.popup { box-shadow: none; }