emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frame doesn't get focused


From: Katsumi Yamaoka
Subject: Re: Frame doesn't get focused
Date: Tue, 20 Mar 2007 18:46:54 +0900
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)

>>>>> In <address@hidden> Jan Djärv wrote:

> See http://bugzilla.gnome.org/show_bug.cgi?id=392889.  My last comment
> was that we may enable _NET_ACTIVATE_WINDOW, but it has been postponed
> to after the release.

Thank you for the followup.  So, I've prepared a workaround as
follows:

(when (and (not (featurep 'xemacs)) (featurep 'gtk))
  (defadvice select-frame (around set-input-focus (frame) activate)
    "Run `select-frame-set-input-focus'."
    (setq ad-return-value (and (framep frame) (frame-live-p frame)))
    (ad-deactivate 'select-frame)
    (unwind-protect
        (select-frame-set-input-focus frame)
      (ad-activate 'select-frame))))

Best regards,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]