Commit 885c4abe authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Revert "[klipper] Port away from QDesktopWidget"

This seems to cause a crash

This reverts commit 0a4f013d.
parent 478db0b4
......@@ -22,8 +22,8 @@
#include "klipper_debug.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QKeyEvent>
#include <QScreen>
#include <QWidgetAction>
#include <KHelpMenu>
......@@ -83,7 +83,7 @@ KlipperPopup::KlipperPopup(History *history)
ensurePolished();
KWindowInfo windowInfo(winId(), NET::WMGeometry);
QRect geometry = windowInfo.geometry();
QRect screen = QGuiApplication::screenAt(geometry.center())->geometry();
QRect screen = qApp->desktop()->screenGeometry(geometry.center());
int menuHeight = (screen.height()) * 3 / 4;
int menuWidth = (screen.width()) * 1 / 3;
......
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