Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hellcp:flickerfree-boot
grub2
grub2-sleep_shift.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grub2-sleep_shift.patch of Package grub2
diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c index 8397886..c2943c6 100644 --- a/grub-core/normal/menu.c +++ b/grub-core/normal/menu.c @@ -614,8 +614,27 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) saved_time = grub_get_time_ms (); while (1) { + int mods = 0; + grub_term_input_t term; int key; + if (grub_term_poll_usb) + grub_term_poll_usb (0); + + FOR_ACTIVE_TERM_INPUTS(term) + { + if (term->getkeystatus) + mods |= term->getkeystatus (term); + } + + if (mods >= 0 && + (mods & (GRUB_TERM_STATUS_LSHIFT + | GRUB_TERM_STATUS_RSHIFT)) != 0) + { + timeout = -1; + break; + } + key = grub_getkey_noblock (); if (key != GRUB_TERM_NO_KEY) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor