After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 658217 - MetaWindowActor: clip shadow to a single monitor
MetaWindowActor: clip shadow to a single monitor
Status: RESOLVED WONTFIX
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
: 660499 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-05 04:59 UTC by Rui Matos
Modified: 2018-01-25 09:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
MetaWindowActor: clip shadow to a single monitor (7.70 KB, patch)
2011-09-05 04:59 UTC, Rui Matos
none Details | Review
MetaWindowActor: clip shadow to a single monitor (7.77 KB, patch)
2011-09-06 16:40 UTC, Rui Matos
none Details | Review
MetaWindowActor: clip shadow to a single monitor (7.89 KB, patch)
2011-11-16 18:59 UTC, Rui Matos
none Details | Review

Description Rui Matos 2011-09-05 04:59:12 UTC
This is now split from bug 643075.

I've changed the approach from computing the clip out of the ::paint handler
and instead I'm now computing it whenever the window moves/resizes or there's
a focus change. There might be more situations where we have to hook this
though.

Moving this out of ::paint had the nice side effect of no longer crashing on
closing attached modal dialogs too.
Comment 1 Rui Matos 2011-09-05 04:59:14 UTC
Created attachment 195663 [details] [review]
MetaWindowActor: clip shadow to a single monitor

If a window isn't visible in more than one monitor we clip its shadow if it
would "bleed" into an adjacent monitor.
Comment 2 Rui Matos 2011-09-06 16:40:43 UTC
Created attachment 195809 [details] [review]
MetaWindowActor: clip shadow to a single monitor

If a window isn't visible in more than one monitor we clip its shadow if it
would "bleed" into an adjacent monitor.

--
- added an early bail out when we don't have a shadow set yet which prevents a
  NULL pointer dereference in meta_window_actor_get_shadow_bounds()
Comment 3 Florian Müllner 2011-09-29 17:01:18 UTC
*** Bug 660499 has been marked as a duplicate of this bug. ***
Comment 4 Rui Matos 2011-11-16 18:54:56 UTC
Ping? The amount of code here might seem like a lot but please bear in mind that for the single monitor case this should be quite cheap as we bail out early.
Comment 5 Rui Matos 2011-11-16 18:59:41 UTC
Created attachment 201558 [details] [review]
MetaWindowActor: clip shadow to a single monitor

--

Rebased on master.
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-03-18 06:22:28 UTC
Is this still necessary/wanted?
Comment 7 Rui Matos 2012-03-18 20:11:12 UTC
(In reply to comment #6)
> Is this still necessary/wanted?

I think so but let's try to get some design input.

I've been running with this patch since I filed this bug so it does work and still applies.
Comment 8 Jonas Ådahl 2018-01-25 09:11:47 UTC
I don't think we want this now that shadows are mostly client side, thus closing for now.