Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zwlr_layer_surface_v1@11: error 1: the layer surface has a width of 0 but its anchor doesn't include the left and the right screen edge wl_display_dispatch: Protocol error #6

Open
bphd opened this issue Jun 20, 2023 · 4 comments

Comments

@bphd
Copy link

bphd commented Jun 20, 2023

wlr_layer_surface_v1@11: error 0: a buffer has been attached to a layer surface prior to the first layer_surface.configure event
wl_display_dispatch: Protocol error
libinput error: client bug: timer event11 hold: scheduled expiry is in the past (-58ms), your system is too slow
libinput error: event3 - AT Translated Set 2 keyboard: client bug: event processing lagging behind by 34ms, your system is too slow

@pinkavaj
Copy link

@pinkavaj
Copy link

Workaround #11

@bphd
Copy link
Author

bphd commented Sep 22, 2024

Workaround #11

A fix is needed, not a workaround

@pinkavaj
Copy link

🤷 Traied, traied hard and failed. The issue is cause the rendering the surface outside of layer_surface_configure. This can be fixed by setting/checking state->height != 0 in render_frame and layer_surface_configure. The bug is gone, but I hit another issue where only first frame is drawn to the TOP layer, the other one is rendered in normal layer and thus displayed bellow all other windows.

You can check my attempt here (it is a mess, but it seems it fixes the issue) https://github.com/pinkavaj/wshowkeys/tree/pi-fix-wl-err

IMHO the correct fix would be to use even handler for frame rendering, but thats too big change to try ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants