forked from AuroraMiddleware/gtk
x11: Stop using gdk_surface_raise
Avoid a vfunc roundtrip and just use the backend implementation directly.
This commit is contained in:
parent
3276021a5b
commit
2a6c08571f
@ -1399,7 +1399,7 @@ move_drag_surface (GdkDrag *drag,
|
||||
gdk_x11_surface_move (drag_x11->drag_surface,
|
||||
x_root - drag_x11->hot_x,
|
||||
y_root - drag_x11->hot_y);
|
||||
gdk_surface_raise (drag_x11->drag_surface);
|
||||
gdk_x11_surface_raise (drag_x11->drag_surface);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -230,6 +230,8 @@ void gdk_x11_surface_get_root_coords (GdkSurface *surface,
|
||||
gint *root_x,
|
||||
gint *root_y);
|
||||
|
||||
void gdk_x11_surface_raise (GdkSurface *surface);
|
||||
|
||||
GdkGrabStatus _gdk_x11_convert_grab_status (gint status);
|
||||
|
||||
cairo_surface_t * _gdk_x11_display_create_bitmap_surface (GdkDisplay *display,
|
||||
|
@ -1455,7 +1455,7 @@ gdk_x11_surface_layout_popup (GdkSurface *surface,
|
||||
static void
|
||||
show_popup (GdkSurface *surface)
|
||||
{
|
||||
gdk_surface_raise (surface);
|
||||
gdk_x11_surface_raise (surface);
|
||||
gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0);
|
||||
_gdk_surface_update_viewable (surface);
|
||||
gdk_x11_surface_show (surface, FALSE);
|
||||
@ -1561,7 +1561,7 @@ _gdk_x11_surface_set_surface_scale (GdkSurface *surface,
|
||||
gdk_surface_invalidate_rect (surface, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
gdk_x11_surface_raise (GdkSurface *surface)
|
||||
{
|
||||
XRaiseWindow (GDK_SURFACE_XDISPLAY (surface), GDK_SURFACE_XID (surface));
|
||||
|
Loading…
Reference in New Issue
Block a user