Moin, if no -m option is given to dmenu, it infers it's xinerama-screen from the mouse-position. On heavily keyboard-driven window-managers, the mouse-position differs heavily from where the attention is sometimes (I personally hate mouse-follows-focus, so when I change the focus via keyboard to another screen, the pointer remains at it's position), thus creating a somewhat unsetting experience, when dmenu suddenly appears on the „wrong“ screen. With the attached patch, -m can (additionaly to taking a number) also takes „focus“ and „mouse“ as options. The latter represents the current default behaviour, the former uses the center of the window which currently has the input-focus to determine the screen.
Greetings, Mero
dmenu-4.2.1-add_cl-options_to_determine_Xinerama-screen.patch
Description: Binary data
signature.asc
Description: PGP signature