diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2018-08-24 12:54:50 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2018-08-27 08:33:00 +0000 |
commit | f4d07caa38e51d09ee73bab20334a6b5c28952d6 (patch) | |
tree | fcad1f92ee7a4617bb821572cbcc1b506f74256c /src/x11/window-x11.c | |
parent | 8a6d502e689ab6036852487aa6e72f54691426fa (diff) | |
download | mutter-f4d07caa38e51d09ee73bab20334a6b5c28952d6.tar.gz |
window: Pass flag to meta_window_update_monitor() instead of bool
The bool determines whether the call was directly from a user operation
or not. To add more state into the call without having to add more
boolenas, change the boolean to a flag (so far with 'none' and 'user-op'
as possible values). No functional changes were made.
https://gitlab.gnome.org/GNOME/mutter/issues/192
Diffstat (limited to 'src/x11/window-x11.c')
-rw-r--r-- | src/x11/window-x11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index 2418e6262..b2b2c9cb3 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -1501,8 +1501,8 @@ meta_window_x11_update_icon (MetaWindow *window, } static void -meta_window_x11_update_main_monitor (MetaWindow *window, - gboolean user_op) +meta_window_x11_update_main_monitor (MetaWindow *window, + MetaWindowUpdateMonitorFlags flags) { window->monitor = meta_window_calculate_main_logical_monitor (window); } @@ -3339,7 +3339,7 @@ meta_window_x11_configure_notify (MetaWindow *window, priv->client_rect = window->rect; window->buffer_rect = window->rect; - meta_window_update_monitor (window, FALSE); + meta_window_update_monitor (window, META_WINDOW_UPDATE_MONITOR_FLAGS_NONE); /* Whether an override-redirect window is considered fullscreen depends * on its geometry. |