Hi Aniruddh,
On Mon, Mar 23, 2015 at 01:26:41AM -0700, Aniruddh Kanojia wrote:
> Hi,
>
> I have been working on *#324 *and talked with *dx* on irc and he advised
> to work on simulate_keypress.
>
> I have been trying to restore *cmd_simulate_keypress* to use *send_event *but
> I
> have only been partially successful.
> All events are being captured by *handle_KeyPress* in qtile class.I can
> send keypresses to qtile root but unable to send it to the cuurent focus
> window.
>
> I tried to add a new method *handle_KeyPress* in windows class but still
> all events were getting captured by the *handle_KeyPress* of qtile class.
>
> Please advise.
>
> cmd_simulate_keypress <http://pastebin.com/DHCyrSye>
> A relevant commit <:
> https://github.com/qtile/qtile/commit/1b4e3edf0c2844f1ca50952284d52d0cdb85b426#diff-afb7b1cf4b66f23cec872344874a92c9L1144>
Does it help if you disable the KeyPress/KeyRelease eventmasks for the
window you're trying to send things to before you send them? There is
a decorator on the window, so it might look something like
# untested
with win.disableMask(EventMask.KeyPress | EventMask.KeyRelease):
win.send_event(...)
Tycho
>
>
> Thanking you
> Aniruddh Kanojia (samfisher)
>
> --
> You received this message because you are subscribed to the Google Groups
> "qtile-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.