commit e886adbc3c7485d0a2d620e65fa84c0b5adceebd
parent a5c65d45427d9bf5c48fd2452b78d1742e0f571c
Author: Raymond Li <hi@raymond.li>
Date: Thu, 5 Sep 2019 12:32:54 -0400
Also pass XF86 Power Off and Power Down keys through
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -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;
}