Skip to content

Commit

Permalink
[Config] Rename global-kbindings to global-kb
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonn committed Feb 28, 2024
1 parent 1d9819f commit 2a8380f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Settings config = {
.scroll_method = 0,
.window_format = "{w} {c} {t}",
.click_to_exit = TRUE,
.global_kbindings = FALSE,
.global_kb = FALSE,
.theme = NULL,
.plugin_path = PLUGIN_PATH,
.max_history_size = 25,
Expand Down
2 changes: 1 addition & 1 deletion include/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ typedef struct {
int click_to_exit;

/** Try to take over compositor's global bindings (on Wayland) */
gboolean global_kbindings;
gboolean global_kb;

char *theme;
/** Path where plugins can be found. */
Expand Down
4 changes: 2 additions & 2 deletions mkdocs/docs/1.7.0/rofi.1.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -768,8 +768,8 @@ Click the mouse outside the **rofi** window to exit.

Default: *enabled*

`-global-kbindings`
`-no-global-kbindings`
`-global-kb`
`-no-global-kb`

(wayland) Override the compositor's keybindings, so that **rofi** can re-use them.

Expand Down
2 changes: 1 addition & 1 deletion source/wayland/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ static gboolean wayland_display_late_setup(void) {
zwlr_layer_surface_v1_add_listener(
wayland->wlr_surface, &wayland_layer_shell_surface_listener, NULL);

if (config.global_kbindings && wayland->kb_shortcuts_inhibit_manager) {
if (config.global_kb && wayland->kb_shortcuts_inhibit_manager) {
g_debug("inhibit shortcuts from compositor");
GHashTableIter iter;
wayland_seat *seat;
Expand Down
4 changes: 2 additions & 2 deletions source/xrmoptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ static XrmOption xrmOptions[] = {
"Click outside the window to exit",
CONFIG_DEFAULT},
{xrm_Boolean,
"global-kbindings",
{.snum = &config.global_kbindings},
"global-kb",
{.snum = &config.global_kb},
NULL,
"Click outside the window to exit",
CONFIG_DEFAULT},
Expand Down

0 comments on commit 2a8380f

Please sign in to comment.