Re: FVWM: How to get xemacs frames to map to current desk?

From: Thomas A. Gardiner <gardiner_at_pas.rochester.edu>
Date: Fri, 11 Feb 2000 10:35:05 -0500 (EST)

Hi,

Others on this list would certainly know better than I, but you should be
able to do this either by using quotes or by making another function which
is executed by FvwmEvent. For example, what about doing the same thing
which is done to get FvwmEvent to handle playing audio.

Tom

On Fri, 11 Feb 2000, Von Welch wrote:

>On Thu, Feb 10, 2000 at 05:45:17AM +0100, Dominik Vogt wrote:
>> On Wed, Feb 09, 2000 at 03:44:15PM -0600, Von Welch wrote:
>> > Hello all - I'm looking for some advice to solving a minor annoyance
>> > between xemacs and fvwm2. This might be a xemacs problem, but I thought
>> > I'd try here first.
>> >
>> > I'm running fvwm2 (see below for exact version) with multiple desktops.
>> > I run xemacs with gnuserve, and I then use gnuclient from a fvwm2
>> > menu to spawn new xemacs frames. What I would like is the new xemacs
>> > frame I create to always appear on the current desktop. What happens
>> > though is that the created frame always appears on a desktop with an
>> > existing xemacs frame instead of the current desktop.
>> >
>> > This doesn't appear to be a StartsOnDesk problem because (1) if I have
>> > no current xemacs frames and I create one it appears on the current
>> > desktop, (2) if I have one xemacs frame on desktop N, a new frame will
>> > always appear on desktop N, no matter what N is. If I have multiple
>> > xemacs frames already created on multiple desktops, a new frame will
>> > always appear on one of those desktops - I haven't quite figured out
>> > the logic as to where, but it seems to be consistantly with a certain
>> > existing frame until I destroy it, then it shifts to another frame.
>> >
>> > I have no StartsOnDesk for xemacs in my .fvwmrc2.
>> >
>> > The only similar bug I found in the list archives was that xemacs 21.1.7
>> > created new frames with the name 'shell' initially and that caused
>> > StartsonDesk to map it unexpectedly. But that bug appears to be fixed in
>> > 21.1.8 (which is what I'm running).
>> >
>> > So, anyone have any advice?
>>
>> You could set up FvwmEvent to move newly created Xemacs windows
>> to the current desk. I don't have the correct syntax handy
>> right now, but let FvwmEvent execute something like
>>
>> Current (emacs*) movetodesk ...
>>
>> when new windows are mapped.
>
>I don't believe this will actually work without hacking FvwmEvent.
>As far as I can tell, by both experimentation and looking at the
>source, *FvwmEvent and *FvwmEvent both only take a single whitespace
>delimited token for command and action, so the most you can have is
>two words in any given command.
>
>In other words, with the following everything after "Current" is
>discarded by FvwmEvent:
>
>*FvwmEvent add_window Current (emacs*) MoveToDesk 0
>
>I don't believe it would be difficult to modify FvwmEvent.c so
>that it uses the whole string instead of just the next token,
>however I also have the problem that the xemacs frames don't receive
>focus automatically. I understand the 2.3.x fvwm2 has GrabFocus, but
>I haven't found any way in 2.2.x to achieve this yet.
>
>Von
>
>
>
>--
>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.
>

--
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 Fri Feb 11 2000 - 09:37:01 GMT

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