mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 15:14:58 +08:00
eww: Fix dismiss overlay not spawning below widgets after SwayFX 1.10 rebase
We simply open the dismiss overlay in post_show instead of pre_show of the `manage` script.
This commit is contained in:
parent
add5e60e00
commit
ba4b40cb2a
1 changed files with 8 additions and 6 deletions
|
|
@ -155,16 +155,11 @@ _pre_show() {
|
|||
if [[ -v pre_show_cmds["$widget_name"] ]]; then
|
||||
sh <<< "${pre_show_cmds[$widget_name]}"
|
||||
fi
|
||||
|
||||
if [[ ${mutually_exclusive_widgets[*]} =~ $widget_name ]]; then
|
||||
hide_all_except "$widget_name"
|
||||
fi
|
||||
}
|
||||
|
||||
_post_show() {
|
||||
widget_name="$1"
|
||||
if [[ -v post_show_cmds["$widget_name"] ]]; then
|
||||
sh <<< "${post_show_cmds[$widget_name]}"
|
||||
fi
|
||||
if [[ ${dismiss_when_clicking_outside_widgets[*]} =~ $widget_name ]]; then
|
||||
secondary_overlays=''
|
||||
# Show an overlay for all active secondary monitors
|
||||
|
|
@ -183,6 +178,13 @@ _post_show() {
|
|||
fi
|
||||
}
|
||||
|
||||
_post_show() {
|
||||
widget_name="$1"
|
||||
if [[ -v post_show_cmds["$widget_name"] ]]; then
|
||||
sh <<< "${post_show_cmds[$widget_name]}"
|
||||
fi
|
||||
}
|
||||
|
||||
_pre_hide() {
|
||||
widget_name="$1"
|
||||
if [[ -v pre_hide_cmds["$widget_name"] ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue