Fix problems with sticky handling
Fix problems with sticky handling

Reading a card32 property into a long may lead to undefined high
bits, so mask them off. Also, make the conditions for setting and
unsetting the stick flag opposites, to avoid unintended changes.
Patch by John Lindgren, bug 666842

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