| Issue 11: | I've written a patch to support screen numbers on search | |
| 3 people starred this issue and may be notified of changes. | Back to list |
ben@mordor:~/src/xdotool-20090815$ diff xdo.h
/home/julie/src/semicomplete-read-only/xdo.h
42d41
< char *screen_name;
47c46
< int screenNum;
---
>
52c51
< xdo_t* xdo_new_with_opened_display(Display *xdpy, const char *display,
int screenNum,
---
> xdo_t* xdo_new_with_opened_display(Display *xdpy, const char *display,
ben@mordor:~/src/xdotool-20090815$ diff xdo.c
/home/julie/src/semicomplete-read-only/xdo.c
74,86c74
< int screenNum = 0; //Default to screen 0
< int found = 0;
< for (int i = 0; i < strlen(display_name); i++)
< {
< if (found)
< {
< screenNum = display_name[i] - 48;
< break;
< }
< if (display_name[i] == '.')
< found = 1;
< }
< return xdo_new_with_opened_display(xdpy, display_name, screenNum, 1);
---
> return xdo_new_with_opened_display(xdpy, display_name, 1);
89c77
< xdo_t* xdo_new_with_opened_display(Display *xdpy, const char *display,
int screenNum,
---
> xdo_t* xdo_new_with_opened_display(Display *xdpy, const char *display,
103d90
< xdo->screenNum = screenNum;
177c164
< _xdo_get_child_windows(xdo, RootWindow(xdo->xdpy, xdo->screenNum),
max_depth,
---
> _xdo_get_child_windows(xdo, RootWindow(xdo->xdpy, 0), max_depth,
|
|
,
Sep 21, 2009
Looks good. I'll patch it in and test.
Status: Accepted
Owner: j...@semicomplete.com |
|
,
Dec 31 (43 hours ago)
Sorry for the delays in integrating this feature. I've been slacking. Will get to this soon |
|
,
Dec 31 (43 hours ago)
Issue 9 has been merged into this issue. |
|
,
Yesterday (36 hours ago)
Haha, no problem, I'm still using the version I originally patched ;-) |
|
|
|