diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-07 11:40:25 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-07 11:40:25 -0400 |
| commit | c34f2c234c4ae74b3b6e5ba195d10d9c4564ea48 (patch) | |
| tree | 22c406c17c068b50ef4e017bdea7be0116503a1b | |
| parent | 77fdd9d1c34b6f75942996cfd578c3ccbe5fdd2d (diff) | |
Documented click event on activate behavior in the GTK+ backend.
| -rw-r--r-- | area_unix.go | 5 | ||||
| -rw-r--r-- | todo.md | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/area_unix.go b/area_unix.go index c142769..909d288 100644 --- a/area_unix.go +++ b/area_unix.go @@ -159,6 +159,11 @@ func finishMouseEvent(widget *C.GtkWidget, data C.gpointer, me MouseEvent, mb ui // convenience name to make our intent clear const continueEventChain C.gboolean = C.FALSE +// checking for a mouse click that makes the program/window active is meaningless on GTK+: it's a property of the window manager/X11, and it's the WM that decides if the program should become active or not +// however, one thing is certain: the click event will ALWAYS be sent (to the window that the X11 decides to send it to) +// I assume the same is true for Wayland +// thanks Chipzz in irc.gimp.net/#gtk+ + //export our_area_button_press_event_callback func our_area_button_press_event_callback(widget *C.GtkWidget, event *C.GdkEvent, data C.gpointer) C.gboolean { // clicking doesn't automatically transfer keyboard focus; we must do so manually (thanks tristan in irc.gimp.net/#gtk+) @@ -20,7 +20,6 @@ WINDOWS: UNIX: - double-check to make sure MouseEvent.Held[] is sorted on Unix after we figure out how to detect buttons above button 5 -- figure out why I don't need to explicitly enable click on activate so I can document it - david wendt is telling me he's getting frequent crashes on his end with the GTK+ amd64 build... TODO re-evaluate; I think I fixed them all ages ago now - when resizing a GTK+ window smaller than a certain size, the controls inside will start clipping in bizarre ways (the horizontal scrollbar in Area will disappear smoothly; etc.) |
