applied Sylvain Laurent's EWMH fullscreen state patch, simplified his patch a bit