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 11:34:42 +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:
>
>   > Zajcev Evgeny <zevlg@xxxxxxxxx> writes:
>   >> (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 (xwem-cl-selected-p (xwem-minib-cl xwem-minibuffer))
>   >> (xwem-select-client (xwem-last-client)))))
>   >> 
>   >> (add-hook 'select-frame-hook 'my-xwem-select-frame-hook)
>   >> 
>
>   > Hmm, Steve, can you also try out this hack (i heard you are have nil
>   > value for `xwem-minibuffer-emacs-frames-has-minibuffer').
>
> I tried it for a while.  But at one point I switched to my Gnus
> SXEmacs frame and XWEM started doing some funky shit.  It looked like
> it was in an infloop switching between the xwem-minibuffer frame and
> the SXEmacs client frame and back again.  H-G broke out of the loop.
> I then remove-hook'd it.

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 ..

Thanks!

-- 
lg

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