Small improvements on logactivewin.sh:
Small improvements on logactivewin.sh:

- simpler method to get the name of the active window: 'xdotool getwindowname id'
- safer tests: [ str = str2 ] fails if one strings is empty

Naereen/ulogme,Naereen/ulogme,Naereen/ulogme,Naereen/ulogme