hlfw.ca

hwwm

Download patch

ref: 63d2fb74fe4bc2f64349801eb5f682305dc1e2e8
parent: 129fb6e15abb9922eadf4b520c65abfbf1f94c37
author: Halfwit <michaelmisch1985@gmail.com>
date: Mon Jun 12 10:56:22 PDT 2017

Make sure we shuffle when we close a fullscreened program

Signed-off-by: Halfwit <michaelmisch1985@gmail.com>

--- a/hwwm
+++ b/hwwm
@@ -20,11 +20,8 @@
 			$DIR/groupsbar           ;;
 		# Destroy
 		17*)	wtf `lsw | tail -n1`
-			if test -z $fullscreen; then
-				$DIR/wshuf | xargs -n 5 wtp
-			else
-				xprop -root -remove FS
-			fi
+			test -z $fullscreen || xprop -root -remove FS
+			$DIR/wshuf | xargs -n 5 wtp
 			$DIR/groupsbar           ;;
 	esac
 done