[metacity] screen: unset timeout ID after removal
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] screen: unset timeout ID after removal
- Date: Fri, 29 Sep 2017 22:22:07 +0000 (UTC)
commit 0e569d311556894d30c9677a73954590784083b9
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Sep 28 15:09:31 2017 +0200
screen: unset timeout ID after removal
Otherwise we may try to remove the now invalid ID again, resulting
in a warning.
https://bugzilla.gnome.org/show_bug.cgi?id=788292
src/core/screen.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index ccd26c9..52afaf9 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -1436,6 +1436,7 @@ meta_screen_tile_preview_hide (MetaScreen *screen)
{
if (screen->tile_preview_timeout_id > 0)
g_source_remove (screen->tile_preview_timeout_id);
+ screen->tile_preview_timeout_id = 0;
if (screen->tile_preview)
meta_tile_preview_hide (screen->tile_preview);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]