diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-07-25 11:32:30 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-07-25 11:32:30 +0200 |
commit | fe230eb95c2b3c212596cda6077bf65d03607543 (patch) | |
tree | d25404321cc1160969d7245cdcfe99ec73d22899 /source/rofi.c | |
parent | dd8f09dab822b81c04d02a6c67716cf1e5489a76 (diff) |
Fix #432, Control+k removes till eol.
Diffstat (limited to 'source/rofi.c')
-rw-r--r-- | source/rofi.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/source/rofi.c b/source/rofi.c index af19c87c..74b2f5f6 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -74,9 +74,9 @@ struct xkb_stuff xkb = { .keymap = NULL, .state = NULL, .compose = { - .table = NULL, - .state = NULL -} + .table = NULL, + .state = NULL + } }; char *config_path = NULL; // Array of modi. @@ -441,22 +441,22 @@ static gboolean main_loop_x11_event_handler ( xcb_generic_event_t *ev, G_GNUC_UN xkb.state = xkb_x11_state_new_from_device ( xkb.keymap, xcb->connection, xkb.device_id ); break; case XCB_XKB_STATE_NOTIFY: - { - xcb_xkb_state_notify_event_t *ksne = (xcb_xkb_state_notify_event_t *) ev; - guint modmask; - xkb_state_update_mask ( xkb.state, - ksne->baseMods, - ksne->latchedMods, - ksne->lockedMods, - ksne->baseGroup, - ksne->latchedGroup, - ksne->lockedGroup ); - modmask = x11_get_current_mask ( &xkb ); - if ( modmask == 0 ) { - abe_trigger_release ( ); - } - break; + { + xcb_xkb_state_notify_event_t *ksne = (xcb_xkb_state_notify_event_t *) ev; + guint modmask; + xkb_state_update_mask ( xkb.state, + ksne->baseMods, + ksne->latchedMods, + ksne->lockedMods, + ksne->baseGroup, + ksne->latchedGroup, + ksne->lockedGroup ); + modmask = x11_get_current_mask ( &xkb ); + if ( modmask == 0 ) { + abe_trigger_release ( ); } + break; + } } return G_SOURCE_CONTINUE; } |