x11: Stop using gdk_surface_set_opacity

We can just use the backend api directly.
This commit is contained in:
Matthias Clasen 2020-03-04 09:38:27 -08:00
parent 412a593618
commit fafddde4bc
3 changed files with 5 additions and 3 deletions

View File

@ -1786,7 +1786,7 @@ gdk_drag_anim_timeout (gpointer data)
(drag->start_x - drag->last_x) * t,
(drag->last_y - drag->hot_y) +
(drag->start_y - drag->last_y) * t);
gdk_surface_set_opacity (drag->drag_surface, 1.0 - f);
gdk_x11_surface_set_opacity (drag->drag_surface, 1.0 - f);
return G_SOURCE_CONTINUE;
}

View File

@ -231,6 +231,8 @@ void gdk_x11_surface_get_root_coords (GdkSurface *surface,
gint *root_y);
void gdk_x11_surface_raise (GdkSurface *surface);
void gdk_x11_surface_set_opacity (GdkSurface *surface,
double opacity);
GdkGrabStatus _gdk_x11_convert_grab_status (gint status);

View File

@ -4459,9 +4459,9 @@ gdk_x11_surface_beep (GdkSurface *surface)
return FALSE;
}
static void
void
gdk_x11_surface_set_opacity (GdkSurface *surface,
gdouble opacity)
double opacity)
{
GdkDisplay *display;
gulong cardinal;