grabc

Tool to identify pixel colors on X
git clone https://git.sinitax.com/muquit/grabc
Log | Files | Refs | README | Upstream | sfeed.txt

commit fb6a11964c8adfbae3c7d8d0c95af1cad232afab
parent 81afa9d2fcd23218853a267c552407c84923a1d4
Author: muquit <muquit@gmail.com>
Date:   Wed, 11 Apr 2018 21:19:08 -0400

cleanup

Diffstat:
Mgrabc.c | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/grabc.c b/grabc.c @@ -235,8 +235,6 @@ static Window select_window(Display *display,int *x,int *y) root_window=XRootWindow(display,XDefaultScreen(display)); log_debug("Root window: 0x%08lx",root_window); -// if (!g_loc_specified) -// { status=XGrabPointer(display,root_window,False, (unsigned int) ButtonPressMask,GrabModeSync, GrabModeAsync,root_window,target_cursor,CurrentTime); @@ -277,13 +275,6 @@ static Window select_window(Display *display,int *x,int *y) XFreeCursor(display,cross_cursor); (*x)=event.xbutton.x; (*y)=event.xbutton.y; -// } -// else -// { -// (*x) = g_x; -// (*y) = g_y; -// } - log_debug("x,y: +%d+%d",(*x),(*y)); return (target_window);