1
0
Fork 0

Don't exit on no-composote manager, just warn

This commit is contained in:
Jakob 2019-09-07 00:43:58 +02:00
parent ddb1e7b804
commit c750ace2f0
1 changed files with 4 additions and 2 deletions

View File

@ -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)