Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion frame/qml/PanelMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,14 @@ Item {

function open()
{
// Keep open() pure-open semantics: when already visible, do nothing
// instead of toggling closed. The redundant toggle-close here caused
// BUG-353435: during the async window between open() setting
// menu.visible=true and finalizeOpen() calling grabMouse(), a second
// right-click could reach PluginItem, trigger another open(), and hit
// this branch, closing the menu. Left-click toggle is already handled
// in the C++ layer (itemPopupApplet). See PanelPopup.open() too.
if (menu.visible) {
close()
return
}

Expand Down
8 changes: 7 additions & 1 deletion frame/qml/PanelPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,14 @@ Item {

function open()
{
// Keep open() pure-open semantics: when already visible, do nothing
// instead of toggling closed. The redundant toggle-close here caused
// BUG-353435: during the async window between open() setting
// popup.visible=true and finalizeOpen() showing the window, a second
// right-click could reach PluginItem, trigger another open(), and hit
// this branch, closing the popup. Left-click toggle is already handled
// in the C++ layer (itemPopupApplet). See PanelMenu.open() too.
if (popup.visible) {
close()
return
}

Expand Down
Loading