Bug 663605 - Fix event->state of many event types on quartz
Bug 663605 - Fix event->state of many event types on quartz

Don't try to remember the current keyboard modifier and mouse button
states from the last event, because that isn't always right, and don't
set event.state = 0 for generated events. Instead, add private functions
to get the current states, and implement them with API that retrieves
these states independently from an event.

chergert/gtk,alexlarsson/gtk,Adamovskiy/gtk,msteinert/gtk,Sidnioulz/SandboxGtk,chergert/gtk,bratsche/gtk-,ahodesuka/gtk,jigpu/gtk,jadahl/gtk,Distrotech/gtk2,jessevdk/gtk,Distrotech/gtk2,ahodesuka/gtk,Adamovskiy/gtk,jadahl/gtk,davidgumberg/gtk,jigpu/gtk,ahodesuka/gtk,bratsche/gtk-,chergert/gtk,Lyude/gtk-,chergert/gtk,davidt/gtk,davidt/gtk,ebassi/gtk,Lyude/gtk-,jigpu/gtk,jessevdk/gtk,jadahl/gtk,jessevdk/gtk,davidgumberg/gtk,jadahl/gtk,ahodesuka/gtk,jigpu/gtk,ahodesuka/gtk,davidgumberg/gtk,Adamovskiy/gtk,ahodesuka/gtk,Lyude/gtk-,alexlarsson/gtk,jadahl/gtk,alexlarsson/gtk,ebassi/gtk,Sidnioulz/SandboxGtk,grubersjoe/adwaita,bratsche/gtk-,chergert/gtk,Lyude/gtk-,davidgumberg/gtk,grubersjoe/adwaita,davidt/gtk,Distrotech/gtk2,Lyude/gtk-,ebassi/gtk,davidt/gtk,davidt/gtk,ebassi/gtk,grubersjoe/adwaita,davidgumberg/gtk,msteinert/gtk,bratsche/gtk-,Sidnioulz/SandboxGtk,ebassi/gtk,Lyude/gtk-,grubersjoe/adwaita,grubersjoe/adwaita,chergert/gtk,jessevdk/gtk,jessevdk/gtk,grubersjoe/adwaita,jessevdk/gtk,Lyude/gtk-,Adamovskiy/gtk,jigpu/gtk,Distrotech/gtk2,davidgumberg/gtk,chergert/gtk,Sidnioulz/SandboxGtk,msteinert/gtk,Adamovskiy/gtk,bratsche/gtk-,msteinert/gtk,davidgumberg/gtk,jigpu/gtk,bratsche/gtk-,jadahl/gtk,chergert/gtk,alexlarsson/gtk,Adamovskiy/gtk,ahodesuka/gtk,Adamovskiy/gtk,davidt/gtk,Sidnioulz/SandboxGtk,Adamovskiy/gtk,davidgumberg/gtk,Distrotech/gtk2,alexlarsson/gtk,ebassi/gtk,alexlarsson/gtk,alexlarsson/gtk,grubersjoe/adwaita,alexlarsson/gtk,jessevdk/gtk,msteinert/gtk,ahodesuka/gtk,Sidnioulz/SandboxGtk,Distrotech/gtk2,jadahl/gtk,grubersjoe/adwaita,jigpu/gtk,jadahl/gtk,Lyude/gtk-,jigpu/gtk,msteinert/gtk