On Fri May 19 08:34:16 2023 +0000, Alexandros Frantzis wrote:
Hi! In addition to ensuring we process Wayland events in the proper thread, the internal per-thread event queues enable us to selectively dispatch/filter events based on the event mask in the `ProcessEvents` driver callback (see `wayland_dispatch_thread_events` in the proposal). This is needed since Wayland doesn't otherwise have any built-in support for event filtering, e.g., doesn't have something like `XCheckIfEvent`. It seems to me that such selective dispatch in the context of `ProcessEvents` handling would not be possible with a standard message queue/internal window messages approach?
I would expect that you wouldn't need fancy event filtering. The mouse/keyboard events can go straight to the hardware queue, and the others can be either sent or posted depending on the desired event mask.