mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Fix replay duration range
This commit is contained in:
@@ -735,7 +735,7 @@ namespace gsr {
|
|||||||
auto list = std::make_unique<List>(List::Orientation::HORIZONTAL, List::Alignment::CENTER);
|
auto list = std::make_unique<List>(List::Orientation::HORIZONTAL, List::Alignment::CENTER);
|
||||||
|
|
||||||
auto replay_time_entry = std::make_unique<Entry>(&get_theme().body_font, "60", get_theme().body_font.get_character_size() * 3);
|
auto replay_time_entry = std::make_unique<Entry>(&get_theme().body_font, "60", get_theme().body_font.get_character_size() * 3);
|
||||||
replay_time_entry->validate_handler = create_entry_validator_integer_in_range(2, 86400);
|
replay_time_entry->validate_handler = create_entry_validator_integer_in_range(1, 86400);
|
||||||
replay_time_entry_ptr = replay_time_entry.get();
|
replay_time_entry_ptr = replay_time_entry.get();
|
||||||
list->add_widget(std::move(replay_time_entry));
|
list->add_widget(std::move(replay_time_entry));
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ static void keyboard_event_process_input_event_data(keyboard_event *self, event_
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* TODO: What if some key is being pressed down while this is done? will it remain pressed down? */
|
/* TODO: What if some key is being pressed down while this is done? will it remain pressed down? */
|
||||||
if(!extra_data->is_non_keyboard_device && (event.type == EV_REL || (event.type == EV_KEY && !keyboard_key))) {
|
if(!extra_data->is_non_keyboard_device && (event.type == EV_REL || event.type == EV_ABS || (event.type == EV_KEY && !keyboard_key))) {
|
||||||
fprintf(stderr, "Info: device /dev/input/event%d is likely a non-keyboard device as it received a non-keyboard event. This device will be ignored\n", extra_data->dev_input_id);
|
fprintf(stderr, "Info: device /dev/input/event%d is likely a non-keyboard device as it received a non-keyboard event. This device will be ignored\n", extra_data->dev_input_id);
|
||||||
extra_data->is_non_keyboard_device = true;
|
extra_data->is_non_keyboard_device = true;
|
||||||
if(extra_data->grabbed) {
|
if(extra_data->grabbed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user