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
parent
6168638cf4
commit
20e22ec26a
|
@ -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 New Issue