Commit b21d5f0
committed
Improve menu popup positioning and error handling
Refines menu positioning logic on Linux by ensuring explicit coordinates are only used when a root window is available, and pointer-based positioning requires a current event. Returns false when neither anchor is available, improving reliability on platforms like Wayland.1 parent 367b7db commit b21d5f0
File tree
1 file changed
+20
-14
lines changed- src/platform/linux
1 file changed
+20
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
579 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
580 | 581 | | |
581 | | - | |
582 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
583 | 590 | | |
584 | | - | |
585 | 591 | | |
586 | 592 | | |
587 | 593 | | |
| |||
0 commit comments