Skip to content

Commit

Permalink
Only enable global hotkeys if not running on wayland (#18)
Browse files Browse the repository at this point in the history
This is a temporal solution to avoid crashes on Wayland. See #19
  • Loading branch information
CodeWithMa authored Mar 5, 2024
1 parent 7456bfe commit 1008242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urn-gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static void urn_app_window_init(UrnAppWindow *win) {
G_CALLBACK(urn_app_window_resize), win
);

if (win->global_hotkeys) {
if (win->global_hotkeys && getenv("WAYLAND_DISPLAY") == NULL) {
keybinder_init();
keybinder_bind(
g_settings_get_string(settings, "keybind-start-split"),
Expand Down

0 comments on commit 1008242

Please sign in to comment.