Avoiding window gaining focus

30 views
Skip to first unread message

Chris Lamb

unread,
Mar 29, 2017, 2:41:37 PM3/29/17
to xdotoo...@googlegroups.com
Hi,

I'm trying to automatically unfocus my Mplayer windows immediately upon
focus (eg. after changing virtual desktop or running my mouse over it)
so that I don't quit it accidentally by pressing enter or adjust the
settings, etc.

I'm trying something like (at least to start)

xdotool search --name MPlayer behave %@ focus \
search --name . getwindowname

… but this crashes (see https://github.com/jordansissel/xdotool/issues/169).

My idea was to find another window and focus that instead. Am I barking
up the wrong tree? Should I script this in my window manager instead..?


Best wishes,

--
Chris Lamb
chris-lamb.co.uk / @lolamby
Reply all
Reply to author
Forward
0 new messages