Repository navigation
Commit 9fa9407
committed
fix(overlay): skip the zero-size viewport destination at a fractional scale
A fractional-scale event can reach the overlay's layer surface before the
compositor has configured its size. gpui-pre-linux then calls
wp_viewport.set_destination(0, 0), a protocol error that ends the whole
Wayland connection, so the Actions Ring never opens at any fractional
scale, on every output (#1989).
Patch gpui-pre-linux through a vendored copy so set_size_and_scale only
sets the viewport destination once both dimensions are positive; the
configure that assigns the real size calls back in and sets it then.
Reporters confirmed this exact guard on KWin, Hyprland and wlroots. The
patch is dropped once a gpui-pre release carries zed-industries/zed#61368.
Refs #19891 parent fd31184 commit 9fa9407
5 files changed
Lines changed: 27 additions & 5 deletions
File tree
- .config
- packaging/linux
- vendor/gpui-pre-linux/src/linux/wayland
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
120 | 129 | | |
121 | 130 | | |
122 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
1539 | 1550 | | |
1540 | 1551 | | |
1541 | 1552 | | |
| |||
0 commit comments