Commit 2ca060a
committed
fix: Let notification center use Wayland exclusive zones
The Wayland notification center panel should rely on compositor-reserved exclusive zones rather than adding Dock margins itself.
- Add a layer-shell margin helper that returns zero on Wayland and preserves windowMargin() elsewhere.
- Set exclusionZone to 0 on Wayland and keep -1 for non-Wayland platforms.
- Avoid extra Dock spacing on Wayland without changing X11 behavior.
Wayland 通知中心面板应依赖合成器预留的独占区域,而不是自身继续叠加 Dock 边距。
- 增加 layer-shell 边距辅助函数,在 Wayland 下返回 0,其他平台继续使用 windowMargin()。
- Wayland 下将 exclusionZone 设置为 0,非 Wayland 平台保持 -1。
- 避免 Wayland 下出现额外 Dock 间距,同时不改变 X11 行为。
Log: Let notification center use Wayland exclusive zones
Pms: BUG-3657851 parent 889ea78 commit 2ca060a
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
| |||
0 commit comments