window: Move can_ping to a function and implement in X11

https://gitlab.gnome.org/GNOME/mutter/merge_requests/421
This commit is contained in:
Marco Trevisan (Treviño)
2019-01-30 20:41:11 +01:00
committed by Marco Trevisan
parent 3bf80a967c
commit f798912cbd
8 changed files with 44 additions and 7 deletions

View File

@@ -326,8 +326,6 @@ struct _MetaWindow
/* whether net_wm_icon_geometry has been set */
guint icon_geometry_set : 1;
/* These are the flags from WM_PROTOCOLS */
guint can_ping : 1;
/* Globally active / No input */
guint input : 1;
@@ -570,6 +568,7 @@ struct _MetaWindowClass
ClutterInputDevice *source);
gboolean (*is_focusable) (MetaWindow *window);
gboolean (*is_stackable) (MetaWindow *window);
gboolean (*can_ping) (MetaWindow *window);
gboolean (*are_updates_frozen) (MetaWindow *window);
};
@@ -665,6 +664,8 @@ void meta_window_set_focused_internal (MetaWindow *window,
gboolean meta_window_is_focusable (MetaWindow *window);
gboolean meta_window_can_ping (MetaWindow *window);
void meta_window_current_workspace_changed (MetaWindow *window);
void meta_window_show_menu (MetaWindow *window,