alacritty / alacritty/alacritty

ToggleSimpleFullScreen reduces window height when applied multiple times

Abierto
#6,921 3 comentarios 0 reacciones 0 asignados Ver en GitHub
A - deps H - macos S - winit/glutin
Lenguaje dominante
Rust
Estrellas
65.7k
Forks
3.6k
Merge medio
3 h 5 min
PR fusionados (30 d)
3

Descripción

Start alacritty on mac with a minimal `.alacritty.yml` with just one keybinding:

```yml
key_bindings:
- {key: Return, mods: Alt, action: ToggleSimpleFullscreen }
```

Then do Alt+Enter a few times. Every time the window gets out of the full-screen mode its height is decreased. After about 20 Alt+Enter's the window completely disappear as its height comes down to zero. The log below shows that the vertical size gets smaller with every second resize.

The expected result is that when alacritty gets out of full-screen mode after the second Alt+Enter, the window size and position are restored to the original ones.

### System

OS: macOS 13.1
Version: alacritty 0.12.0 (5a72819)

### Logs

```
alacritty -vv
Created log file at "/var/folders/.../Alacritty-15195.log"
[0.000003500s] [INFO ] [alacritty] Welcome to Alacritty
[0.000151917s] [INFO ] [alacritty] Version 0.12.0 (5a72819)
[0.000329334s] [INFO ] [alacritty] Configuration files loaded from:
"/Users/.../.alacritty.yml"
[0.000612292s] [DEBUG] [alacritty] Using environment locale: en_NZ.UTF-8
[0.024529334s] [INFO ] [alacritty] Using Apple CGL
[0.055461625s] [INFO ] [alacritty] Window scale factor: 2
[0.056364875s] [DEBUG] [alacritty] Loading "Menlo" font
[0.082651000s] [INFO ] [alacritty] Running on Apple M1 Max
[0.082686292s] [INFO ] [alacritty] Using OpenGL 3.3 renderer
[0.086373209s] [DEBUG] [alacritty] Filling glyph cache with common glyphs
[0.093720250s] [INFO ] [alacritty] Cell size: 13 x 25
[0.093775459s] [INFO ] [alacritty] Padding: 0 x 0
[0.093788000s] [INFO ] [alacritty] Width: 1600, Height: 1200
[0.095230167s] [INFO ] [alacritty] PTY dimensions: 48 x 123
[0.097260250s] [INFO ] [alacritty] Initialisation complete
0.124297083s] [DEBUG] [alacritty_terminal] Term::resize dimensions unchanged
[1.584533958s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[1.587556333s] [INFO ] [alacritty] Padding: 0 x 0
[1.587647208s] [INFO ] [alacritty] Width: 3840, Height: 2160
[2.027707000s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 45
[2.029125208s] [INFO ] [alacritty] Padding: 0 x 0
[2.029189250s] [INFO ] [alacritty] Width: 1600, Height: 1144
[2.541537916s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[2.543250833s] [INFO ] [alacritty] Padding: 0 x 0
[2.543337375s] [INFO ] [alacritty] Width: 3840, Height: 2160
[2.925963458s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 43
[2.927339750s] [INFO ] [alacritty] Padding: 0 x 0
[2.927399916s] [INFO ] [alacritty] Width: 1600, Height: 1088
[3.281853541s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[3.285117791s] [INFO ] [alacritty] Padding: 0 x 0
[3.285185083s] [INFO ] [alacritty] Width: 3840, Height: 2160
[3.643233833s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 41
[3.644604041s] [INFO ] [alacritty] Padding: 0 x 0
[3.644663833s] [INFO ] [alacritty] Width: 1600, Height: 1032
[3.978138000s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[3.981074833s] [INFO ] [alacritty] Padding: 0 x 0
[3.981158333s] [INFO ] [alacritty] Width: 3840, Height: 2160
[4.319494583s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 39
[4.320730791s] [INFO ] [alacritty] Padding: 0 x 0
[4.320799291s] [INFO ] [alacritty] Width: 1600, Height: 976
[4.631458958s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[4.633740041s] [INFO ] [alacritty] Padding: 0 x 0
[4.633835833s] [INFO ] [alacritty] Width: 3840, Height: 2160
[4.928564583s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 36
[4.929826333s] [INFO ] [alacritty] Padding: 0 x 0
[4.929889666s] [INFO ] [alacritty] Width: 1600, Height: 920
[5.261033500s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[5.264960208s] [INFO ] [alacritty] Padding: 0 x 0
[5.265109041s] [INFO ] [alacritty] Width: 3840, Height: 2160
[5.557032000s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 34
[5.558312625s] [INFO ] [alacritty] Padding: 0 x 0
[5.558382500s] [INFO ] [alacritty] Width: 1600, Height: 864
[12.193248250s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[12.196307625s] [INFO ] [alacritty] Padding: 0 x 0
[12.196400375s] [INFO ] [alacritty] Width: 3840, Height: 2160
[12.513268666s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 32
[12.514562583s] [INFO ] [alacritty] Padding: 0 x 0
[12.514629625s] [INFO ] [alacritty] Width: 1600, Height: 808
[12.809771791s] [DEBUG] [alacritty_terminal] New num_cols is 295 and num_lines is 86
[12.812370875s] [INFO ] [alacritty] Padding: 0 x 0
[12.812446000s] [INFO ] [alacritty] Width: 3840, Height: 2160
[13.074185875s] [DEBUG] [alacritty_terminal] New num_cols is 123 and num_lines is 30
[13.075483166s] [INFO ] [alacritty] Padding: 0 x 0
[13.075583375s] [INFO ] [alacritty] Width: 1600, Height: 752
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.