kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.11k stars 972 forks source link

Kitty Does Not Fill Screen After Switching Windows in Full-Screen Mode #7492

Closed ryywh45 closed 4 months ago

ryywh45 commented 4 months ago

Describe the bug When Kitty is in full-screen mode and I switch to another window and then switch back, Kitty remains in full-screen mode but does not fill the entire screen.

To Reproduce Steps to reproduce the behavior:

  1. Open Kitty terminal.
  2. Enter full-screen mode (top bar).
  3. Switch to another window (e.g., using Alt+Tab or clicking on another window).
  4. Switch back to the Kitty terminal window.
  5. See the error: Kitty remains in full-screen mode but does not fill the entire screen.

Screenshots Screenshot from 2024-05-30 17-01-46

Environment details

kitty 0.35.0 (03aab9a88b) created by Kovid Goyal
Linux ryy 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  7 09:00:52 UTC 2 x86_64
Ubuntu 22.04.3 LTS ryy /dev/tty

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
Running under: Wayland (GNOME Shell 42.9) missing: preferred_scale
OpenGL: '4.6 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1' Detected version: 4.6
Frozen: True
Paths:
  kitty: /home/ryywh45/.local/kitty.app/bin/kitty
  base dir: /home/ryywh45/.local/kitty.app/lib/kitty
  extensions dir: /home/ryywh45/.local/kitty.app/lib/kitty-extensions
  system shell: /usr/bin/zsh
Loaded config files:
  /home/ryywh45/.config/kitty/kitty.conf

Config options different from defaults:
background_blur         30
enable_audio_bell       False
font_family             Fira Code
font_size               14.0
tab_bar_style           powerline
tab_powerline_style     slanted
tab_title_template      {index} {title}
Added shortcuts:
    super+c →  copy_to_clipboard
    super+v →  paste_from_clipboard
Colors:
    active_border_color     #b4befe   
    active_tab_background   #1e90ff   
    active_tab_foreground   #11111b   
    background              #1e1e2e   
    bell_border_color       #f9e2af   
    color0                  #45475a   
    color1                  #f38ba8   
    color10                 #a6e3a1   
    color11                 #f9e2af   
    color12                 #89b4fa   
    color13                 #f5c2e7   
    color14                 #94e2d5   
    color15                 #a6adc8   
    color2                  #a6e3a1   
    color3                  #f9e2af   
    color4                  #89b4fa   
    color5                  #f5c2e7   
    color6                  #94e2d5   
    color7                  #bac2de   
    color8                  #585b70   
    color9                  #f38ba8   
    cursor                  #f5e0dc   
    cursor_text_color       #1e1e2e   
    foreground              #cdd6f4   
    inactive_border_color   #6c7086   
    inactive_tab_background #181825   
    inactive_tab_foreground #cdd6f4   
    mark1_background        #b4befe   
    mark1_foreground        #1e1e2e   
    mark2_background        #cba6f7   
    mark2_foreground        #1e1e2e   
    mark3_background        #74c7ec   
    mark3_foreground        #1e1e2e   
    selection_background    #f5e0dc   
    selection_foreground    #1e1e2e   
    tab_bar_background      #11111b   
    url_color               #f5e0dc   

Important environment variables seen by the kitty process:
    PATH                                /home/ryywh45/.local/kitty.app/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
    LANG                                en_US.UTF-8
    SHELL                               /usr/bin/zsh
    DISPLAY                             :0
    WAYLAND_DISPLAY                     wayland-0
    USER                                ryywh45
    LC_TIME                             en_US.UTF-8
    XDG_SESSION_TYPE                    wayland
    LC_MONETARY                         en_US.UTF-8
    XDG_SESSION_CLASS                   user
    LC_ADDRESS                          en_US.UTF-8
    XDG_RUNTIME_DIR                     /run/user/1000
    XDG_MENU_PREFIX                     gnome-
    LC_TELEPHONE                        en_US.UTF-8
    XDG_CURRENT_DESKTOP                 ubuntu:GNOME
    XDG_SESSION_DESKTOP                 ubuntu
    LC_NAME                             en_US.UTF-8
    LC_MEASUREMENT                      en_US.UTF-8
    LC_IDENTIFICATION                   en_US.UTF-8
    XDG_DATA_DIRS                       /usr/local/share/:/usr/share/:/var/lib/snapd/desktop
    LC_NUMERIC                          en_US.UTF-8
    LC_PAPER                            en_US.UTF-8

Additional context I tried to reproduce the problem with kitty --config NONE and the issue still persists. Here is my minimal kitty.conf that reproduces the problem:

include current-theme.conf
map super+c   copy_to_clipboard
map super+v   paste_from_clipboard
font_family Fira Code
font_size  14.0
tab_bar_edge              bottom
tab_bar_style             powerline
tab_powerline_style       slanted
tab_title_template        "{index} {title}"
active_tab_background     #1e90ff
enable_audio_bell no
kovidgoyal commented 4 months ago

This will be a bug in GNOME, you appear to be using an old version of GNOME. I cannot replicate using GNOME 46.1. Update and you should be fine.