Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3
plasma5-workspace
0016-Take-into-account-devicePixelRatio-when-pl...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0016-Take-into-account-devicePixelRatio-when-placing-appl.patch of Package plasma5-workspace
From 8ffb51b5671c687fd10527b5839fb27ba19c437b Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik <kde@privat.broulik.de> Date: Wed, 11 Jan 2017 16:32:13 +0100 Subject: [PATCH 16/44] Take into account devicePixelRatio when placing application menu KWin sends device pixels whereas kded operates on logical pixels - the menu would be offset on highdpi --- appmenu/appmenu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appmenu/appmenu.cpp b/appmenu/appmenu.cpp index 52ce4839..ce3ef01d 100644 --- a/appmenu/appmenu.cpp +++ b/appmenu/appmenu.cpp @@ -33,6 +33,7 @@ #include "appmenu_dbus.h" #include "verticalmenu.h" +#include <QApplication> #include <QDBusInterface> #include <QMenu> @@ -152,7 +153,7 @@ void AppMenuModule::slotShowMenu(int x, int y, const QString &serviceName, const //m_menuImporter->fakeUnityAboutToShow(serviceName, menuObjectPath); - m_menu.data()->popup(QPoint(x, y)); + m_menu.data()->popup(QPoint(x, y) / qApp->devicePixelRatio()); emit menuShown(serviceName, menuObjectPath); -- 2.12.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor