From d931484d98e16a74ee3fe8ded9be1d492914475e Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 6 Feb 2025 18:15:11 +0100 Subject: [PATCH] tweaks --- config.h | 3 ++- rosenrot4.c | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config.h b/config.h index 282e666..1a1f3c5 100644 --- a/config.h +++ b/config.h @@ -53,6 +53,7 @@ You could also look into commit afe93518a for an approach using stand-in code. #define SFT 1 << 0 #define CTRL 1 << 2 #define ALT 1 << 3 +#define BACKTICK 96 /* Misc helpers */ #define ABORT_REQUEST_ON_CURRENT_TAB NULL @@ -128,7 +129,7 @@ static struct { { CTRL | SFT, KEY(Page_Down), next_tab }, // working hypothesis: Page_UP vs KP_Page_Up might depend on whether the user has a numpad { CTRL, KEY(Tab), next_tab }, - { CTRL, KEY(b), prev_tab }, + { CTRL, BACKTICK, prev_tab }, { CTRL, KEY(t), new_tab }, { CTRL, KEY(w), close_tab }, diff --git a/rosenrot4.c b/rosenrot4.c index 0b2f1f6..6be5d40 100644 --- a/rosenrot4.c +++ b/rosenrot4.c @@ -428,7 +428,7 @@ static int handle_signal_keypress(void* self, int keyval, int keycode, GdkModifierType state, void* controller) { - if (0) { + if (1) { printf("New keypress\n"); printf("Keypress state: %d\n", state); printf("Keypress value: %d\n", keyval); @@ -486,9 +486,9 @@ int main(int argc, char** argv) notebook_create_new_tab(notebook, first_uri); // Show to user - // The first two commands are redundant with notebook_create_new_tab - // gtk_window_present(window); - // gtk_widget_set_visible(GTK_WIDGET(window), 1); + // The first two commands might be redundant with notebook_create_new_tab + gtk_window_present(window); + gtk_widget_set_visible(GTK_WIDGET(window), 1); if (argc != 0) gtk_widget_set_visible(GTK_WIDGET(bar.widget), 0); // Deal with more tabs, if any