Move ping to be a vfunc
This commit is contained in:
@ -4701,12 +4701,7 @@ meta_display_ping_window (MetaWindow *window,
|
||||
"Sending ping with timestamp %u to window %s\n",
|
||||
timestamp, window->desc);
|
||||
|
||||
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11)
|
||||
meta_window_send_icccm_message (window,
|
||||
display->atom__NET_WM_PING,
|
||||
timestamp);
|
||||
else
|
||||
meta_wayland_surface_ping (window->surface, timestamp);
|
||||
META_WINDOW_GET_CLASS (window)->ping (window, timestamp);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -471,6 +471,8 @@ struct _MetaWindowClass
|
||||
|
||||
void (*manage) (MetaWindow *window);
|
||||
void (*unmanage) (MetaWindow *window);
|
||||
void (*ping) (MetaWindow *window,
|
||||
guint32 serial);
|
||||
void (*delete) (MetaWindow *window,
|
||||
guint32 timestamp);
|
||||
void (*kill) (MetaWindow *window);
|
||||
|
Reference in New Issue
Block a user