platforms/x11: Drop XRandrScreens::displaySize()

The default implementation of Screens::displaySize() returns the
bounding rectangle of all available outputs.

In case the Xrandr extension is unavailable, there will be a fake
output whose dimensions are the same as the dimensions of all screens
combined.
This commit is contained in:
Vlad Zahorodnii 2020-12-20 14:23:33 +02:00
parent 2567d0c935
commit 935a6d7e21
2 changed files with 0 additions and 11 deletions

View file

@ -79,13 +79,4 @@ bool XRandRScreens::event(xcb_generic_event_t *event)
return false;
}
QSize XRandRScreens::displaySize() const
{
xcb_screen_t *screen = kwinApp()->x11DefaultScreen();
if (!screen) {
return Screens::size();
}
return QSize(screen->width_in_pixels, screen->height_in_pixels);
}
} // namespace

View file

@ -24,8 +24,6 @@ public:
~XRandRScreens() override;
void init() override;
QSize displaySize() const override;
using QObject::event;
bool event(xcb_generic_event_t *event) override;