- printf("GUILE: DOUBLECLICK: win %lx modifiers %ux button %ud time %lx",
- (long)win, modifiers, button, time);
-
+ printf("GUILE: DOUBLECLICK: win %lx modifiers %u button %u time %lx\n",
+ (long)e.window, e.state, e.button, e.time);
+
+ // reset so you cant triple click for 2 doubleclicks
+ _release.win = 0;
+ _release.button = 0;
+ _release.time = 0;
+ } else {
+ // save the button release, might be part of a double click
+ _release.win = e.window;
+ _release.button = e.button;
+ _release.time = e.time;