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.
icc-effect-5.14.5
Martin Flöser 2017-09-01 21:37:42 +02:00
parent 6168638cf4
commit 20e22ec26a
1 changed files with 2 additions and 2 deletions

View File

@ -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;