mirror of
https://github.com/klaxalk/i3-layout-manager.git
synced 2025-06-21 03:57:42 +02:00
Merge pull request #14 from jtaala/master
FIX: do not lose/kill sticky windows when changing layouts.
This commit is contained in:
commit
a9e5ce842e
@ -127,7 +127,13 @@ if [[ "$ACTION" = "LOAD LAYOUT" ]]; then
|
|||||||
|
|
||||||
# delete all empty layout windows from the workspace
|
# delete all empty layout windows from the workspace
|
||||||
for (( i=0 ; $a-20 ; a=$a+1 )); do
|
for (( i=0 ; $a-20 ; a=$a+1 )); do
|
||||||
i3-msg "focus parent, kill" > $LOG_FILE 2>&1
|
|
||||||
|
# check window for STICKY before killing - if sticky do not kill
|
||||||
|
xprop -id $(xdotool getwindowfocus) | grep -q '_NET_WM_STATE_STICK'
|
||||||
|
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
i3-msg "focus parent, kill" > $LOG_FILE 2>&1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# then we can apply to chosen layout
|
# then we can apply to chosen layout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user