valeriymalov added a comment.
I'm not familiar with KDE, but it seems that's how krunner manages it's position too (method View::positionOnScreen in krunner/view.cpp), except that it doesn't use windowHandle() and derives current screen from cursor position, and takes struts in account KWindowSystem doesn't seem to provide methods for manipulating window position, and neither I can find a method for getting screen geometry, so I have no idea how the code should look like REPOSITORY rPLASMAWORKSPACE Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D3484 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: valeriymalov, #plasma_workspaces, mart Cc: graesslin, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas