-
-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Foot terminal incorrect size for a brief moment on startup #4022
Comments
we can't really "predict" the size on map the window should become reliably with the current codebase, but we could just set it to the monitor's res and adjust when it is mapped |
i'm using a little workaround: add to avoid problems when launching with
to ur hyprland.conf #!/usr/bin/bash
dump=$(hyprctl activewindow -j | jq -r '.initialClass+" "+(.floating|tostring)')
read -r class float <<< "$dump"
if ! $float && [[ $class == foot ]]; then
hyprctl --batch \
"dispatch togglefloating active; \
dispatch resizeactive exact 1016 648; \
dispatch centerwindow"
else
hyprctl dispatch togglefloating
fi &>/dev/null adjust sizing at your taste |
I have this same problem, but only with Foot and Alacritty. Kitty, Wezterm and GNOME terminal do not have this problem. Kooha-2023-12-14-18-22-44.mp4I can't say how long ago or give an exact version of when this happened, but I'm pretty sure this didn't happen before, both in Alacritty and Foot. |
yes, it would be stretched to fill instead, looking wonky and technically being non-protocol-compliant |
btw problem disappeared with foot for me, although i can't tell what commit exactly had affected it, i just accidently noticed when launched foot without wrapper-script and no config |
Still happening for me on Hyprland 62a8d0b and foot 1.16.2 |
@bvr-yr Which version of Foot and Hyprland are you using? |
foot 1.16.2-2 @ arch no foot updates since i saw those glitches, so it should be some hyprland commit |
actually it is barely seen on recording, but it's due to encoding settings my recorder uses, nothing seen in real world test-foot5.mp4default |
Still happening for me on b1b8d73 (with default foot config) |
guys I'd like you to please stop commenting it's happening. I do realize. You just spam my inbox. This will not be fixed anytime soon. For foot, a workaround that works on both sway and hyprland has been posted and it's to make the initial size bigger in foot's cfg. |
Should improve #4022 although not exactly fix. Fixing would require more witchcraft
above commit should improve things |
well, after 763d5fa windowzise-related options in foot.ini are completely ignored, which is sad, cause there is Now it just stretches to monitor size when started with |
FYI 763d5fa breaks wezterm. It says it's started but does not appear, and {
"address": "0x3950050",
"mapped": false,
"hidden": false,
"at": [
0,
0
],
"size": [
0,
0
],
"workspace": {
"id": -1,
"name": ""
},
"floating": false,
"monitor": -1,
"class": "",
"title": "",
"initialClass": "",
"initialTitle": "",
"pid": -1,
"xwayland": false,
"pinned": false,
"fullscreen": false,
"fullscreenMode": 0,
"fakeFullscreen": false,
"grouped": [],
"swallowing": "0x0",
"focusHistoryID": -1
} |
what about this? #4022 (comment) |
there is an issue open for that iirc |
oopsie, i see. |
yes a bug for that is open |
I wonder if its possible to account for gaps and window borders? Some terminal applications (e.g. nvtop) will open with a slightly larger size on startup, causing them to flash and resize again a bit later (since the terminal just became smaller by like 3-4 columns) (prediction is bigger than the window size because of borders and gaps) It also happens with my terminal prompt which has items on the right side. I get small visual artifacts on startup because the prompt is resizing itself again |
it is possible, but I am too lazy. Feel free to MR. |
Hyprland Version
main branch commit e2f18f8
Bug or Regression?
Bug
Description
The foot terminal briefly opens with a much smaller size.
Creator says it's not a foot issue.
https://codeberg.org/dnkl/foot/issues/1211
https://codeberg.org/dnkl/foot/issues/1133
swaywm/sway#2176
How to reproduce
Crash reports, logs, images, videos
recording.webm
The text was updated successfully, but these errors were encountered: