mutter/src/ui
Simon McVittie c2a9ccb7e2 Let the UI layer (via the core) construct the frame mask
This essentially just moves install_corners() from the compositor, through
the core, into the UI layer where it arguably should have been anyway,
leaving behind stub functions which call through the various layers. This
removes the compositor's special knowledge of how rounded corners work,
replacing it with "ask the UI for an alpha mask".

The computation of border widths and heights changes a bit, because the
width and height used in install_corners() are the
meta_window_get_outer_rect() (which includes the visible borders but not
the invisible ones), whereas the more readily-available rectangle is the
MetaFrame.rect (which includes both). Computing the same width and height
as meta_window_get_outer_rect() involves compensating for the invisible
borders, but the UI layer is the authority on those anyway, so it seems
clearer to have it do the calculations from scratch.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=697758
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
2013-04-17 13:35:06 +01:00
..
draw-workspace.c draw-workspace: Update to current GTK style API 2011-07-08 21:40:55 +02:00
draw-workspace.h ui: Port draw_workspace() to take a cairo_t 2010-09-26 17:09:20 +02:00
frames.c Let the UI layer (via the core) construct the frame mask 2013-04-17 13:35:06 +01:00
frames.h Let the UI layer (via the core) construct the frame mask 2013-04-17 13:35:06 +01:00
gradient.c Add a meaningful name and description to all sections/files in the API docs 2013-03-14 18:11:04 -04:00
menu.c ui: Replace deprecated gtk_widget_size_request 2011-11-11 09:33:42 +01:00
menu.h Comprehensively rename to Mutter 2009-06-16 14:17:10 -04:00
metaaccellabel.c Move the installed includes to a subdir 2011-03-07 18:19:53 -05:00
metaaccellabel.h Move the installed includes to a subdir 2011-03-07 18:19:53 -05:00
preview-widget.c Remove theme.h and preview-widget.h from the API docs 2013-03-18 23:08:24 +01:00
resizepopup.c resize-popup: use a tooltip style for the resize popup window 2013-02-10 14:25:27 -05:00
resizepopup.h Move the installed includes to a subdir 2011-03-07 18:19:53 -05:00
tabpopup.c Switch to gtk-doc syntax 2012-04-24 15:20:39 -04:00
tabpopup.h Move the installed includes to a subdir 2011-03-07 18:19:53 -05:00
testgradient.c gradient: Port from GdkColor to GdkRGBA 2011-07-08 01:29:54 +02:00
theme-parser.c Fix gobs of gtk-doc warnings 2013-03-14 18:02:43 -04:00
theme-private.h theme: Remove a bunch of unused *_to_string methods 2013-01-11 17:40:23 +01:00
theme-viewer.c theme-viewer: Stop using deprecated GTK+ functions 2013-02-08 19:08:55 +01:00
theme.c Remove theme.h and preview-widget.h from the API docs 2013-03-18 23:08:24 +01:00
tile-preview.c tile-preview: Remove non-composited case 2012-01-17 12:53:33 +01:00
tile-preview.h tile-preview: Remove non-composited case 2012-01-17 12:53:33 +01:00
ui.c Let the UI layer (via the core) construct the frame mask 2013-04-17 13:35:06 +01:00
ui.h Let the UI layer (via the core) construct the frame mask 2013-04-17 13:35:06 +01:00