Fix long delay with different window managers

Closes #6
https://github.com/mate-desktop/mate-netbook/issues/6