swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.38k stars 1.09k forks source link

Bemenu first pointer buttons ignored #8239

Open stacyharper opened 1 month ago

stacyharper commented 1 month ago

Hey there,

I'm investigating why bemenu ignore the first buttons, and it looks like the problems comes from missing events from the compositor:

reproduce:

Please fill out the following:

I added some printf flags on the bemenu code base:

https://paste.sr.ht/~stacyharper/06428d8070984ba0c4b3324b3579b4d1ff49d28b

Here the logs from bemenu:

https://paste.sr.ht/~stacyharper/2aec57e55d2d76b91dd0b48d2da704dfdb686df7

L.220 and L.224 is when I first clicked the buttons.

We note that we do not receive wl_pointer#13.button, only wl_pointer#13.enter.

Any clue on what is happening? Is there something wrong on the compositor side? Or is it an expected behavior somehow?

stacyharper commented 1 month ago

wev seems to receive correctly the first events. But maybe the fact it is a xdg window surface helps.

Maybe there is a problem specifically to the layer shell surfaces?