Open mayanksuman opened 2 years ago
Thanks for the PR. Did you test, the context menu on Xorg? I remember vaguely, that the menu behaved weird of it had the application as a parent.
Essentially your change to
new QMenu(qobject_cast<QWidget*>(m_trayIcon.get()))
will be the same as new QMenu(nullptr)
QSystemtrayIcon is not a QWidget, the cast will return a nullptr.
@mayanksuman Thx for your PR. I gave it a try. :) It works -- except for the first seconds. At the beginning, I see several error messages. They state no screenshot could be taken. After a few seconds, it works.
@jahnf Will this PR be merged?
Yes eventually, it will. sorry the project is moving slow currently - The screenshot issue is the least of the problems that occur with Wayland + Qt and the Projecteur that needs to be a window above others - which just doesn't work as with X anymore.
xdg-desktop-portal
based screenshot capture