diff options
author | rbuj <[email protected]> | 2021-03-25 12:09:51 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-04-02 21:00:34 +0200 |
commit | 5d48375212d816bb9e4d23efdc155ec77dbe927d (patch) | |
tree | 4fd56b6094e297b0c155bc2b9eaea9c602610d15 | |
parent | 348151fd0204a4ae0aa76bc3312cf045d7a6a2dd (diff) | |
download | marco-5d48375212d816bb9e4d23efdc155ec77dbe927d.tar.bz2 marco-5d48375212d816bb9e4d23efdc155ec77dbe927d.tar.xz |
window-props: g_memdup is dreprecated from glib 2.68
-rw-r--r-- | src/core/window-props.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/window-props.c b/src/core/window-props.c index ed1d5c0c..2004c6a0 100644 --- a/src/core/window-props.c +++ b/src/core/window-props.c @@ -1605,8 +1605,14 @@ meta_display_init_window_prop_hooks (MetaDisplay *display) { 0 }, }; - MetaWindowPropHooks *table = g_memdup (hooks, sizeof (hooks)), - *cursor = table; + MetaWindowPropHooks *table, *cursor; + +#if GLIB_CHECK_VERSION (2, 68, 0) + table = g_memdup2 (hooks, sizeof (hooks)); +#else + table = g_memdup (hooks, sizeof (hooks)); +#endif + cursor = table; g_assert (display->prop_hooks == NULL); |