Skip to content

Commit

Permalink
Lack of GDK_BACKEND does not mean wayland is inactive when XDG_SESSIO…
Browse files Browse the repository at this point in the history
…N_TYPE is
  • Loading branch information
luispabon authored and gornostal committed Apr 7, 2020
1 parent b2c42ad commit b8cadd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ulauncher/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def is_wayland_compatibility_on():
"""
In this mode user won't be able to set app hotkey via preferences
Set hotkey in OS Settings > Devices > Keyboard > Add Hotkey > Command: ulauncher-toggle
GDK_BACKEND is typically unset in Wayland sessions to allow GTK apps to self-select
"""
return is_wayland() and gdk_backend().lower() == 'wayland'
return is_wayland() and gdk_backend().lower() in ('wayland', '')


def gdk_backend():
Expand Down

0 comments on commit b8cadd4

Please sign in to comment.