backends: X11: Cleanup + Fullscreen fixes

* Cleanup the source

* Add NetWM Window Manager detection code

* Fix event mask for while sending fullscreen request
  (Fixes fullscreen in OpenBox)

Signed-off-by: Cyril Hrubis <metan@ucw.cz>