Can close windows of a VM while it's paused, and can not accidentally harm dom0 by errant clicking. Discussion in https://github.com/QubesOS/qubes-issues/issues/881 Thanks to rustybird for suggested implementation.pull/14/head
parent
73ba5f805b
commit
be1d984364
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
ID=$(xdotool selectwindow)
|
||||
|
||||
xprop -id "$ID" _QUBES_VMNAME | grep -q ' = ' \
|
||||
|| { echo "${0##* /}: Not killing dom0 window $ID" >&2; exit 1; }
|
||||
|
||||
xdotool windowkill "$ID"
|
Loading…
Reference in new issue