mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-05 22:40:44 +09:00
Add option to take a screenshot (default hotkey: alt+f1)
This commit is contained in:
@@ -44,9 +44,10 @@ namespace gsr {
|
||||
}
|
||||
|
||||
void Hotplug::process_event_data(int fd, const HotplugEventCallback &callback) {
|
||||
const int bytes_read = read(fd, event_data, sizeof(event_data));
|
||||
const int bytes_read = read(fd, event_data, sizeof(event_data) - 1);
|
||||
if(bytes_read <= 0)
|
||||
return;
|
||||
event_data[bytes_read] = '\0';
|
||||
|
||||
/* Hotplug data ends with a newline and a null terminator */
|
||||
int data_index = 0;
|
||||
|
||||
Reference in New Issue
Block a user