x11: Stop using gdk_surface_raise

Avoid a vfunc roundtrip and just use the backend
implementation directly.
This commit is contained in:
Matthias Clasen 2020-02-29 12:54:24 -05:00
parent 3276021a5b
commit 2a6c08571f
3 changed files with 5 additions and 3 deletions

View File

@ -1399,7 +1399,7 @@ move_drag_surface (GdkDrag *drag,
gdk_x11_surface_move (drag_x11->drag_surface, gdk_x11_surface_move (drag_x11->drag_surface,
x_root - drag_x11->hot_x, x_root - drag_x11->hot_x,
y_root - drag_x11->hot_y); y_root - drag_x11->hot_y);
gdk_surface_raise (drag_x11->drag_surface); gdk_x11_surface_raise (drag_x11->drag_surface);
} }
static gboolean static gboolean

View File

@ -230,6 +230,8 @@ void gdk_x11_surface_get_root_coords (GdkSurface *surface,
gint *root_x, gint *root_x,
gint *root_y); gint *root_y);
void gdk_x11_surface_raise (GdkSurface *surface);
GdkGrabStatus _gdk_x11_convert_grab_status (gint status); GdkGrabStatus _gdk_x11_convert_grab_status (gint status);
cairo_surface_t * _gdk_x11_display_create_bitmap_surface (GdkDisplay *display, cairo_surface_t * _gdk_x11_display_create_bitmap_surface (GdkDisplay *display,

View File

@ -1455,7 +1455,7 @@ gdk_x11_surface_layout_popup (GdkSurface *surface,
static void static void
show_popup (GdkSurface *surface) show_popup (GdkSurface *surface)
{ {
gdk_surface_raise (surface); gdk_x11_surface_raise (surface);
gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0); gdk_synthesize_surface_state (surface, GDK_SURFACE_STATE_WITHDRAWN, 0);
_gdk_surface_update_viewable (surface); _gdk_surface_update_viewable (surface);
gdk_x11_surface_show (surface, FALSE); gdk_x11_surface_show (surface, FALSE);
@ -1561,7 +1561,7 @@ _gdk_x11_surface_set_surface_scale (GdkSurface *surface,
gdk_surface_invalidate_rect (surface, NULL); gdk_surface_invalidate_rect (surface, NULL);
} }
static void void
gdk_x11_surface_raise (GdkSurface *surface) gdk_x11_surface_raise (GdkSurface *surface)
{ {
XRaiseWindow (GDK_SURFACE_XDISPLAY (surface), GDK_SURFACE_XID (surface)); XRaiseWindow (GDK_SURFACE_XDISPLAY (surface), GDK_SURFACE_XID (surface));