mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
klipper: adjust to KGlobalSettings changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
dde770cadc
commit
f6818c64a6
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
#include <QtGui/QApplication>
|
||||
#include <QtGui/qevent.h>
|
||||
#include <QtGui/QWidgetAction>
|
||||
#include <QtGui/QDesktopWidget>
|
||||
|
||||
#include <KHelpMenu>
|
||||
#include <KLineEdit>
|
||||
|
@ -100,7 +101,7 @@ KlipperPopup::KlipperPopup( History* history )
|
|||
{
|
||||
KWindowInfo windowInfo = KWindowSystem::windowInfo( winId(), NET::WMGeometry );
|
||||
QRect geometry = windowInfo.geometry();
|
||||
QRect screen = KGlobalSettings::desktopGeometry(geometry.center());
|
||||
QRect screen = QApplication::desktop()->screenGeometry(geometry.center());
|
||||
int menuHeight = ( screen.height() ) * 3/4;
|
||||
int menuWidth = ( screen.width() ) * 1/3;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue