Patch to implement focus-related behaviours in kuake extension
Stephan Sokolow
noreply at ssokolow.com
Sat Oct 1 18:49:00 CEST 2011
Hi everyone,
I decided to implement a couple of focus-related Yakuake behaviours in
the kuake extension ("hide on loss of focus" and "focus rather than
hiding if visible but unfocused") and I've attached both the changes and
their new documentation as a patch.
I couldn't find any way to cause URxvt to raise itself via the Perl API,
so the latter feature uses the wmctrl command (via File::Which) if
available and, if either of those dependencies is missing, falls back to
hiding and showing the window in rapid succession.
I've tested all code paths, though I had to take the File::Which
author's word that it will return "undef" on failure.
Legal disclaimer: Do with it as you will. Print it out and line a
birdcage if the mood strikes you.
--
Stephan Sokolow
Note: My e-mail address IS valid. It's a little trick I use to fool
"smarter" spambots and remind friends and family to use the custom
aliases I gave them.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kuake_focus_enhancements.patch
Type: text/x-patch
Size: 3276 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20111001/712827bc/attachment.bin>
More information about the rxvt-unicode
mailing list