[mutter/wip/carlosg/avoid-app-updates: 1/2] core: Only notify on MetaWindow::user-time on actual changes
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/avoid-app-updates: 1/2] core: Only notify on MetaWindow::user-time on actual changes
- Date: Wed, 24 Jul 2019 12:11:14 +0000 (UTC)
commit aee8bfce3fff93a82736ddb6aaa2ff24a15da809
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jul 19 17:47:43 2019 +0200
core: Only notify on MetaWindow::user-time on actual changes
If the timestamp is the same, it doesn't make sense to update and we
don't do so. So it doesn't make sense to notify on the property either.
https://gitlab.gnome.org/GNOME/mutter/issues/556
src/core/window.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 4c0761d70..163bbb840 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7101,9 +7101,9 @@ meta_window_set_user_time (MetaWindow *window,
if (meta_prefs_get_focus_new_windows () == G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT &&
window_is_terminal (window))
window->display->allow_terminal_deactivation = FALSE;
- }
- g_object_notify_by_pspec (G_OBJECT (window), obj_props[PROP_USER_TIME]);
+ g_object_notify_by_pspec (G_OBJECT (window), obj_props[PROP_USER_TIME]);
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]