Skip to content

Commit

Permalink
Merge pull request #1169 from Maetveis/fix/defer_wnck_wayland
Browse files Browse the repository at this point in the history
fix: failure to launch with GDK_BACKEND=wayland
  • Loading branch information
friday committed Dec 27, 2022
2 parents cd82665 + 6a3c73a commit 925cda2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ulauncher/utils/wm.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import logging
from gi.repository import Gdk, GdkX11, Gio, Wnck
from gi.repository import Gdk, GdkX11, Gio
from ulauncher.utils.environment import IS_X11


logger = logging.getLogger()
wnck_screen = Wnck.Screen.get_default()
if IS_X11:
from gi.repository import Wnck

wnck_screen = Wnck.Screen.get_default()


def get_monitor(use_mouse_position=False):
Expand Down

0 comments on commit 925cda2

Please sign in to comment.