You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a strange issue that I can't really figure out how to debug. Admittedly, this is probably (by definition) a zink bug, but I'm not sure where to begin debugging it. I'm also going to report this to mesa.
Using this code:
Minimal reproducible code
#include<gtk/gtk.h>#include"gtk4-layer-shell.h"// modified from gtk4-layer-shell/examples/simple-example.cstaticvoidactivate (GtkApplication*app, void*_data)
{
(void)_data;
// Create a normal GTK window however you likeGtkWindow*gtk_window=GTK_WINDOW (gtk_application_window_new (app));
// Before the window is first realized, set it up to be a layer surfacegtk_layer_init_for_window (gtk_window);
gtk_layer_set_layer (gtk_window, GTK_LAYER_SHELL_LAYER_TOP);
gtk_layer_set_keyboard_mode (gtk_window, GTK_LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND); // NONE is default// Set up a widgetGtkWidget*entry=gtk_entry_new();
gtk_window_set_child (gtk_window, entry);
gtk_window_present (gtk_window);
gtk_window_set_default_size(gtk_window, 200, 200);
}
intmain (intargc, char**argv)
{
GtkApplication*app=gtk_application_new ("com.github.wmww.gtk4-layer-shell.example", G_APPLICATION_DEFAULT_FLAGS);
constchar*accels[] = {"Escape", NULL};
gtk_application_set_accels_for_action(app, "window.close", accels);
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
intstatus=g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
returnstatus;
}
and MESA_LOADER_DRIVER_OVERRIDE=zink, keyboard focus does not work properly. With either MODE_ON_DEMAND or MODE_EXCLUSIVE. I tested this on sway master as of today. My normal driver is radeonsi.
If you were using a released version of this library it had a nasty use-after-free bug that could have been causing lots of weird problems (see #27 for details). I've just released v1.0.2 which includes a fix. Please re-open if this crash persists on v1.0.2, thanks.
I'm running into a strange issue that I can't really figure out how to debug. Admittedly, this is probably (by definition) a zink bug, but I'm not sure where to begin debugging it. I'm also going to report this to mesa.
Using this code:
Minimal reproducible code
and
MESA_LOADER_DRIVER_OVERRIDE=zink
, keyboard focus does not work properly. With eitherMODE_ON_DEMAND
orMODE_EXCLUSIVE
. I tested this on sway master as of today. My normal driver is radeonsi.Some logs:
WAYLAND_DEBUG=1 MESA_LOADER_DRIVER_OVERRIDE=zink ./reproduce
: https://0x0.st/HtSw.logWAYLAND_DEBUG=1 ./reproduce
: https://0x0.st/HtSx.logThe text was updated successfully, but these errors were encountered: