!25 fix bug #I7BJTX【wayland】【影音】播放画面点击右键无菜单弹出

Merge pull request !25 from xuxinrong01/openkylin/yangtze
This commit is contained in:
李德成 2023-11-21 02:09:22 +00:00 committed by Gitee
commit 7076dede84
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 11 additions and 2 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
kylin-video (3.1.4.2k1-ok22.1) yangtze; urgency=medium
* BUG号:
#I7BJTX【wayland】【影音】播放画面点击右键无菜单弹出
* 需求号:无.
* 其他改动:无.
-- xuxinrong <xuxinrong@kylinos.cn> Mon, 20 Nov 2023 16:18:53 +0800
kylin-video (3.1.4.2k1-ok22) yangtze; urgency=medium kylin-video (3.1.4.2k1-ok22) yangtze; urgency=medium
* BUG号: * BUG号:

View File

@ -1183,8 +1183,8 @@ void MainWindow::initGlobalSig()
#endif #endif
connect(g_user_signal, &GlobalUserSignal::sigRightMenuShow, [&](){ connect(g_user_signal, &GlobalUserSignal::sigRightMenuShow, [&](){
if (!m_is_active && isWayland) // if (!m_is_active && isWayland)
return; // return;
if (QGuiApplication::focusWindow()) if (QGuiApplication::focusWindow())
m_right_click_menu->exec(QCursor::pos(QGuiApplication::focusWindow()->screen()) + QPoint(1,1)); m_right_click_menu->exec(QCursor::pos(QGuiApplication::focusWindow()->screen()) + QPoint(1,1));
}); });