Re: FVWM: Rotate window list without changing focus?

From: Tim Phipps <Tim_Phipps_at_bigfoot.com>
Date: Tue, 14 Mar 2000 17:34:38 +0000

"Jan T. Kim" wrote:
> > No. The windowlist is always headed by the window that has focus and is
> > used as the starting point for next/prev commands in functions.
>
> Ok. Does this imply that the root window is in the window list, and is
> just skipped by the Next and Prev commands?

No, 'fraid not, the windowlist is the list of windows that fvwm is
managing i.e. the windows that fvwm can move/iconify/resize etc..

> could I simulate a mouseclick at the current position? Or is there some
> generic name or classname for the root window, that I could append a line
> like
>
> + "I" Next [Root] Focus
>
> to the Next-Focus-and-Raise function shown above?

I don't know of a way to do this. I don't think sending a mouse click
to the root is the way to go as you have already bound some menus to all
the mouse buttons. What is needed is an UnFocus command. I tried a quick
hack program to send an EnterNotify event to fvwm and fvwm gets the
message but fails to move the focus. I'm not sure why it fails, here's
the program:


#include <X11/Xlib.h>

main()
{
  Display *dpy;
  int scr;
  Window root;
  XEvent event;

  dpy = XOpenDisplay(NULL);
  scr = DefaultScreen(dpy);
  root = DefaultRootWindow(dpy);
  event.xcrossing.type = EnterNotify;
  event.xcrossing.display = dpy;
  event.xcrossing.window = root;
  event.xcrossing.root = root;
  event.xcrossing.subwindow = None;
  event.xcrossing.focus = True;
  XSendEvent(dpy, root, False, EnterWindowMask, &event);
  XCloseDisplay(dpy);
}

Cheers,
Tim.
--
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 Tue Mar 14 2000 - 11:35:14 GMT

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