summaryrefslogtreecommitdiff
path: root/gtk3-stackrpms/gtk3-nooverlayscrollbar/52gtk3-nooverlayscrollbar
blob: 5b6872e07fabec5444a3fc450c41acf6b09bfce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This file is sourced by Xsession(5), not executed.

# This file configures the global behavior of GTK3 "hidden" overlay 
# scrollbars and client side decorations. These settings may be overridden
# by individual users by setting the same variables to different values in
# in their ~/.xsessionrc.

BASESTARTUP=${STARTUP%% *}
BASESTARTUP=${BASESTARTUP##*/}
if [ "$BASESTARTUP" = x-session-manager ]; then
    BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
fi
case "$BASESTARTUP" in
  gnome-session*)
      # This is GNOME, make sure settings are left at their defaults.
#      unset GTK_CSD
      unset GTK_OVERLAY_SCROLLING
      unset LIBOVERLAY_SCROLLBAR
      ;;
  *)
      # Not GNOME, and the user didn't specify settings themselves, 
      # so set them to 0.
      if [ -z "$GTK_OVERLAY_SCROLLING" ] ; then
          GTK_OVERLAY_SCROLLING=0
      fi
      export GTK_OVERLAY_SCROLLING
      if [ -z "$LIBOVERLAY_SCROLLBAR" ] ; then
          LIBOVERLAY_SCROLLBAR=0
      fi
      export LIBOVERLAY_SCROLLBAR
#      if [ -z "$GTK_CSD" ] ; then
#          GTK_CSD=0
#      fi
#      export GTK_CSD
      ;;
esac
bgstack15