diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-31 01:01:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-31 01:01:07 +0100 |
commit | 94cb63f00f6805490cf4ebebaf08f9b5767a2d59 (patch) | |
tree | b6e8e783da1ada7088b2c006b0bfa9312576adbd | |
parent | c2dca2e8f812302d9465186bf001442a29919088 (diff) |
Newline after show_ui command
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | src/main.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -121,4 +121,6 @@ Show a popup asking if the user wants to add the program to system startup when Show warning if another instance of gpu screen recorder is already running when starting recording? -Change gsr-global-hotkeys to outputs keys pressed instead of the command. This can be done pretty safely by only output keys when modifiers (such as alt) is pressed.
\ No newline at end of file +Change gsr-global-hotkeys to outputs keys pressed instead of the command. This can be done pretty safely by only output keys when modifiers (such as alt) is pressed. + +Keyboard leds get turned off when stopping gsr-global-hotkeys (for example numlock). The numlock key has to be pressed twice again to make it look correct to match its state.
\ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index ffee855..874e98e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -195,7 +195,7 @@ int main(int argc, char **argv) { // that uses pid sandboxing. Replace this with a better method once we no longer rely on linux global hotkeys on some platform. if(is_gsr_ui_virtual_keyboard_running()) { gsr::Rpc rpc; - if(rpc.open("gsr-ui") && rpc.write("show_ui", 7)) { + if(rpc.open("gsr-ui") && rpc.write("show_ui\n", 8)) { fprintf(stderr, "Error: another instance of gsr-ui is already running, opening that one instead\n"); } else { fprintf(stderr, "Error: failed to send command to running gsr-ui instance, user will have to open the UI manually with Alt+Z\n"); |