mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
x11: Stop using gdk_surface_set_opacity
We can just use the backend api directly.
This commit is contained in:
parent
412a593618
commit
fafddde4bc
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user