On Thu, Aug 13, 2020 at 09:27:10PM +0200, Dr. Nikolaus Klepp wrote:
> If that's the case you can build a preloaded library that interceps the
> function call.

I mention it on that wiki page.  So...

Save this as ~/pl_xsetinputfocus.c

-----------------------------------------------------------------------------
#include <stdio.h>
#include <X11/Xlib.h>

/* Compile with:
 *
 * gcc --shared -fPIC pl_xsetinputfocus.c -o disable_xsetinputfocus.so
 *
 * Then use:
 *
 * LD_PRELOAD=/path/to/disable_xsetinputfocus.so some_application
 */

int XSetInputFocus(Display *d, Window w, int i, Time t)
{
        return 0;
}
-----------------------------------------------------------------------------

-- Thomas Adam

Reply via email to