mutter:wip/fmuellner/gtk-shadows

Last commit made on 2016-10-28
Get this branch:
git clone -b wip/fmuellner/gtk-shadows https://git.launchpad.net/mutter

Branch merges

Branch information

Name:
wip/fmuellner/gtk-shadows
Repository:
lp:mutter

Recent commits

6a9ca17... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

theme: Update style classes to match CSD decorations

We currently use the "ssd" style class instead of "csd", so themes
can avoid adding a window shadow to windows that already got a shadow
from the compositor. Now that we no longer add a shadow to regular
windows, we should ask for the appropriate style.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

42ecde5... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

window-actor: Stop adding shadows to windows with frames

The frame decorations can pick up the shadow as defined by the GTK+
theme.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

45a273d... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

window-actor: Only recompute shape region and mask if necessary

Rather than recomputing shape region and mask on every focus change,
re-use the previously computed ones if possible.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

b35ad08... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

window-actor: Use different shape_regions/masks based on focus state

We now update the frame mask and -shape on every focus change, which
is expensive and wasteful if we recompute the same two regions over
and over again. To address this, use different regions/masks based on
the focus state, so that we'll be able to re-use a previously computed
one if possible.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

385cce7... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

window-actor: Update mask on focus changes

We currently assume that the frame mask and -shape don't change with the
focus style. This is reasonable for the actual decoration, but not for
the window shadow that is expected to be more pronounced when focused.
We will eventually let the GTK+ theme draw the shadow of regular windows,
so update shape region and frame mask on focus changes.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

482a581... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

theme: Consider frame borders in titlebar

We currently use the entire top border area to paint the titlebar,
ignoring the frame border set by the theme. Fix this.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

9149f56... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

ui: Render frame in mask as well

The theme may render bits of the frame that are outside the rendered
area of the background, so don't skip it when painting the frame mask.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

aae0071... by =?utf-8?q?Florian_M=C3=BCllner?= <email address hidden>

shaped-texture: Only mask alpha channel

We currently apply the mask texture to any channel, which means
elements drawn outside the actual decorations are blended with
gray. This should hardly matter in practice where shadows can
be expected to be some shade of gray, but let's still make sure
the odd theme with pink shadows or the like works correctly by
applying the alpha mask to the alpha channel only.

https://bugzilla.gnome.org/show_bug.cgi?id=744667

d491063... by Ray Strode <email address hidden>

native: don't call steal_pointer prematurely

commit e2bfaf07514ed633f8721b5f521577685b6cccc0 does this:

g_hash_table_insert (cards,
                     g_udev_device_get_name (parent_device),
                     g_steal_pointer (&parent_device));

The problem is the g_steal_pointer call may happen before the
g_udev_device_get_name call leading to a crash.

This commit does the get_name call on an earlier line

https://bugzilla.gnome.org/show_bug.cgi?id=771442

e2bfaf0... by Ray Strode <email address hidden>

native: fail on systems with connectors spread across multiple gpus

We don't support using more than one GPU for output yet, so we should fail
if we encounter that situation, so GDM will fall back to X.

https://bugzilla.gnome.org/show_bug.cgi?id=771442