Skip to content

Commit

Permalink
Set GDK backend to x11 explicitly
Browse files Browse the repository at this point in the history
While this does not fix all issues when running on Wayland,
we at least get no hang when using GtkSelection and also can
get some basic drawing after the app was activated via the tray
icon. No keyboard shortcuts though.

re #27
  • Loading branch information
bk138 committed Nov 8, 2020
1 parent d7133ee commit 81c2bd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gromit-mpx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,11 @@ int main (int argc, char **argv)
{
GromitData *data;

/*
we run okay under XWayland, but not native Wayland
*/
gdk_set_allowed_backends ("x11");

gtk_init (&argc, &argv);
data = g_malloc0(sizeof (GromitData));

Expand Down

0 comments on commit 81c2bd2

Please sign in to comment.