FVWM: Microsoft Teams

2020-08-13 Thread Klaus Ethgen
Hi folks,

Lets send that mail again after setting dmarc to quarantine instead of
reject. This Mailinglist does not work with dmarc.

I need to use Microsoft Teams for some reason. My problem is, that when
I get a notification, that notification gets shown in the lower right
side of the screen and direct after that, I get relocated onto the
Screen where Teams is running, independent on what other screen I am
currently and what I do.

So I endet more than one time now, typing password into teams where it
should never ever been.

I already have !FPFocusByFunction and !FPFocusByProgram set but it
doesn't work.

`xev -id 0x481 -event expose -event visibility -event structure
-event substructure -event focus -event owner_grab_button | awk
'{now=strftime("%F %T%z\t");sub(/^/, now);print}'` gave me the
following:
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100VisibilityNotify event, serial 18, synthetic 
NO, window 0x481,
   2020-08-12 10:25:12+0100state VisibilityPartiallyObscured
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(0,0), width 1804, height 666, count 2
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(678,666), width 1126, height 515, count 
1
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(678,1181), width 846, height 1, count 0
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100ConfigureNotify event, serial 18, synthetic 
YES, window 0x481,
   2020-08-12 10:25:12+0100event 0x481, window 0x481, 
(116,18), width 1804, height 1182,
   2020-08-12 10:25:12+0100border_width 0, above 0x140da85, 
override NO
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(0,666), width 678, height 516, count 0
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100FocusIn event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100mode NotifyNormal, detail NotifyNonlinear

Anybody an idea how to get rid of that very annoying behaviour?

Its the most extreme focus grabbing I ever seen; Not even firefox is
that extreme.

Regards
   Klaus
-- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C


signature.asc
Description: PGP signature


Re: FVWM: Microsoft Teams

2020-08-13 Thread Thomas Adam
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 
#include 

/* 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



Re: FVWM: Microsoft Teams

2020-08-13 Thread Dr. Nikolaus Klepp
Anno domini 2020 Thu, 13 Aug 19:53:55 +0100
 Thomas Adam scripsit:
> On Thu, Aug 13, 2020 at 05:50:36PM +0100, Klaus Ethgen wrote:
> > So I endet more than one time now, typing password into teams where it
> > should never ever been.
> > 
> > I already have !FPFocusByFunction and !FPFocusByProgram set but it
> > doesn't work.
> 
> Teams might be implicitly using XSetInputFocus() although it's an Electron
> App, so it's unclear.  You could certainly use `xprop -spy` on the window.

If that's the case you can build a preloaded library that interceps the 
function call.

nik

> 
> Speaking of helping things, read this and double-check you're applying these
> things to Teams:
> 
> https://www.fvwm.org/Wiki/Tips/FocusStealing/
> 
> -- Thomas
> 
> 



-- 
Please do not email me anything that you are not comfortable also sharing with 
the NSA, CIA ...



Re: FVWM: Microsoft Teams

2020-08-13 Thread Thomas Adam
On Thu, Aug 13, 2020 at 05:50:36PM +0100, Klaus Ethgen wrote:
> So I endet more than one time now, typing password into teams where it
> should never ever been.
> 
> I already have !FPFocusByFunction and !FPFocusByProgram set but it
> doesn't work.

Teams might be implicitly using XSetInputFocus() although it's an Electron
App, so it's unclear.  You could certainly use `xprop -spy` on the window.

Speaking of helping things, read this and double-check you're applying these
things to Teams:

https://www.fvwm.org/Wiki/Tips/FocusStealing/

-- Thomas



FVWM: Microsoft Teams

2020-08-12 Thread Klaus Ethgen
Hi folks,

I need to use Microsoft Teams for some reason. My problem is, that when
I get a notification, that notification gets shown in the lower right
side of the screen and direct after that, I get relocated onto the
Screen where Teams is running, independent on what other screen I am
currently and what I do.

So I endet more than one time now, typing password into teams where it
should never ever been.

I already have !FPFocusByFunction and !FPFocusByProgram set but it
doesn't work.

`xev -id 0x481 -event expose -event visibility -event structure
-event substructure -event focus -event owner_grab_button | awk
'{now=strftime("%F %T%z\t");sub(/^/, now);print}'` gave me the
following:
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100VisibilityNotify event, serial 18, synthetic 
NO, window 0x481,
   2020-08-12 10:25:12+0100state VisibilityPartiallyObscured
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(0,0), width 1804, height 666, count 2
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(678,666), width 1126, height 515, count 
1
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(678,1181), width 846, height 1, count 0
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100ConfigureNotify event, serial 18, synthetic 
YES, window 0x481,
   2020-08-12 10:25:12+0100event 0x481, window 0x481, 
(116,18), width 1804, height 1182,
   2020-08-12 10:25:12+0100border_width 0, above 0x140da85, 
override NO
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100Expose event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100(0,666), width 678, height 516, count 0
   2020-08-12 10:25:12+0100
   2020-08-12 10:25:12+0100FocusIn event, serial 18, synthetic NO, 
window 0x481,
   2020-08-12 10:25:12+0100mode NotifyNormal, detail NotifyNonlinear

Anybody an idea how to get rid of that very annoying behaviour?

Its the most extreme focus grabbing I ever seen; Not even firefox is
that extreme.

Regards
   Klaus
-- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C


signature.asc
Description: PGP signature