[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Info-xnee] Xnee and Xvfb
From: |
Henrik Sandklef |
Subject: |
Re: [Info-xnee] Xnee and Xvfb |
Date: |
Tue, 03 Apr 2007 16:36:21 +0200 |
User-agent: |
Icedove 1.5.0.9 (X11/20061220) |
Josh Wyatt wrote:
> Henrik Sandklef wrote:
>> /hesa
>
> Perhaps an option to capture the keymap at record time, and re-import it
> during playback?
Yes, that's one of 2 solutions considered at the moment:
Solution 1
=====================
* Record keycode (done today) and the keysym (not today) for
all non-modifiers
* When a non-trivial keysym is to be replayed, find what
keycode+modifiers are needed to make the keysym happen
... fake 'em
Solution 2
=====================
* Before recording, store keymap to file map1
* Record as usual
* Before replaying, store keymap
(of display to where we replay) to file map2
* 'Transfer' keymap (map1) to display where we replay
* Replay as usual
* 'Transfer' back the old keymap (map2)
Both solutions has pros and cons....
... one major problem with #1 is that there will be different number of
events faked than was recorded :(
> It seems that a playback might not be very useful, if the keymap is not
> correct. In other words, a successful playback seems to depend on a
> good (or even maybe identical?) keymap...?
Yes, but you should be able to switch keyboard without having to
re-record all sessions again..... solved by #1 and #2