conformal / spectrwm

A small dynamic tiling window manager for X11.
ISC License
1.34k stars 97 forks source link

dmenu sometimes opening on the wrong region with multiple screens #517

Closed wavexx closed 1 year ago

wavexx commented 1 year ago

Noticed the following on 67e16a136e505832bcd6322c02de28a8adc0af93:

Noting that: the status bar is correctly updated, and opening a new regular window will start on screen 2 as expected).

It's only a problem when there are no windows to focus (I guess the current focused screen is not updated in such case).

LordReg commented 1 year ago

dmenu checks the input focus window to determine the current monitor. When the focused region is empty, input focus should go to a window in the region. Fixed.