File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -413,14 +413,19 @@ class MateTweak:
413
413
# FIXME! Don't assume 'metacity' is 1
414
414
self .set_enum ('org.gnome.metacity.theme' , None , 'type' , 1 )
415
415
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
417
417
if 'compiz' in self .current_wm :
418
418
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 ):
420
424
self .kill_process ('compton' )
421
425
self .kill_process ('picom' )
422
426
423
427
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
424
429
self .set_bool ('org.mate.Marco.general' , None , 'compositing-manager' , False )
425
430
subprocess .Popen ([new_wm ], stdout = DEVNULL , stderr = DEVNULL )
426
431
else :
You can’t perform that action at this time.
0 commit comments