Skip to content

Commit 1596254

Browse files
committed
Enable clockworks to build for wayland
1 parent 70a24b2 commit 1596254

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

budgie-clockworks/budgie_clockworks.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/usr/bin/env python3
22
import gi
33
gi.require_version("Gtk", "3.0")
4-
gi.require_version('Budgie', '1.0')
4+
gi.require_version('Libxfce4windowing', '0.0')
5+
from gi.repository import Libxfce4windowing
6+
if Libxfce4windowing.windowing_get() == Libxfce4windowing.Windowing.WAYLAND:
7+
gi.require_version('Budgie', '2.0')
8+
else:
9+
gi.require_version('Budgie', '1.0')
510
from gi.repository import Gdk, Gtk, GObject, GdkPixbuf, Budgie, Gio, GLib
611
import os
712
import time

meson.build

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ if for_wayland == false and (build_recommended == true or build_countdown == tru
153153
endif
154154

155155
build_clockworks = get_option('build-clockworks')
156-
if for_wayland == false and (build_recommended == true or build_clockworks == true)
156+
if build_recommended == true or build_clockworks == true
157157
subdir('budgie-clockworks')
158158
endif
159159

0 commit comments

Comments
 (0)