Re: FVWM: Microsoft Teams

Thomas Adam <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <20200813194748.ghwwe43ugqjrhxy4@debian>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.