mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00

点击菜单区域以外关闭菜单的逻辑: 1. 有parent的kwin会关闭 2. 没有parent的Qt会在失去焦点时关闭 由于dock无焦点,wayland 菜单无焦点,无父对象的菜单就关闭不了。 规避方案给菜单加上parent,后续如果菜单的role改变应该可以彻底避免。 Bug: https://pms.uniontech.com/bug-view-124531.html Influence: wayland plugin menu close Log: Change-Id: Id9c80f5131f0171469a279e6c7c7b54a0a3e8791