diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2021-07-19 19:57:05 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2021-07-19 23:08:07 +0300 |
commit | de8ecbc922934cbe89d54275c562e33c43ffdda7 (patch) | |
tree | 85e1d546404f2daea4b2c4ec4fdf7fafc02a956c | |
parent | df44cd1c225238a8ac2ef24909c9fe9b27ec9a95 (diff) | |
download | metacity-de8ecbc922934cbe89d54275c562e33c43ffdda7.tar.gz |
main: use correct timestamp when closing display
-rw-r--r-- | src/core/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c index 10f80021..34de6ee0 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -398,8 +398,13 @@ meta_finalize (void) MetaDisplay *display = meta_get_display(); if (display) - meta_display_close (display, - CurrentTime); /* I doubt correct timestamps matter here */ + { + guint32 timestamp; + + timestamp = meta_display_get_current_time_roundtrip (display); + + meta_display_close (display, timestamp); + } if (meta_shutdown_session) meta_session_shutdown (); |