According to the man page, you should select the window first with a selection option, for example -r and -a , for example:
$ wmctrl -l 0x01800006 0 hostname Terminal - byobu $ wmctrl -a Terminal
It really selects (and rises + focus from -a ) the terminal window.
Then you can use the resize / move option, e.g. -e gravity,X,Y,width,height
As for your question, I just tested this:
$ wmctrl -l 0x01800006 0 machine_hostname - byobu 0x06800002 0 moe Microsoft Excel - Classeur1
And Excel (obviously running in Wine) closed gracefully when I typed
$ wmctrl -c Microsoft
More info here .
source share