Added new option to take geometry, fixed root window sizing bug

Hi there!
I looked at electricsheep.c, because it had a bug that was preventing me from getting the right size passed to "mplayer" when trying to draw on the root window.
It was just giving a small 800x600(ish) movie in the upper left corner, which wasn't fun at all.
I found that passing the "-geometry 1920x1200" option to mplayer, from within electricsheep, fixes this problem.
So, I added an option to electricsheep that lets you pass in the -geometry option from the command line (kind of like how the existing --video-driver option is passed in).
The monitoraspect parsing code was broken, and didn't work with any recent version of xwininfo. So, I fixed that also. It gets the geometry instead of monitoraspect, which works better with mplayer. I also have it working with the root window, so it automatically detects the size of the root window.
I have a patch ready to go, if interested. My email address is krellan at krellan dot com.
Josh

User login