Skip to content

Replace input device asserts with if checks

When I added input device assert statements, I had assumed that the compositor (kwin) won't call pointer related functions if the wl_pointer capability is missing. Otherwise, it smells like a bug. If there is no pointer, the compositor should not try to set the focused surface, etc.

But as it turns out, it's not the case. KWin can call input device related functions in SeatInterface even if the corresponding capability is missing.

Merge request reports