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.
This commit is contained in:
parent
6168638cf4
commit
20e22ec26a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue