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 /area_unix.go | |
| parent | 77fdd9d1c34b6f75942996cfd578c3ccbe5fdd2d (diff) | |
Documented click event on activate behavior in the GTK+ backend.
Diffstat (limited to 'area_unix.go')
| -rw-r--r-- | area_unix.go | 5 |
1 files changed, 5 insertions, 0 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+) |
