fix(wm): sync desktop state when clicking show-desktop on taskbar#1168
fix(wm): sync desktop state when clicking show-desktop on taskbar#1168gugullll wants to merge 1 commit into
Conversation
After opening multiple windows, clicking the "Show Desktop" plugin on the right side of the taskbar does not sync the desktop state correctly. Connect requestShowDesktop signal to setDesktopState to ensure the desktop state updates on toggle. 打开多个窗口后,点击任务栏右侧"显示桌面"插件时桌面状态未正确 同步。将requestShowDesktop信号连接到setDesktopState,确保切换时 桌面状态正确更新。 Log: 修复点击任务栏显示桌面后桌面状态未同步的问题 PMS: BUG-370639 Influence: 修复后点击任务栏"显示桌面"插件时桌面状态能正确同步更新。
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gugullll The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @gugullll. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
| @@ -58,6 +58,10 @@ WindowManagementInterfaceV1::WindowManagementInterfaceV1(QObject *parent) | |||
| , d(new WindowManagementInterfaceV1Private(this)) | |||
| { | |||
| qRegisterMetaType<DesktopState>("DesktopState"); | |||
|
|
|||
| connect(this, &WindowManagementInterfaceV1::requestShowDesktop, this, [this](uint32_t state) { | |||
There was a problem hiding this comment.
直接删除 requestShowDesktop 这个信号,发信号处调用 setDesktopState
After opening multiple windows, clicking the "Show Desktop" plugin on the right side of the taskbar does not sync the desktop state correctly. Connect requestShowDesktop signal to setDesktopState to ensure the desktop state updates on toggle.
打开多个窗口后,点击任务栏右侧"显示桌面"插件时桌面状态未正确
同步。将requestShowDesktop信号连接到setDesktopState,确保切换时
桌面状态正确更新。
Log: 修复点击任务栏显示桌面后桌面状态未同步的问题
PMS: BUG-370639
Influence: 修复后点击任务栏"显示桌面"插件时桌面状态能正确同步更新。