* unsuccessful attempt to catch a real minimize event with Gtk
'window-state-event'
The problem is that GDK_WINDOW_STATE_ICONIFIED is fired on virtual desktop
change... even both e->changed_mask and e->new_window_state get
GDK_WINDOW_STATE_ICONIFIED ! Gdk obviously relies on WM_STATE, which may not
be up-to-date. We better try to check _NET_WM_STATE at X11 level. See ex:
http://trac.wxwidgets.org/ticket/10973
windows. Rationale: better visual results (surprisingly), and better
portability (hopefully).
* restore window state when showing window
* help cursor only on pref window
Globally we're at the same stage we were before wanting to drop X11 and Gecko
window-cooking (f1789077), but with a much more robust/modular/cleaner design.
Hopefully.
window properly
* "delete-event" callbacks use GdkEventWindowState (not GdkEvent)
* begin implementation of window position/size/state save/restore
NOTE: this revision is *very* unstable. I think I should drop the GTK
"delete-event" handling and revert back to onClose().