Re: FVWM: focus issue with fvwmtabs

From: Micha Feigin <michf_at_post.tau.ac.il>
Date: Tue, 20 Jul 2004 04:02:33 +0300

On Mon, Jul 19, 2004 at 06:16:50PM +1000, Scott Smedley wrote:
> > when matlab shifts focus to emacs (debug mode or going to an error)
>
> What do you mean?
>
> > I see emacs going on top (the emacs tab is the one visible), but the tab
> > shown as active by fvwmtabs is still the matlab one
>

I checked also when not inside fvwmtabs. Emacs will come to the top
when hidden, but the desktop will not change if its not on the same
page. Don't know if it helps.

> For matlab to do this, it would need to do an XMapWindow() on the emacs
> window. I've no idea a) how it would know the window id & b) if it
> should be allowed to do that.
>

There is some communication between matlab and emacs to allow emacs to
run as the editor. It looks like the command to raise the window is
internal to emacs and is raise-frame. From the emacs help:

raise-frame is an interactive built-in function.
(raise-frame &optional FRAME)

Bring FRAME to the front, so it occludes any frames it overlaps.
If FRAME is invisible, make it visible.
If you don't specify a frame, the selected frame is used.
If Emacs is displaying on an ordinary terminal or some other device which
doesn't support multiple overlapping frames, this function does nothing.

I have no idea how it is implemented (I can try and grep the emacs code
if it will help).

> As matlab isn't free s/w I can't investigate further. Can you reproduce
> the problem with another program?
>

I don't know of any other program that initiates raising windows
automatically like that. Will be happy to try though. Any way to
initiate commands remotely with emacs?

> SCoTT. :)
> --
> Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
> To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
> message to majordomo_at_fvwm.org.
> To report problems, send mail to fvwm-owner_at_fvwm.org.
>
> +++++++++++++++++++++++++++++++++++++++++++
> This Mail Was Scanned By Mail-seCure System
> at the Tel-Aviv University CC.
>
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Mon Jul 19 2004 - 20:03:08 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:56 BST