I found this where a method for issuing these Gnome Shell commands is given.
I tested it with the following command from a terminal:
Code:
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.lookingGlass.toggle();' && sleep 5 && gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.lookingGlass.toggle();'
Which correctly enables and then disables the looking glass from the terminal, so the following should probably work (put it in ~/.config/autostart/mutterfix.desktop).
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=true
Exec=gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Meta.disable_unredirect_for_screen(global.screen);'
Name=Mutter Tear Fix
P.s. I first tested this with Terminal=false but then it doesn't work, presumably because there is no information about the dbus session and with it it does (there is no visible window so I do not see any problems with this). Furthermore I'm not sure how to test this tearing fix problem properly so I tested with 'Main.notify("Hello world");' which worked when launching the DE session.