WindowServer: Don't send menu item activations for separators

Separators can't have identifiers associated with them, so it's not
possible to react meaningfully to their activation. Don't send messages
about it to avoid confusing the clients.
This commit is contained in:
Andreas Kling 2019-11-11 12:56:13 +01:00
commit 2fcf156540
Notes: sideshowbarker 2024-07-19 11:15:58 +09:00

View file

@ -239,6 +239,9 @@ void WSMenu::clear_hovered_item()
void WSMenu::did_activate(WSMenuItem& item)
{
if (item.type() == WSMenuItem::Type::Separator)
return;
if (on_item_activation)
on_item_activation(item);