From 8e99189040dca3c0d34e84d5492763f9408d60c2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 31 Oct 2023 18:53:13 +0100 Subject: Wayland hotkey info --- com.dec05eba.gpu_screen_recorder.appdata.xml | 5 +++++ src/main.cpp | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/com.dec05eba.gpu_screen_recorder.appdata.xml b/com.dec05eba.gpu_screen_recorder.appdata.xml index b27a8cd..801f47d 100644 --- a/com.dec05eba.gpu_screen_recorder.appdata.xml +++ b/com.dec05eba.gpu_screen_recorder.appdata.xml @@ -52,6 +52,11 @@ + + +

Intel: attempt to fix glitched graphics on some intel gpus. I dont know, ask intel why they are weird

+
+

AMD/Intel wayland: fix broken colors when system uses 10-bit

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); -- cgit v1.2.3