My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
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
Status:  Accepted
Owner:  j...@semicomplete.com
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by ben.staniford, Sep 21, 2009
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,
Comment 1 by j...@semicomplete.com, Sep 21, 2009
Looks good. I'll patch it in and test.
Status: Accepted
Owner: j...@semicomplete.com
Comment 2 by 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
Comment 3 by j...@semicomplete.com, Dec 31 (43 hours ago)
 Issue 9  has been merged into this issue.
Comment 4 by ben.staniford, Yesterday (36 hours ago)
Haha, no problem, I'm still using the version I originally patched ;-)
Sign in to add a comment

Hosted by Google Code