Commit a4378fc
authored
fix: center and resize file chooser,save,download dialogs in Hyprland (#1216)
### Summary
This PR fixes an issue where file chooser dialogs (Open, Save, Upload)
were spawning partially off-screen in Hyprland.
The root cause was case-sensitive mismatches with
`Xdg-desktop-portal-gtk` and missing explicit window rules.
### Changes
- Added `windowrulev2` rules to ensure:
- File chooser dialogs float
- Open centered on screen
- Use consistent 70% sizing relative to monitor
### Testing
- Verified in Hyprland on Arch Linux
- Tested with Brave, Firefox, and system upload/save dialogs
- All dialogs now correctly center instead of opening off-screen
### Changelog
#### Fixed
- File chooser dialogs in Hyprland now open centered and floating
instead of off-screen3 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | | - | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
61 | 71 | | |
62 | 72 | | |
63 | 73 | | |
64 | | - | |
| |||
0 commit comments