GNOME Bugzilla – Bug 720106
Simplify the _NET_WM_WINDOW_OPACITY handling
Last modified: 2013-12-09 20:51:32 UTC
Some cleanups I'm doing for the Wayland branch. This removes one of the easier X11 dependencies from MetaWindowActor.
Created attachment 263815 [details] [review] compositor: Remove atom_x_root_pixmap It's unused
Created attachment 263816 [details] [review] Move _NET_WM_WINDOW_OPACITY handling to the standard window-props interface This removes one X11 dependency that the MetaWindowActor interface has, making it easier for us to use Wayland on this one...
Review of attachment 263815 [details] [review]: ::: src/compositor/compositor.c @@ +1537,1 @@ compositor->atom_net_wm_window_opacity = atoms[1]; You should renumber this to atoms[0] - I know you are removing this altogether in the next patch, but this will break bisectability with a crash.
Review of attachment 263816 [details] [review]: Looks fine with one small thing. ::: src/compositor/meta-window-actor.c @@ +351,3 @@ +static gboolean +is_transparent (MetaWindowActor *self) is_not_opaque() or maybe is_argb() please. transparent properly means "completely transparent", and isn't an obvious fit for say, a GTK+ CSD window with rounded corners. @@ +795,2 @@ /* + * Do not add shadows to transparent windows; eventually we should generate So don't use "transparent" here either.
Attachment 263815 [details] pushed as 93a8933 - compositor: Remove atom_x_root_pixmap Attachment 263816 [details] pushed as 1db95bc - Move _NET_WM_WINDOW_OPACITY handling to the standard window-props interface Pushed with both fixes.