Bug 742810 - shadow clipping for half-maximized windows
shadow clipping for half-maximized windows
Status: NEW
Product: gtk+
Classification: Platform
Component: Themes
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2015-01-12 15:29 UTC by Jakub Steiner
Modified: 2016-12-07 19:09 UTC (History)
6 users (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description Jakub Steiner 2015-01-12 15:29:26 UTC
Right now shadows are clipped differently in mutter than in gtk for CSD windows.

For gtk CSD windows, maximized windows have the shadow clipped so they don't get cast on other displays. However, Half-maximized windows do. I've been told the mutter behavior of not casting shadow when two windows are tiled side by side has been viewed as a bug by some. While I would prefer the mutter behavior[1], we definitely need to behave consistently here.

[1]  Discussion on it can be seen in bug #643075
Comment 1 Lapo Calamandrei 2015-01-12 20:18:44 UTC
Frankly speaking I prefer the gtk+ CSD behaviour, well after dimming a bit the shadow for the focused tiled window though.
Mostly since the shadow is used to reinforce the focused window visual indication which is a bit weak without.
Comment 2 Jakub Steiner 2015-01-13 12:24:24 UTC
Perhaps a good compromise. Let's fix the CSD side to be just right:

- dim the shadow for tiled windows
- clip the shadow on the edges so they don't show up on neighboring displays

Once we are happy, we make this a consistency bug of mutter.
Comment 3 Matthias Clasen 2015-01-13 13:13:26 UTC
(In reply to comment #2)
> Perhaps a good compromise. Let's fix the CSD side to be just right:
> 
> - dim the shadow for tiled windows
> - clip the shadow on the edges so they don't show up on neighboring displays

You might think this is easy - but it isn't. We don't have knowledge about which edges are tiled and which are screen edges. We just know 'this window is tiled', thats about it.
Comment 4 Lapo Calamandrei 2015-01-14 00:18:28 UTC
IIRC mutter has the concept (well window geometries) of left tiled and right tiled, the same thing in gtk+ should fix that, no?
Comment 5 Lapo Calamandrei 2015-01-14 00:19:00 UTC
Yeah, it's probably easy to say that, but hard to implement :-/
Comment 6 Debarshi Ray 2015-06-17 15:11:10 UTC
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1232298
Comment 7 Emmanuele Bassi (:ebassi) 2015-08-04 14:42:24 UTC
See also bug 752794.
Comment 8 Lapo Calamandrei 2015-09-29 14:19:56 UTC
This is a very visible issue, can we try to address this for 3.20?
Comment 9 Lapo Calamandrei 2016-07-26 18:10:24 UTC
Any progress on this one? It would be nice for the window node to get a tiled styleclass with the positional classes in the mix too (atm on wayland there's no tiled class at all), shall I file another bug for this?
Comment 10 jon 2016-12-07 19:09:35 UTC
would like to see shadows clipped for half maximised windows.

Note You need to log in before you can comment on or make changes to this bug.