summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-25 12:09:51 +0100
committerraveit65 <[email protected]>2021-04-02 21:00:34 +0200
commit5d48375212d816bb9e4d23efdc155ec77dbe927d (patch)
tree4fd56b6094e297b0c155bc2b9eaea9c602610d15 /src/core
parent348151fd0204a4ae0aa76bc3312cf045d7a6a2dd (diff)
downloadmarco-5d48375212d816bb9e4d23efdc155ec77dbe927d.tar.bz2
marco-5d48375212d816bb9e4d23efdc155ec77dbe927d.tar.xz
window-props: g_memdup is dreprecated from glib 2.68
Diffstat (limited to 'src/core')
-rw-r--r--src/core/window-props.c10
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);