Commit c61081ff authored by Martin Flöser's avatar Martin Flöser
Browse files

Temporarily revert to XDisplayWidth/Height

We don't like broken master. Proper fix coming later on.

BUG: 316040
parent 1e6af3a9
......@@ -177,15 +177,23 @@ KWIN_EXPORT xcb_screen_t *defaultScreen()
inline
KWIN_EXPORT int displayWidth()
{
#if 0
xcb_screen_t *screen = defaultScreen();
return screen ? screen->width_in_pixels : 0;
#else
return XDisplayWidth(display(), DefaultScreen(display()));
#endif
}
inline
KWIN_EXPORT int displayHeight()
{
#if 0
xcb_screen_t *screen = defaultScreen();
return screen ? screen->height_in_pixels : 0;
#else
return XDisplayHeight(display(), DefaultScreen(display()));
#endif
}
/** @internal */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment