example +kitten panel
throws X opcode error
#8577
Replies: 8 comments 7 replies
-
So, it doesn't throw the same error when I boot into gnome shell on X. I don't see the panel window, but focus does shift off the terminal while it's running. I'm not sure what the differences between xmonad on X and gnome on X would be.... |
Beta Was this translation helpful? Give feedback.
-
Presumably your window manager doesnt support the properties the kitten
needs to make panels. Report it to the WM developers.
As for GNOME be sure you are running it in X11 mode not wayland mode,
GNOME is generally hostile to other programs drawing desktop elements,
so try with something else.
All that said, if you really want to get the most out of panels switch
to wayland, they are far more powerful/flexible there (with the
exception of GNOME).
|
Beta Was this translation helpful? Give feedback.
-
It's pretty trivial code, it just sets the NET_WM_WINDOW_TYPE_DOCK
and NET_WM_STRUT_PARTIAL on the window, presumably xmonad doesnt support
one of these.
|
Beta Was this translation helpful? Give feedback.
-
atoms are created at startup in detectEWMH()
|
Beta Was this translation helpful? Give feedback.
-
I pulled main to have a dig into the atoms and built locally:
not sure if related but also noticed this (kitty runs fine despite the error messages) running a pretty minimal xmonad setup, so i'm not that surprised:
will log what is going on with the atoms to see if something is up there... |
Beta Was this translation helpful? Give feedback.
-
On Sat, May 03, 2025 at 06:15:56PM -0700, David Novakovic wrote:
I pulled main to have a dig into the atoms and built locally:
```
± kitty/launcher/kitty +kitten panel sh -c 'printf "\n\n\nHello, world."; sleep 5s'
Cannot create panels as the window manager/compositor does not support the neccessary protocols
```
Yes, now kitty checks for support of the needed atoms and bails out
early if the window manager doesn't support them instead of generating
the badatom errors.
not sure if related but also noticed this (kitty runs fine despite the error messages) running a pretty minimal xmonad setup, so i'm not that surprised:
Completely unrelated, you need to have the settings and notify desktop
portals installed to avoid those error messages. They have nothing to
do with panels.
|
Beta Was this translation helpful? Give feedback.
-
Oh and panels use layer shell, the changes are that now X11 support has been added for desktop background and quick access layer shell windows, in addition to dock panels. See #8592 |
Beta Was this translation helpful? Give feedback.
-
On Sun, May 04, 2025 at 12:31:00AM -0700, David Novakovic wrote:
that's awesome.
When i dug into the atoms they were all being created ok, but the check on the layer shell support failed.
I'm not familiar with wayland at all - but I'll dig into the source a bit more and see if I can find something more specific about my setup that is failing and try rectify.
This doesnt have anything to do with wayland. Its called layer shell
because it was originally implemented on wayland using the wayland layer shell
protocol, but the x11 implementation is completely independent and works
by setting various NET_WM properties on the window. The check fails when
the window manager does not report the required atoms in the
NET_SUPPORTED property of the root X11 window. See the function
detectEWMH() in x11_init.c
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My googling normally associates this error with fairly old remote desktop issues.
Running xmonad via gdm on vanilla ubuntu 24.04:
Beta Was this translation helpful? Give feedback.
All reactions