fixed glk_request_mouse_event to only generate one mouse event. When
authorMarijn van Vliet <rodin@assepoester.(none)>
Sat, 18 Jun 2011 10:22:57 +0000 (12:22 +0200)
committerMarijn van Vliet <rodin@assepoester.(none)>
Sat, 18 Jun 2011 10:22:57 +0000 (12:22 +0200)
another mouse event is desired, glk_request_mouse_event must be called
again.

libchimara/mouse.c

index 1f54b5cef775f3c33c44fceec3f1ab00facf2162..2c7d7b23812e67de6d83e62fd0659d0334bb930f 100644 (file)
@@ -51,5 +51,7 @@ on_window_button_press(GtkWidget *widget, GdkEventButton *event, winid_t win)
             ILLEGAL_PARAM("Unknown window type: %u", win->type);
        }
 
+       g_signal_handler_block(win->widget, win->button_press_event_handler);
+
        return TRUE;
 }