Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am new to X11 programming, I write one code to move mouse pointer using XWarpPointer it is working. Then i write one coe to move mouse pointer across ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    24

    Thumbs up Moving mouse pointer


    Hi,
    I am new to X11 programming,
    I write one code to move mouse pointer using XWarpPointer it is working.
    Then i write one coe to move mouse pointer across the window continuously it is not working
    while(1)
    {
    XWarpPointer(display,win,win,0,0,0,0,del_x,del_y);
    sleep(1);
    del_x +=10;
    del_x +10;
    }
    can anyone suggest how to move the pointer continuously around the window and also how to notify events and handling.

  2. #2
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    Next time, please post your code in code tags so it's easier for us to read! =D

    Try calling XFlush after XWarpPointer and see if that works.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •