# This file is sourced by Xsession(5), not executed.
if [ "x$DESKTOP_SESSION" == "xmate" ] || [ "x$XDG_SESSION_DESKTOP" == "xmate" ]; then
    # Ensure GTK accessibility modules are active.
    if [ -z "$GTK_MODULES" ]; then
        GTK_MODULES=gail:atk-bridge:canberra-gtk-module
    else
        GTK_MODULES="$GTK_MODULES:gail:atk-bridge:canberra-gtk-module"
    fi
    export GTK_MODULES

    # Disable GTK3 overlay scrollbars
    export GTK_OVERLAY_SCROLLING=0

    # For experimental HiDPI scaling uncomment the following and reboot:
    #export GDK_SCALE=2
    #export GDK_DPI_SCALE=0.5
fi