[Config] Rename global-kbindings to global-kb

This commit is contained in:
lbonn 2024-02-28 12:02:53 +01:00
parent 1d9819fe50
commit 2a8380f260
5 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -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. */

View file

@ -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.

View file

@ -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;

View file

@ -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},