[mutter] display: Don't have the display meta_quit() when closing
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] display: Don't have the display meta_quit() when closing
- Date: Mon, 17 May 2021 16:34:29 +0000 (UTC)
commit 7b390b4c5b029504b6e5373b4be912a731fe8efe
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Mon Mar 1 21:40:40 2021 +0100
display: Don't have the display meta_quit() when closing
Instead only do that e.g. when we're being replaced; elsewhere let the
one intending to actually quit, do the quitting.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833>
src/core/display.c | 2 --
src/x11/events.c | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 0ce0e1c0a6..dd393c0c22 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1138,8 +1138,6 @@ meta_display_close (MetaDisplay *display,
g_object_unref (display);
the_display = NULL;
-
- meta_quit (META_EXIT_SUCCESS);
}
/**
diff --git a/src/x11/events.c b/src/x11/events.c
index efa8f9856b..6c83743e7a 100644
--- a/src/x11/events.c
+++ b/src/x11/events.c
@@ -39,6 +39,7 @@
#include "core/meta-workspace-manager-private.h"
#include "core/window-private.h"
#include "core/workspace-private.h"
+#include "meta/main.h"
#include "meta/meta-backend.h"
#include "meta/meta-x11-errors.h"
#include "x11/meta-startup-notification-x11.h"
@@ -1149,6 +1150,7 @@ close_display_idle_cb (gpointer user_data)
meta_display_close (x11_display->display,
x11_display->xselectionclear_timestamp);
x11_display->display_close_idle = 0;
+ meta_quit (META_EXIT_SUCCESS);
return G_SOURCE_REMOVE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]