@maeks84, the main downside is that you're killing the entire caja process just to fix a background rendering issue, so if you have any ongoing file transfers or anything like that, they will also be killed.
Here's what I've used in the past to correct some annoyances when changing screen settings:
gsettings set org.mate.background show-desktop-icons false
sleep 1
gsettings set org.mate.background show-desktop-icons true
In fact, the mate-settings-daemon
does exactly the same when changing back and forth between HiDPI scaling modes:
- https://github.com/mate-desktop/mate-settings-daemon/blob/master/plugins/xsettings/msd-xsettings-manager.c#L570-L580
- https://github.com/mate-desktop/mate-settings-daemon/blame/master/plugins/xsettings/msd-xsettings-manager.c#L511-L518
It's an ugly, but currently necessary, hack...