Re: Set initial mouse position
Brought to you by:
captnmark
From: Josef K. <jk...@my...> - 2008-12-05 17:56:43
|
... and also "unclutter". ;) Josef Kufner píše v Pá 05. 12. 2008 v 18:29 +0100: > Hello, > try xwit. It is powerful and easy to use tool. > > Josef Kufner. > > > Sergio Zayas píše v Pá 05. 12. 2008 v 17:51 +0100: > > Hi, Michael > > > > You can compile and execute this source to move pointer to bottom-right > > corner at start icewm > > > > > > /* movepointer.c */ > > > > #include <stdio.h> > > #include <X11/Xlib.h> > > #include <X11/extensions/XTest.h> > > > > Display *dpy; > > int scr; > > Window win; > > unsigned int width, height; > > > > int main(int argc, char **argv) > > { > > Window ret_win; > > int x, y; > > unsigned int border_width, depth; > > > > dpy = XOpenDisplay(NULL); > > if (!dpy) > > return 1; > > scr = DefaultScreen(dpy); > > win = RootWindow(dpy, scr); > > XGetGeometry(dpy, win, &ret_win, &x, &y, &width, &height, > > &border_width, &depth); > > XTestFakeMotionEvent(dpy, scr, width, height, 0); > > XSync(dpy, 1); > > XCloseDisplay(dpy); > > return 0; > > } > > > > /* End */ > > > > El Vie 05 Dic 2008 13:43, tras una profunda reflexión, qx...@gm... escribió: > > > Hi, > > > > > > I'm not sure if that request goes to the correct list, I afraid a little > > bit, it is more a problem of X. But may be... > > > > > > My problem is, I want to set the initital position for the mouse to 0,0 > > when IceWM starts instead of having it centered I want to set it to the > > upper left corner. Is there an option for IceWM to do that? > > > > > > Thx > > > > > > Michael > > > > > > ------------------------------------------------------------------------------ > > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > > The future of the web can't happen without you. Join us at MIX09 to help > > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > > _______________________________________________ > > IceWM-user mailing list > > Ice...@li... > > https://lists.sourceforge.net/lists/listinfo/icewm-user > > -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread! PGP: http://jk.myserver.cz/kontakt/jk-pgpkey.asc |