Created
November 10, 2014 13:48
-
-
Save ThomasAdam/5d7d72fe8e1c4d9009b5 to your computer and use it in GitHub Desktop.
XSelectInput Override
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
/* Compile: | |
* | |
* Save this file as xsi_override.c, then: | |
* | |
* gcc -I /usr/include/X11 -L /usr/X11/lib -lX11 -Wall -fPIC -shared -o \ | |
* xsi_override.so xsi_override.c -ldl | |
* | |
*/ | |
/* Running: | |
* | |
* LD_PRELOAD=/path/to/xsi_override.so ./some_program | |
* | |
*/ | |
int XSelectInput(Display *, Window, long); | |
int XSelectInput(Display *d, Window w, long mask) | |
{ | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment