Skip to content

Commit

Permalink
fix: use gtk_layer_set_keyboard_mode()
Browse files Browse the repository at this point in the history
`gtk_layer_set_keyboard_interactivity()` is deprecated and was removed
in gtk4-layer-shell.
Note that this bumps version requirement to 0.6.0
  • Loading branch information
alebastr committed Jan 16, 2024
1 parent 50ed2a8 commit 76cbf3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if libsndio.found()
endif
endif

gtk_layer_shell = dependency('gtk-layer-shell-0', version: ['>=0.5.0'],
gtk_layer_shell = dependency('gtk-layer-shell-0', version: ['>=0.6.0'],
default_options: ['introspection=false', 'vapi=false'],
fallback: ['gtk-layer-shell', 'gtk_layer_shell'])
systemd = dependency('systemd', required: get_option('systemd'))
Expand Down
2 changes: 1 addition & 1 deletion src/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct GLSSurfaceImpl : public BarSurface, public sigc::trackable {
output_name_ = output.name;
// this has to be executed before GtkWindow.realize
gtk_layer_init_for_window(window_.gobj());
gtk_layer_set_keyboard_interactivity(window.gobj(), FALSE);
gtk_layer_set_keyboard_mode(window.gobj(), GTK_LAYER_SHELL_KEYBOARD_MODE_NONE);
gtk_layer_set_monitor(window_.gobj(), output.monitor->gobj());
gtk_layer_set_namespace(window_.gobj(), "waybar");

Expand Down

0 comments on commit 76cbf3a

Please sign in to comment.