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

Panels show in the wrong places #4488

Closed johnharris85 closed 2 years ago

johnharris85 commented 2 years ago

Describe the bug When following the example for a simple panel, the panel shows in incorrect positions on the screen. Both bottom and top show the panel at the top. Both left and right show it on the left. Almost like it's wrapping or something?

To Reproduce Steps to reproduce the behavior:

  1. $ kitty +kitten panel --lines 2 --edge bottom sh -c 'printf "\n\n\nHello, world."; sleep 5s'.
  2. See error, panel appears at top of the screen (even though there is a displaced area at the bottom like it's trying to put something there?).

Screenshots bottom top left right

Environment details

kitty 0.24.1 created by Kovid Goyal
Linux jharris-laptop 5.10.0-1053-oem #55-Ubuntu SMP Sun Dec 12 01:58:07 UTC 2021 x86_64
Ubuntu 20.04.3 LTS jharris-laptop /dev/tty

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
Running under:X11
Frozen: True
Paths:
  kitty: /home/john/.local/kitty.app/bin/kitty
  base dir: /home/john/.local/kitty.app/lib/kitty
  extensions dir: /home/john/.local/kitty.app/lib/kitty-extensions
  system shell: /usr/bin/zsh
Loaded config files:
  /etc/xdg/kitty/kitty.conf
  /home/john/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity      0.9
confirm_os_window_close 1
enable_audio_bell       False
enabled_layouts         ['horizontal', 'vertical', 'grid', 'tall', 'fat']
font_family             MesloLGS NFo
tab_bar_style           powerline
update_check_interval   0.0

Additional context Reproduces identically with --config NONE.

kovidgoyal commented 2 years ago

Doesnt repro for me. This is likely something specific to your window manager, it doesn't support _NET_WM_STRUT_PARTIAL properly. Probably it forces dock type windows to top/left.

The relevant code is very simple, it just calls xprop see kittens/panel/main.py