Re: FVWM: Using FvwmEvent to move to current desk: not working

From: Von Welch <welch_at_mcs.anl.gov>
Date: Thu, 25 Jan 2001 16:42:50 -0600 (CST)

Dan Espen writes:
> Von Welch <welch_at_mcs.anl.gov> writes:
> > Dan Espen writes:
> > > Von Welch <welch_at_mcs.anl.gov> writes:
<cut>
> > > > Doesn't seem to make any difference in behavior.
> > >
> > > Ok, add:
> > >
> > > Style "emacs*" ActivePlacementHonorsStartsOnPage
> > >
> > > that seemed to work for me. I actually used:
> > >
> > > Style "*macs*" StartsOnPage 0 0 1, SkipMapping
> > > Style "*macs*" NoPPosition
> > > Style "*macs*" ActivePlacementHonorsStartsOnPage
> >
> > I added ActivePlacementHonorsStartsOnPage and it didn't change
> > anything. I tried your whole configuration above and it didn't help my
> > problem, which is xemacs always appearing on desk 0 regardless of the
> > currently desk. You configuration always makes it appear on a certain
> > page, but it still always appears on desk 0. Maybe I'm missing
> > something you are suggesting.
>
> I'm sorry, I usually only run with one desk and 2x2 pages.
> I didn't pay any attention to the page vs. desk distinction,
> I figured you'd set the page and desk as you wanted.
>
> I just changed what I supplied to this:
>
> Style "*macs*" StartsOnPage 1 0 0, SkipMapping
> Style "*macs*" NoPPosition
> Style "*macs*" ActivePlacementHonorsStartsOnPage
>
> Brought up the pager, and started XEmacs and it came up on desk 1,
> at page 0,0.
>
> StartsOnPage with 3 arguments treat the args as "desk" "page-x" "page-y".
>
> Hope this helps.

Thanks, but not really - my intent is to get xemacs frames to appear
on the current desk (no matter what number that is).

Actually I just figured out a solution, if I do the following it
works (xemacs frames all get moved to the current desk):

# start copy
*FvwmEventPassId
*FvwmEvent add_window AddWindowFunc

AddToFunc AddWindowFunc
+ "I" WindowId $0 ("emacs") MoveToDesk $d
#end

However, if instead I use the following, which is what I had been
trying, (with the same FvwmEvent configuration), it does not work (all
emacs frames appear on desk 0):

# start
AddToFunc AddWindowFunc
+ "I" WindowId $0 ("emacs") MoveToDesk 0 $d
#end

I understand why the first works, but I'm not sure why the second one
doesn't work.

In any case, thanks for your help.

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.
Received on Thu Jan 25 2001 - 16:47:32 GMT

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