crategus / cl-cffi-gtk

cl-cffi-gtk is a Lisp binding to the GTK+ 3 library.

Home Page:http://www.crategus.com/books/cl-cffi-gtk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdk-event state accessor returns list of keywords instead of a numeric bitmask

stacksmith opened this issue · comments

At least for key events...
I am not sure if it is by design, but it is much more difficult to deal with a list of keywords to see what modifiers (shift, control, etc) are in play. It should be a simple and operation, instead scanning the list for each modifier is necessary.
Calling (gdk-event-key-state event) returns a list of keywords.

Looking at the event structure in the bindings, it looks like the structure correctly marks the field as a gdk-modifier-type. I am not sure how it turns into a list...