Skip to content

Commit 2606370

Browse files
committed
Make sure outgoing window managers and compositors are killed
1 parent 49a226c commit 2606370

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mate-tweak

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,19 @@ class MateTweak:
413413
# FIXME! Don't assume 'metacity' is 1
414414
self.set_enum('org.gnome.metacity.theme', None, 'type', 1)
415415

416-
# If switching away from a Compiz or picom composited window manager kill the compositor
416+
# If switching away from a Compiz or Marco window manager kill the window manager
417417
if 'compiz' in self.current_wm:
418418
self.kill_process('compiz')
419-
elif ('xrender' in self.current_wm) or ('glx' in self.current_wm) or ('xr_glx_hybrid' in self.current_wm):
419+
elif 'marco' in self.current_wm:
420+
self.kill_process('marco')
421+
422+
# If switching away from a picom/compton compositor then kill the compositor
423+
if ('xrender' in self.current_wm) or ('glx' in self.current_wm) or ('xr_glx_hybrid' in self.current_wm) or ('compton' in self.current_wm):
420424
self.kill_process('compton')
421425
self.kill_process('picom')
422426

423427
if ('xrender' in new_wm) or ('glx' in new_wm) or ('xr_glx_hybrid' in new_wm) or ('no-composite' in new_wm):
428+
# Disable Marco's compositor when using a 3rd party compositor
424429
self.set_bool('org.mate.Marco.general', None, 'compositing-manager', False)
425430
subprocess.Popen([new_wm], stdout=DEVNULL, stderr=DEVNULL)
426431
else:

0 commit comments

Comments
 (0)