From c3e20dbc40d003d9f4a310dd04c0565aea53698d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 7 Mar 2025 16:06:03 +0530 Subject: [PATCH] Fix #8408 --- kittens/panel/main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kittens/panel/main.py b/kittens/panel/main.py index 6ecb9be44..806180dcb 100644 --- a/kittens/panel/main.py +++ b/kittens/panel/main.py @@ -79,7 +79,7 @@ a background in your sway config it will cover the background drawn using this kitten. The value :code:`none` anchors the panel to the top left corner by default -and the panel should be placed using margins parameters. +and the panel should be placed using margins parameters, works only on Wayland. --layer @@ -191,7 +191,10 @@ def create_right_strut(win_id: int, width: int, height: int) -> Strut: def setup_x11_window(win_id: int) -> None: if is_wayland(): return - func = globals()[f'create_{args.edge}_strut'] + try: + func = globals()[f'create_{args.edge}_strut'] + except KeyError: + raise SystemExit(f'The value {args.edge} is not support for --edge on X11') strut = func(win_id, window_width, window_height) make_x11_window_a_dock_window(win_id, strut)