diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-10-31 18:53:13 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-10-31 18:53:13 +0100 |
commit | 8e99189040dca3c0d34e84d5492763f9408d60c2 (patch) | |
tree | ff742bd29f27d7f755c3de278bd23e7eabac46e1 /src | |
parent | be1e3bad3fe5ce3eca7c0670ed98dada2ec1bd86 (diff) |
Wayland hotkey info
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 4e0d304..9051e80 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2294,7 +2294,10 @@ static GtkWidget* create_replay_page(GtkApplication *app, GtkStack *stack) { gtk_widget_set_margin(GTK_WIDGET(grid), 10, 10, 10, 10); GtkWidget *hotkey_active_label = NULL; - if(!wayland) { + if(wayland) { + gtk_grid_attach(grid, gtk_label_new("Wayland compositors don't support global hotkeys yet, use X11"), 0, row++, 5, 1); + gtk_grid_attach(grid, gtk_separator_new(GTK_ORIENTATION_HORIZONTAL), 0, row++, 5, 1); + } else { hotkey_active_label = gtk_label_new("Press a key combination to set a new hotkey or Esc to cancel"); gtk_grid_attach(grid, hotkey_active_label, 0, row++, 5, 1); @@ -2405,7 +2408,10 @@ static GtkWidget* create_recording_page(GtkApplication *app, GtkStack *stack) { gtk_widget_set_margin(GTK_WIDGET(grid), 10, 10, 10, 10); GtkWidget *hotkey_active_label = NULL; - if(!wayland) { + if(wayland) { + gtk_grid_attach(grid, gtk_label_new("Wayland compositors don't support global hotkeys yet, use X11"), 0, row++, 3, 1); + gtk_grid_attach(grid, gtk_separator_new(GTK_ORIENTATION_HORIZONTAL), 0, row++, 3, 1); + } else { hotkey_active_label = gtk_label_new("Press a key combination to set a new hotkey or Esc to cancel"); gtk_grid_attach(grid, hotkey_active_label, 0, row++, 3, 1); @@ -2482,7 +2488,10 @@ static GtkWidget* create_streaming_page(GtkApplication *app, GtkStack *stack) { gtk_widget_set_margin(GTK_WIDGET(grid), 10, 10, 10, 10); GtkWidget *hotkey_active_label = NULL; - if(!wayland) { + if(wayland) { + gtk_grid_attach(grid, gtk_label_new("Wayland compositors don't support global hotkeys yet, use X11"), 0, row++, 3, 1); + gtk_grid_attach(grid, gtk_separator_new(GTK_ORIENTATION_HORIZONTAL), 0, row++, 3, 1); + } else { hotkey_active_label = gtk_label_new("Press a key combination to set a new hotkey or Esc to cancel"); gtk_grid_attach(grid, hotkey_active_label, 0, row++, 3, 1); |