Skip to content
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

window resize on blur #4797

Closed
phoffmeister opened this issue Mar 7, 2022 · 4 comments · Fixed by #4811
Closed

window resize on blur #4797

phoffmeister opened this issue Mar 7, 2022 · 4 comments · Fixed by #4811
Labels

Comments

@phoffmeister
Copy link

Describe the bug
The kitty window resizes when another window is focused. This only happens when hide_window_decorations is set to yes.

To Reproduce
Steps to reproduce the behavior:

  1. arragne the kitty window to use half of the screen: Super+left arrow
  2. Focus any other window by clicking it

Actual:
The kitty window resizes itself to the default size.

Expected:
The kitty window should keep its size.

Environment details

kitty 0.24.4 created by Kovid Goyal
Linux trv7544 5.16.12-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 02 Mar 2022 12:22:53 +0000 x86_64
Arch Linux 5.16.12-zen1-1-zen (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/phoffmeister/.config/kitty/kitty.conf

Config options different from defaults:
enable_audio_bell       False
font_family             Fira Code
font_size               14.0
hide_window_decorations 1
remember_window_size    False
Colors:
	background              #1e1f28   
	color1                  #ff5555   
	color10                 #50fa7b   
	color11                 #f0fa8b   
	color12                 #bd92f8   
	color13                 #ff78c5   
	color14                 #8ae9fc   
	color2                  #50fa7b   
	color3                  #f0fa8b   
	color4                  #bd92f8   
	color5                  #ff78c5   
	color6                  #8ae9fc   
	color7                  #bbbbbb   
	color8                  #545454   
	color9                  #ff5454   
	cursor                  #bbbbbb   
	foreground              #f8f8f2   
	selection_background    #44475a   
	selection_foreground    #1e1f28   

Important environment variables seen by the kitty process:
	PATH                                /usr/local/bin:/usr/bin:/usr/local/sbin
	LANG                                en_US.UTF-8
	SHELL                               /usr/bin/zsh
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-0
	USER                                phoffmeister
	XDG_MENU_PREFIX                     gnome-
	XDG_SESSION_DESKTOP                 gnome
	XDG_SESSION_TYPE                    wayland
	XDG_CURRENT_DESKTOP                 GNOME
	XDG_SESSION_CLASS                   user
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_DATA_DIRS                       /home/phoffmeister/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/

Additional context
I noticed that this bug is tied to hide_window_decorations. When set to yes the bug is present. When set to no it is not.

@kovidgoyal
Copy link
Owner

kitty does not resize itself in response to window system events, this will be your window manager's doing.

@phoffmeister
Copy link
Author

@kovidgoyal i was just wondering because it was depending on the hide_window_decorations option.
Thanks for looking into this anyway 👍

@kovidgoyal
Copy link
Owner

Probably you are on GNOME, causing all these issues with their insistence on CSD. See the open issue about it. #3284

@kovidgoyal
Copy link
Owner

THis is tracked in #4802

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants