@dolik-rce commented on this pull request.
- if (event && event->type == GDK_BUTTON_PRESS)
- button_event = (GdkEventButton *) event; - else - gdk_event_free(event);
BTW: This looks like a memory leak. The event object is only freed if it is triggered by keyboard. Good thing that we'll get rid of it soon :slightly_smiling_face: