fix: use `gtk_layer_set_keyboard_mode()`
`gtk_layer_set_keyboard_interactivity()` is deprecated and was removed in gtk4-layer-shell. Note that this bumps version requirement to 0.6.0pull/2836/head
parent
9a21884272
commit
3cb587945a
|
@ -120,7 +120,7 @@ if libsndio.found()
|
||||||
endif
|
endif
|
||||||
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'],
|
default_options: ['introspection=false', 'vapi=false'],
|
||||||
fallback: ['gtk-layer-shell', 'gtk_layer_shell'])
|
fallback: ['gtk-layer-shell', 'gtk_layer_shell'])
|
||||||
systemd = dependency('systemd', required: get_option('systemd'))
|
systemd = dependency('systemd', required: get_option('systemd'))
|
||||||
|
|
|
@ -131,7 +131,7 @@ struct GLSSurfaceImpl : public BarSurface, public sigc::trackable {
|
||||||
output_name_ = output.name;
|
output_name_ = output.name;
|
||||||
// this has to be executed before GtkWindow.realize
|
// this has to be executed before GtkWindow.realize
|
||||||
gtk_layer_init_for_window(window_.gobj());
|
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_monitor(window_.gobj(), output.monitor->gobj());
|
||||||
gtk_layer_set_namespace(window_.gobj(), "waybar");
|
gtk_layer_set_namespace(window_.gobj(), "waybar");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue