From 20e22ec26a4a8033b45b0e5a5ff241792a04107d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Fri, 1 Sep 2017 21:37:42 +0200 Subject: [PATCH] Deprecate global KWin::displayWidth and KWin::displayHeight Actually they could go directly as nothing in KWin uses them anymore. But there are more functions in kwinglobal which need to go as they don't support restarting XWayland. So instead of breaking internal ABI several times, just deprecate till everything is prepared. --- libkwineffects/kwinglobals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libkwineffects/kwinglobals.h b/libkwineffects/kwinglobals.h index d74dd7da16..0ca4891d78 100644 --- a/libkwineffects/kwinglobals.h +++ b/libkwineffects/kwinglobals.h @@ -187,14 +187,14 @@ KWIN_EXPORT xcb_screen_t *defaultScreen() } inline -KWIN_EXPORT int displayWidth() +KWIN_DEPRECATED_EXPORT int displayWidth() { xcb_screen_t *screen = defaultScreen(); return screen ? screen->width_in_pixels : 0; } inline -KWIN_EXPORT int displayHeight() +KWIN_DEPRECATED_EXPORT int displayHeight() { xcb_screen_t *screen = defaultScreen(); return screen ? screen->height_in_pixels : 0;