Comment 8 for bug 1671540

Revision history for this message
Mat Cucuzella (kookjr) wrote :

I'm using this script to collect info. I'll post the results in the next message. It makes to files, a before and after calling wmctrl so they can be diff'ed easily

---------------- script below
#!/bin/bash

function die() {
    echo "Error: " $*
    exit 1
}

# collect info before the window is moved.

[[ $# -eq 1 ]] || die "Usage: $0 output_file"

OUT=$1

cat /dev/null >$OUT.before
cat /dev/null >$OUT.after

echo "BEFORE" >>$OUT.before
(
    echo -e "COMMAND: wmctrl -lGp\n"
    wmctrl -lGp
    echo -e "\nCOMMAND: xwininfo -name Software Updater"
    xwininfo -name 'Software Updater'
) 2>&1 | sed 's/^/ /' >>$OUT.before

echo "moving Software Updater to current desktop"
wmctrl -R 'Software Updater'

echo "AFTER" >> $OUT.after
(
    echo -e "COMMAND: wmctrl -lGp\n"
    wmctrl -lGp
    echo -e "\nCOMMAND: xwininfo -name Software Updater"
    xwininfo -name 'Software Updater'
) 2>&1 | sed 's/^/ /' >>$OUT.after

exit 0