Commit 904b4fa
committed
fix: support showing lock screen triggered by logind lock signal
- Support showing the lock screen when receiving a lock signal from logind.
- Use asynchronous DBus call for RequestLock to prevent blocking the main thread when locking the session, especially when switching TTY.
- Introduce a boolean `m_inCallRequestLock` to prevent multiple concurrent lock requests from being sent in a short time.
- 支持接收 logind 的 lock 锁定信号后,触发并显示锁屏。
- 使用异步 DBus 调用 [RequestLock](cci:1://file:///home/zyz/works/work/v25/dde-session/src/dde-session/impl/sessionmanager.cpp:418:0-434:1),防止在锁定会话(如切换 TTY 时)阻塞主线程。
- 引入了 `m_inCallRequestLock` 标志位,防止短时间内产生多次并发的锁屏请求。
Log: support showing lock screen triggered by logind lock signal
Pms: BUG-3146531 parent f39ee57 commit 904b4fa
2 files changed
+29
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
415 | 418 | | |
416 | 419 | | |
417 | 420 | | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
423 | 435 | | |
424 | 436 | | |
425 | 437 | | |
| |||
910 | 922 | | |
911 | 923 | | |
912 | 924 | | |
913 | | - | |
| 925 | + | |
914 | 926 | | |
915 | 927 | | |
916 | 928 | | |
917 | 929 | | |
918 | 930 | | |
919 | 931 | | |
920 | 932 | | |
921 | | - | |
922 | | - | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
923 | 943 | | |
924 | 944 | | |
925 | 945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
0 commit comments