Wassily Kondratiev <wk@xxxxxxxxxxx> writes:
> Hi!
>
> There is some bug-like issue which I can reproduce surely:
>
> 1. Create second frame.
> 2. Start mozilla there.
> 3. Switch back to xemacs frame.
> 4. Press M-% (query replace).
> 5. Click button1 in the xemacs buffer (minibuffer cursor goes hollow).
> 6. Press H-TAB.
> 7. Now Mozilla doesn't have keyboard focus whenever how many times I
> press H-g&H-G (but has mouse focus).
You have nil value for `xwem-minibuffer-emacs-frames-has-minibuffer'.
So new emacs frames has xwem minibuffer as their minibuffer, and does
not have their own minibuffer.
After pressing M-% in the frame, you've been expecting that xemacs
will select frame's minibuffer for querying the string, but you see no
cursor in xwem minibuffer, so you press H-TAB to actually select xwem
minibuffer in terms of xwem. That makes xwem minibuffer to be
unconditionally selected, i.e. not for xwem reading, but for emacs
reading .. so `H-g' command can't be properly handled.
What is actually caused this situation is H-TAB, which you dont need
to press at all. Because xwem minibuffer gets selected by emacs
despite the fact that you dont see the cursor in it.
So, it is pretty convinient to set `xwem-minibuffer-hide-cursor-mode'
also to nil along with nil value for
`xwem-minibuffer-emacs-frames-has-minibuffer'
`H-TAB' is very special command, in normal(non-problematic) situation
you should not use it at all. `xwem-minibuffer-activate' actually
should not be bound by default .. it is a feature that it is binded
by default :)
`H-G' is also special command. It is not what C-g or C-G does for
emacs. `H-G' resets internal state for xwem keyboard processing and
escapes focus to the PointerRoot (i.e. window under pointer has focus)
When xwem minibuffer selected uncoditinally(without the situation when
xwem knows that xwem minibuffer is about to be selected) it can't
simple deselected, because nobody knows which client should became
selected after this, you either need to explicitely switch to some
client with some command, like `H-x H-l', `H-x b', `H-s', etc ..
Thanks for noticing this out!
--
lg
|