Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
885c4abe
Commit
885c4abe
authored
Mar 31, 2021
by
Nicolas Fella
Browse files
Revert "[klipper] Port away from QDesktopWidget"
This seems to cause a crash This reverts commit
0a4f013d
.
parent
478db0b4
Changes
1
Show whitespace changes
Inline
Side-by-side
klipper/klipperpopup.cpp
View file @
885c4abe
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment