Skip to content

Commit

Permalink
new setting: usetakefocus
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Hrbek <[email protected]>
  • Loading branch information
Jacob Hrbek committed Jun 5, 2019
1 parent 05dbc02 commit 5eaef61
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/verbs/all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ sound=oss Set sound driver to OSS
sound=pulse Set sound driver to PulseAudio
strictdrawordering=disabled Disable StrictDrawOrdering (default)
strictdrawordering=enabled Enable StrictDrawOrdering
usetakefocus=enabled Enable UseTakeFocus
usetakefocus=disabled Disable UseTakeFocus (default)
vd=1024x768 Enable virtual desktop, set size to 1024x768
vd=1280x1024 Enable virtual desktop, set size to 1280x1024
vd=1440x900 Enable virtual desktop, set size to 1440x900
Expand Down
2 changes: 2 additions & 0 deletions files/verbs/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ sound=oss Set sound driver to OSS
sound=pulse Set sound driver to PulseAudio
strictdrawordering=disabled Disable StrictDrawOrdering (default)
strictdrawordering=enabled Enable StrictDrawOrdering
usetakefocus=enabled Enable UseTakeFocus
usetakefocus=disabled Disable UseTakeFocus (default)
vd=1024x768 Enable virtual desktop, set size to 1024x768
vd=1280x1024 Enable virtual desktop, set size to 1280x1024
vd=1440x900 Enable virtual desktop, set size to 1440x900
Expand Down
38 changes: 38 additions & 0 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -20337,6 +20337,42 @@ w_metadata windowmanagerdecorated=n settings \
title_uk="Не дозволяти менеджеру вікон декорувати вікна" \
title="Prevent the window manager from decorating windows"

#----------------------------------------------------------------

w_metadata usetakefocus=enabled settings \
title_cz="Aktivovat UseTakeFocus" \
title_uk="Увімкнути фокусування на вікні" \
title_sk="Aktivovať UseTakeFocus" \
title_tlh="Qorwagh buSchoH 'e' chu'" \
title="Enable UseTakeFocus"
w_metadata usetakefocus=disabled settings \
title_cz="Deaktivovat UseTakeFocus (výchozí)" \
title_uk="Вимкнути фокусування на вікні (за замовчуванням)" \
title_sk="Deaktivovať UseTakeFocus (výchozí)" \
title_tlh="Qorwagh buSchoH 'e' chu'Ha' (DuH choHlu'pu'be'bogh)" \
title="Disable UseTakeFocus (default)"

load_usetakefocus()
{
case "$1" in
enabled) arg="Y";;
disabled) arg="N";;
*) w_die "illegal value $1 for UseTakeFocus";;
esac

echo "Setting UseTakeFocus to $arg"
cat > "$W_TMP"/set-gfs.reg <<_EOF_
REGEDIT4

[HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver]
"UseTakeFocus"="$arg"

_EOF_
w_try_regedit "$W_TMP"/set-gfs.reg
}

#----------------------------------------------------------------

load_windowmanagerdecorated()
{
case "$1" in
Expand All @@ -20362,6 +20398,8 @@ w_metadata windowmanagermanaged=n settings \
title_uk="Не дозволяти менеджеру вікон керування вікнами" \
title="Prevent the window manager from controlling windows"

#----------------------------------------------------------------

load_windowmanagermanaged()
{
case "$1" in
Expand Down

0 comments on commit 5eaef61

Please sign in to comment.