Commit 3f20ab9
authored
Fix unnecessary invalidation and redraws on Desktop (JetBrains#2628)
Fixes unnecessary invalidation and redraws on Desktop caused by
WindowInsetsRulers
Fixes [CMP-9399](https://youtrack.jetbrains.com/issue/CMP-9399)
WindowInsetsRulers cause invalidations on Desktop
Fixes [CMP-9385](https://youtrack.jetbrains.com/issue/CMP-9385) Fix
Desktop ApplicationTest after merging 1.11.0-alpha01
## Testing
`onGloballyPositioned is not called repeatedly with same position on
screen` no longer ignored
This should be tested by QA
## Release Notes
### Fixes - Desktop
- Fix unnecessary redraws caused by `WindowInsetsRulers` implementation
using `RulerScope.coordinates.size`1 parent 7353e1a commit 3f20ab9
3 files changed
Lines changed: 4 additions & 28 deletions
File tree
- compose/ui/ui/src
- desktopTest/kotlin/androidx/compose/ui/window
- skikoMain/kotlin/androidx/compose/ui
- layout
- platform
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
266 | 265 | | |
267 | 266 | | |
268 | 267 | | |
269 | | - | |
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
| |||
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 65 | | |
73 | 66 | | |
74 | 67 | | |
| |||
90 | 83 | | |
91 | 84 | | |
92 | 85 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 86 | + | |
96 | 87 | | |
97 | 88 | | |
98 | 89 | | |
| |||
158 | 149 | | |
159 | 150 | | |
160 | 151 | | |
161 | | - | |
| 152 | + | |
162 | 153 | | |
163 | 154 | | |
164 | 155 | | |
| |||
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | 79 | | |
93 | 80 | | |
94 | 81 | | |
| |||
0 commit comments