event-controller: For the long-press notification animation check on the screen being actually composited
Fixes the notification being a black rectangle on screens with an alpha colormap, but with no compositing manager. Signed-off-by: Carlos Garnacho <carlos@lanedo.com> Acked-by: Simon Schampijer <simon@laptop.org>
This commit is contained in:
parent
d4934d73a7
commit
fe4667f0f5
@ -274,7 +274,7 @@ _sugar_long_press_anim_timeout (gpointer user_data)
|
||||
|
||||
gtk_window_set_screen (GTK_WINDOW (priv->anim_window), screen);
|
||||
|
||||
if (rgba_visual)
|
||||
if (rgba_visual && gdk_screen_is_composited (screen))
|
||||
{
|
||||
GdkRGBA bg = { 0, 0, 0, 0 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user