Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

fix: error 2: layer_surface has never been configured#16

Open
jubame wants to merge 2 commits intoammgws:mainfrom
jubame:bugfix/layer_surface_not_configured
Open

fix: error 2: layer_surface has never been configured#16
jubame wants to merge 2 commits intoammgws:mainfrom
jubame:bugfix/layer_surface_not_configured

Conversation

@jubame
Copy link

@jubame jubame commented Aug 15, 2025

wshowkeys crashes after timeout:

zwlr_layer_surface_v1#13: error 2: layer_surface has never been configured
wl_display_dispatch: Protocol error

The problem seems to be solved by resetting the state width and height to 0 before hiding the surface. This is similar to swaybar code (see destroy_layer_surface)

This is probably related to #4, although there are some other errors shown in that issue.

I have removed the frame_scheduled and dirty variables, and the set_dirty function. Those might have been taken from swaybar code (see dirty and frame_scheduled variables and set_output_dirty function). However, I think they are not needed in this project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant