Commit bdb4e84
committed
feat: implement close all windows functionality
1. Add requestCloseAll method to handle close all action for grouped
applications
2. When close all is triggered, find all windows with the same desktop
ID and close them
3. Use X11Utils to send close commands to individual windows
4. Add necessary includes for DockGroupModel and X11Utils
5. Update action handler to call requestCloseAll instead of requestClose
for close all action
feat: 实现关闭所有窗口功能
1. 添加 requestCloseAll 方法来处理分组应用的关闭所有操作
2. 当触发关闭所有时,查找具有相同桌面 ID 的所有窗口并关闭它们
3. 使用 X11Utils 向各个窗口发送关闭命令
4. 添加 DockGroupModel 和 X11Utils 的必要包含
5. 更新操作处理器,为关闭所有操作调用 requestCloseAll 而不是
requestClose
Pms: BUG-3346591 parent 3bcaa09 commit bdb4e84
File tree
2 files changed
+35
-1
lines changed- panels/dock/taskmanager
2 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
372 | 374 | | |
373 | 375 | | |
374 | 376 | | |
375 | | - | |
| 377 | + | |
376 | 378 | | |
377 | 379 | | |
378 | 380 | | |
| |||
398 | 400 | | |
399 | 401 | | |
400 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
401 | 434 | | |
402 | 435 | | |
403 | 436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments