Pop-up menu drawn in focused display even when I click in unfocused display

Author: yd278Created Jun 22, 2025Updated Sep 19, 2026

I am using yabai with SIP disabled.

I basically copied the Simple Popup Menu from plugins discussion.

What happened is when I focus on a window in one display, and move my mouse to another display, click the apple icon. The popup menu is rendered in the first display.

I expected it come up in the display where my mouse clicked.

I'm not sure how to achieve this. Maybe include information about which display the clicked item is in in the $INFO, so that I can make yabai focus on that one using yabai command?