Changeset 1107 for branches


Ignore:
Timestamp:
Jul 20, 2008, 10:18:25 PM (10 years ago)
Author:
Daniel Kahn Gillmor
Message:

[svn-upgrade] Integrating new upstream version, xdotool (20080720)

Location:
branches/upstream/xdotool/current
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/upstream/xdotool/current/CHANGELIST

    r1103 r1107  
     120080720:
     2  * Add 'getmouselocation' which ouputs the coordinate of the mouse cursor and
     3    the screen number the mouse is on.
     4  * Add 'getactivewindow' which uses NETWM to query the active window; this is
     5    often more reliable than 'getwindowfocus' assuming your window manager
     6    supports it
     7  * Fix typos in the documentationn.
     8
    1920080716:
    210  * Fix return codes in xdo_keysequence() and other functions
  • branches/upstream/xdotool/current/xdotool.c

    r1103 r1107  
    33 * command line interface to the xdo library
    44 *
    5  * $Id: xdotool.c 1947 2008-06-16 03:41:25Z jordansissel $
     5 * $Id: xdotool.c 1956 2008-07-20 20:40:17Z jordansissel $
    66 *
    77 * getwindowfocus contributed by Lee Pumphret
     
    2929int cmd_mousemove_relative(int argc, char **args);
    3030int cmd_mouseup(int argc, char **args);
    31 int cmd_mouselocation(int argc, char **args);
     31int cmd_getmouselocation(int argc, char **args);
    3232int cmd_search(int argc, char **args);
    3333int cmd_type(int argc, char **args);
     
    7373  { "mousemove_relative", cmd_mousemove_relative, },
    7474  { "mouseup", cmd_mouseup, },
    75   { "mouselocation", cmd_mouselocation, },
     75  { "getmouselocation", cmd_getmouselocation, },
    7676  { "type", cmd_type, },
    7777  { "windowactivate", cmd_windowactivate, },
     
    231231}
    232232
    233 int cmd_mouselocation(int argc, char **args) {
     233int cmd_getmouselocation(int argc, char **args) {
    234234  int x, y, screen_num;
    235235  int ret;
  • branches/upstream/xdotool/current/xdotool.pod

    r1077 r1107  
    7171
    7272Send mousedown followed by mouseup for the given button
     73
     74=item B<getmouselocation>
     75
     76Outputs the x, y, and screen location of the mouse cursor. Screen numbers will be nonzero if you have multiple monitors and are not using Xinerama.
    7377
    7478=back
     
    156160command before using windowfocus, as it will work on more window managers.
    157161
     162=item B<getactivewindow>
     163
     164Output the current active window. This command is often more reliable than
     165getwindowfocus.
     166
    158167=item B<set_num_desktops> I<number>
    159168
     
    202211these commands: C<set_desktop_for_window>, C<get_desktop_for_window>.
    203212
    204 =item _NET_ACTIVATE_WINDOW
    205 
    206 Activate a window by asking the window manager to bring it forward. Support for
    207 this enables these commands: C<windowactivate>.
     213=item _NET_ACTIVE_WINDOW
     214
     215Allows you to query and set the active window by asking the window manager to
     216bring it forward. Support for this enables these commands: C<windowactivate>, C<getactivewindow>.
    208217
    209218=back
Note: See TracChangeset for help on using the changeset viewer.