]> code.delx.au - spectrwm/commitdiff
Fix 'double keypress' issue.
authorReginald Kennedy <rk@rejii.com>
Fri, 13 Jul 2012 23:49:54 +0000 (07:49 +0800)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 21:59:28 +0000 (05:59 +0800)
spectrwm.c

index d7c161fb3a75c4d106625402db99a11326dad812..66566e83b65d1c727546701336d8e9cbf43c5f68 100644 (file)
@@ -7661,7 +7661,7 @@ event_handle(xcb_generic_event_t *evt)
        switch (type) {
 #define EVENT(type, callback) case type: callback((void *)evt); return
        EVENT(XCB_BUTTON_PRESS, buttonpress);
-       EVENT(XCB_BUTTON_RELEASE, buttonpress);
+       /*EVENT(XCB_BUTTON_RELEASE, buttonpress);*/
        EVENT(XCB_CLIENT_MESSAGE, clientmessage);
        EVENT(XCB_CONFIGURE_NOTIFY, configurenotify);
        EVENT(XCB_CONFIGURE_REQUEST, configurerequest);
@@ -7669,7 +7669,7 @@ event_handle(xcb_generic_event_t *evt)
        EVENT(XCB_ENTER_NOTIFY, enternotify);
        EVENT(XCB_EXPOSE, expose);
        EVENT(XCB_KEY_PRESS, keypress);
-       EVENT(XCB_KEY_RELEASE, keypress);
+       /*EVENT(XCB_KEY_RELEASE, keypress);*/
        EVENT(XCB_MAP_NOTIFY, mapnotify);
        EVENT(XCB_MAP_REQUEST, maprequest);
        EVENT(XCB_MAPPING_NOTIFY, mappingnotify);