mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +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->start_x - drag->last_x) * t,
|
||||||
(drag->last_y - drag->hot_y) +
|
(drag->last_y - drag->hot_y) +
|
||||||
(drag->start_y - drag->last_y) * t);
|
(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;
|
return G_SOURCE_CONTINUE;
|
||||||
}
|
}
|
||||||
|
@ -231,6 +231,8 @@ void gdk_x11_surface_get_root_coords (GdkSurface *surface,
|
|||||||
gint *root_y);
|
gint *root_y);
|
||||||
|
|
||||||
void gdk_x11_surface_raise (GdkSurface *surface);
|
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);
|
GdkGrabStatus _gdk_x11_convert_grab_status (gint status);
|
||||||
|
|
||||||
|
@ -4459,9 +4459,9 @@ gdk_x11_surface_beep (GdkSurface *surface)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
gdk_x11_surface_set_opacity (GdkSurface *surface,
|
gdk_x11_surface_set_opacity (GdkSurface *surface,
|
||||||
gdouble opacity)
|
double opacity)
|
||||||
{
|
{
|
||||||
GdkDisplay *display;
|
GdkDisplay *display;
|
||||||
gulong cardinal;
|
gulong cardinal;
|
||||||
|
Loading…
Reference in New Issue
Block a user