blob: 1abb7aeba57adaa6bf3abb9aab1a2611fa95e788 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
Title: --info dialog ignores all size hints (--width/--height, -geometry, -qwindowgeometry) on Qt6/Wayland
## Summary
A message dialog created with `--info` cannot be sized. None of the four
documented size mechanisms have any effect on the resulting window: the dialog
always opens at the size Qt picks from its content, padded out to what looks
like a minimum width, leaving large empty margins.
I'm only reporting **size** here. I understand a Wayland client cannot set its
own position (`+X+Y`) — that's a protocol limitation, not a qarma bug — so this
report is strictly about width/height being ignored.
## Environment
- qarma 1.1.0
- Qt 6 (libQt6Widgets / libQt6Gui)
- Session: Wayland (`XDG_SESSION_TYPE=wayland`), Hyprland compositor
- Slackware Linux
## Steps to reproduce
Each of the following opens an `--info` dialog that is much wider than its
content and ignores the requested size:
```sh
# 1. qarma's own size options
qarma --info --width=400 --height=300 --text="<b>a</b><br>b<br>c"
# 2. Qt geometry (size + position)
qarma --info -geometry 480x300+100+100 --text="<b>a</b><br>b<br>c"
qarma -geometry 480x300+100+100 --info --text="<b>a</b><br>b<br>c"
# 3. Qt window geometry, both orderings
qarma --info -qwindowgeometry 480x300 --text="<b>a</b><br>b<br>c"
qarma -qwindowgeometry 480x300 --info --text="<b>a</b><br>b<br>c"
```
Expected: the dialog is approximately 400–480 px wide.
Actual: the dialog opens far wider (content-driven + an apparent minimum width),
with the requested width/height having no visible effect.
## Notes
- `qarma --help-all` already documents `--width`/`--height` as "not entirely
deterministic for message dialogs", which matches what I see — but here they
appear to have no effect at all on the width of an `--info` dialog under
Qt6/Wayland.
- A non-message dialog (e.g. `--list`, `--file-selection`) does take `--width`
/`--height`, so the problem appears specific to the message-dialog widgets.
## Question
Is sizing of message dialogs expected to work under Qt6/Wayland, or is this a
known limitation? If it's fixable, exposing a reliable minimum-width override
for `--info`/`--warning`/`--error`/`--question` would help — these dialogs
currently can't be made compact even when their content is small.
|