mirror of
https://github.com/brl/mutter.git
synced 2025-02-21 07:24:09 +00:00
xwayland: Allow setting up maintenance processes
This is made a signal, so the upper layers (read: gnome-shell) may decide what to spawn, whether to add a GSetting, and whatnot. The only signal argument contains the appropriate display to use for this kind of setup.
This commit is contained in:
parent
252fd771b1
commit
8aeec308fb
@ -150,6 +150,7 @@ enum
|
|||||||
SHOWING_DESKTOP_CHANGED,
|
SHOWING_DESKTOP_CHANGED,
|
||||||
RESTACKED,
|
RESTACKED,
|
||||||
WORKAREAS_CHANGED,
|
WORKAREAS_CHANGED,
|
||||||
|
INIT_XSERVER,
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -480,6 +481,13 @@ meta_display_class_init (MetaDisplayClass *klass)
|
|||||||
0, NULL, NULL, NULL,
|
0, NULL, NULL, NULL,
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
|
display_signals[INIT_XSERVER] =
|
||||||
|
g_signal_new ("init-xserver",
|
||||||
|
G_TYPE_FROM_CLASS (klass),
|
||||||
|
G_SIGNAL_RUN_LAST,
|
||||||
|
0, NULL, NULL, NULL,
|
||||||
|
G_TYPE_NONE, 1, G_TYPE_INT);
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_FOCUS_WINDOW,
|
PROP_FOCUS_WINDOW,
|
||||||
g_param_spec_object ("focus-window",
|
g_param_spec_object ("focus-window",
|
||||||
|
@ -590,6 +590,9 @@ on_displayfd_ready (int fd,
|
|||||||
* that means it's ready. */
|
* that means it's ready. */
|
||||||
xserver_finished_init (manager);
|
xserver_finished_init (manager);
|
||||||
|
|
||||||
|
g_signal_emit_by_name (display, "init-xserver",
|
||||||
|
manager->private_connection.display_index);
|
||||||
|
|
||||||
if (meta_get_x11_display_policy () == META_DISPLAY_POLICY_ON_DEMAND)
|
if (meta_get_x11_display_policy () == META_DISPLAY_POLICY_ON_DEMAND)
|
||||||
meta_display_init_x11 (display, NULL);
|
meta_display_init_x11 (display, NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user