On Thu, 13 Aug 2020, Klaus Ethgen wrote:

> 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 0x4800001 -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+0100        VisibilityNotify event, serial 18, 
> synthetic NO, window 0x4800001,
>    2020-08-12 10:25:12+0100            state VisibilityPartiallyObscured
>    2020-08-12 10:25:12+0100
>    2020-08-12 10:25:12+0100        Expose event, serial 18, synthetic NO, 
> window 0x4800001,
>    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+0100        Expose event, serial 18, synthetic NO, 
> window 0x4800001,
>    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+0100        Expose event, serial 18, synthetic NO, 
> window 0x4800001,
>    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+0100        ConfigureNotify event, serial 18, 
> synthetic YES, window 0x4800001,
>    2020-08-12 10:25:12+0100            event 0x4800001, window 0x4800001, 
> (116,18), width 1804, height 1182,
>    2020-08-12 10:25:12+0100            border_width 0, above 0x140da85, 
> override NO
>    2020-08-12 10:25:12+0100
>    2020-08-12 10:25:12+0100        Expose event, serial 18, synthetic NO, 
> window 0x4800001,
>    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+0100        FocusIn event, serial 18, synthetic NO, 
> window 0x4800001,
>    2020-08-12 10:25:12+0100            mode 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.

Teams is rubbish.  Here are the things I do to make it less annoying
(still don't know how to get borders).  You know how Alt-F4 (or whatever
your close is) minimises the window instead?  So opening it back up first
involves going back to your original virtual desktop?  Yeah, that's
annoying too.  And it always then went to the bottom of my window focus
list because I had IconifiedAtEnd set (turns out I no longer iconify apps
intentionally, so easy to disable that).

I can't see anything in my Teams settings where I disable any urgency
or focus functions, so that might cover it.  If not, I can dig deeper...




Key Tab A M WindowList Root c c CurrentDesk, NoGeometry, CurrentAtEnd # , 
IconifiedAtEnd  #don't want IconfiedAtEnd anymore in 2020, because Microsoft 
Teams iconifies when you close it, but you still want to be able to alt-tab 
back to it.  Would love an "IconifiedAtEndExceptForTeams"

DestroyFunc MyUrgencyFunc
AddToFunc MyUrgencyFunc
    + I Iconify off
    + I FlipFocus
    + I Raise
    + I WarpToWindow 5 5

# opera was from 2009.  Microsoft teams actually steals the focus by
# warping the pointer to its window.  Didn't need to engage the below
# styles as well
DestroyFunc UrgencyFunc
AddToFunc UrgencyFunc
+ I ThisWindow (!"opera|*Microsoft Teams*") MyUrgencyFunc

# nothing works to get borders and decorations back: Style "Microsoft Teams*" 
GNOMEIgnoreHints # 
https://fvwm.fvwm.narkive.com/z7ifVxX2/fvwm-forcing-window-decorations
# at least we get titlebar back:
# see also "missing titlebar, decorations for one program (Microsoft Teams 
electron app)"
Style "*Microsoft Teams*" NoDecorHint, RecaptureHonorsStartsOnPage, 
CaptureHonorsStartsOnPage, StartsOnPageIncludesTransients, FixedPPosition, 
StickyIcon



-- 
Tim Connors


Reply via email to