1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00

add XF86Sleep to --pass-power-keys

This commit is contained in:
Martin Pittermann 2019-10-03 14:10:45 +02:00
parent b9fee4e3db
commit dbb21b5341
2 changed files with 2 additions and 1 deletions

View file

@ -189,7 +189,7 @@ XF86MonBrightnessUp, XF86MonBrightnessDown.
.TP
.B \-\-pass-power-keys
Allow the following keys to be used while the screen is locked by passing them through:
XF86PowerDown, XF86PowerOff.
XF86PowerDown, XF86PowerOff, XF86Sleep.
.TP
.B \-\-insidevercolor=rrggbbaa

View file

@ -691,6 +691,7 @@ static void handle_key_press(xcb_key_press_event_t *event) {
switch(ksym) {
case XKB_KEY_XF86PowerDown:
case XKB_KEY_XF86PowerOff:
case XKB_KEY_XF86Sleep:
xcb_send_event(conn, true, screen->root, XCB_EVENT_MASK_BUTTON_PRESS, (char *)event);
return;
}