[mutter/wip/carlosg/x11-services-initialization-fix: 2/2] core: Ensure ::x11-display-opened is emitted at a time there are handlers
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/x11-services-initialization-fix: 2/2] core: Ensure ::x11-display-opened is emitted at a time there are handlers
- Date: Wed, 11 Sep 2019 16:02:19 +0000 (UTC)
commit bd0bbb8cfd12687dbd0d477505e473b182ee994d
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Sep 11 15:27:48 2019 +0200
core: Ensure ::x11-display-opened is emitted at a time there are handlers
During display initialization, the MetaX11Display would be opened at a time
when we didn't initialize yet the compositor/plugin. The plugin is certainly
interested in ::x11-display-opened happening, so make sure the signal
happens late enough that the upper layers are able to connect to the signal
in advance.
Fixes xsettings/ibus-x11 initialization on the still default "initialize
Xwayland on startup" wayland compositor behavior.
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/771
src/core/display.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/core/display.c b/src/core/display.c
index e803f5557..ff228abad 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -803,6 +803,7 @@ meta_display_open (void)
if (display->x11_display)
{
+ g_signal_emit (display, display_signals[X11_DISPLAY_OPENED], 0);
meta_x11_display_restore_active_workspace (display->x11_display);
meta_x11_display_create_guard_window (display->x11_display);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]