xwem-devel
[Top] [All Lists]

Re: [XWEM Bug] Mozilla loses keyboard focus

From: Zajcev Evgeny <zevlg@xxxxxxxxx>
Subject: Re: [XWEM Bug] Mozilla loses keyboard focus
Date: Sat, 16 Apr 2005 12:41:09 +0400
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Steve Youngs <steve@xxxxxxxx> writes:

> * Zajcev Evgeny <zevlg@xxxxxxxxx> writes:
>
>   > Hmmm, what about this one:
>
>   >     (defun my-xwem-select-frame-hook ()
>   >       "Select or deselect xwem minibuffer.
>   >          Make xwem minibuffer be conditionally selected, when its emacs 
> frame
>   >          selected."
>   >       (if (eq (selected-frame) (xwem-minib-frame xwem-minibuffer))
>   >           (xwem-select-client (xwem-minib-cl xwem-minibuffer))
>   >         (when (and (xwem-cl-selected-p (xwem-minib-cl xwem-minibuffer))
>   >                    (not (eq (xwem-last-client) (xwem-minib-cl 
> xwem-minibuffer))))
>   >           (xwem-select-client (xwem-last-client)))))
>
>   > ? If it wont to any useful things to you, please report a bug Steve,
>   > before removing the hook ..
>
> Sure.  But before I try it, tell me what it is that it is supposed to
> be doing.  I haven't been following this thread.

It is supposed to select xwem minibuffer when Emacs selects its
underlying Emacs frame, so border color will change, cursor will
unhide - and all the actions xwem do when xwem minibuffer is selected
are performed.

Emacs can select xwem minibuffer's emacs frame when some emacs frame
does not have his own minibuffer (i.e.  nil value for
`xwem-minibuffer-emacs-frames-has-minibuffer')

-- 
lg

<Prev in Thread] Current Thread [Next in Thread>