Don't exit on no-composote manager, just warn
This commit is contained in:
parent
ddb1e7b804
commit
c750ace2f0
|
@ -31,8 +31,10 @@ class TestWin(Gtk.Window):
|
||||||
self.screen = self.get_screen()
|
self.screen = self.get_screen()
|
||||||
self.visual = self.screen.get_rgba_visual()
|
self.visual = self.screen.get_rgba_visual()
|
||||||
if self.visual is None or not self.screen.is_composited():
|
if self.visual is None or not self.screen.is_composited():
|
||||||
print("ERROR: You do not appear to be running a composite manager")
|
print(
|
||||||
sys.exit(1)
|
"WARNING: You do not appear to be running a composite manager"
|
||||||
|
", transparency not available"
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
self.set_visual(self.visual)
|
self.set_visual(self.visual)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue