ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.87k stars 487 forks source link

Microsoft Teams notifications don't float. #1143

Open thewinger opened 3 years ago

thewinger commented 3 years ago

Describe the bug Microsoft Teams notifications don't float even though the setting "Float small windows" is checked.

Applications: Microsoft Teams

To Reproduce

  1. Check setting: Floating > General > "Float small windows"
  2. Install Microsoft Teams
  3. Receive notification

Expected behavior Microsoft Teams notifications float.

Versions:

Debug Info

Version: 0.15.4 (91)

OS version: Version 11.4 (Build 20F71)

Has permissions: false

Screens:
        (0.0, 0.0, 3440.0, 1440.0) [(0.0, 0.0, 3440.0, 1440.0)]
        (3440.0, -559.0, 1440.0, 2560.0) [(3440.0, -561.0, 1440.0, 2560.0)]

Manageable applications:
        talagent (com.apple.talagent)
        AppSSOAgent (com.apple.AppSSOAgent)
        Finder (com.apple.finder)
        storeuid (com.apple.storeuid)
        UserNotificationCenter (com.apple.UserNotificationCenter)
        coreautha (com.apple.LocalAuthentication.UIAgent)
        Microsoft Edge (com.microsoft.edgemac)
        Microsoft Teams (com.microsoft.teams)
        Opera (com.operasoftware.Opera)
        Alacritty (io.alacritty)
        Microsoft Excel (com.microsoft.Excel)
        Cisco AnyConnect Secure Mobility Client (com.cisco.anyconnect.gui)

Configuration:
restore-layouts-on-launch: 1
enables-layout-hud-on-space-change: 0
screen-padding-right: 0
window-margins: 0
mouse-follows-focus: 0
floating: (
        {
        id = "com.cisco.anyconnect.gui";
        "window-titles" =         (
        );
    },
        {
        id = "com.dmitrynikolaev.numi";
        "window-titles" =         (
        );
    },
        {
        id = "com.logitech.vc.CameraSettings";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.systempreferences";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.Preview";
        "window-titles" =         (
        );
    },
        {
        id = "ch.sudo.cyberduck";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.finder";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.installer";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.keychainaccess";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.reminders";
        "window-titles" =         (
        );
    },
        {
        id = "net.freemacsoft.AppCleaner";
        "window-titles" =         (
        );
    },
        {
        id = "com.bitwarden.desktop";
        "window-titles" =         (
        );
    },
        {
        id = "com.colliderli.iina";
        "window-titles" =         (
        );
    },
        {
        id = "com.operasoftware.Opera";
        "window-titles" =         (
            DevTools
        );
    }
)
focus-follows-mouse: 0
mouse-resizes-windows: 1
window-minimum-height: 0
use-canary-build: 0
enables-layout-hud: 1
float-small-windows: 1
screen-padding-top: 0
layouts: (
    tall,
    fullscreen,
    wide,
    "tall-right",
    floating
)
follow-space-thrown-windows: 0
floating-is-blacklist: 1
screen-padding-left: 0
window-margin-size: 8
window-resize-step: 10
new-windows-to-main: 0
mouse-swaps-windows: 1
ignore-menu-bar: 0
mod1: (
    option,
    shift
)
screen-padding-bottom: 0
mod2: (
    option,
    shift,
    control
)
window-minimum-width: 0
debug-layout-info: 0
Lef-F commented 3 years ago

One thing I noticed is that if you have Microsoft Teams open and go to Mission Control on Mac (gesture: swipe up with three fingers) there is an additional (but invisible) window named Microsoft Teams Notifications. The latter seems to be designed as a full-screen invisible window through which Microsoft Teams sends their custom notification banners. My solution was to switch to the Mac notifications in the Microsoft Teams settings:

image

Sadly this did not get rid of the Microsoft Teams Notification invisible window, but at least it's not creating issues with Amethyst anymore. I suspect Microsoft keeps that window available for other things like floating video when in a call or maybe if you switch to Built-in notifications then it won't need to restart the application.

Kahn-UX commented 1 year ago

I used a com.microsoft.outlook.notifications and that pushed them down into the bottom right

Same with Teams, com.microsoft.teams.notifications