Also pass XF86 Power Off and Power Down keys through

This commit is contained in:
Raymond Li 2019-09-05 12:32:54 -04:00 committed by GitHub
parent a5c65d4542
commit e886adbc3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -667,6 +667,8 @@ static void handle_key_press(xcb_key_press_event_t *event) {
case XKB_KEY_XF86AudioRaiseVolume:
case XKB_KEY_XF86MonBrightnessUp:
case XKB_KEY_XF86MonBrightnessDown:
case XKB_KEY_XF86PowerDown:
case XKB_KEY_XF86PowerOff:
xcb_send_event(conn, true, screen->root, XCB_EVENT_MASK_BUTTON_PRESS, (char *)event);
return;
}