I have a window I move from one monitor to another in steps. The Compiz "Place Window" plug-in intercepts the movements and initially stops it from moving to the next monitor. Then it jumps to the next monitor and freezes. Then it continues the last few steps.
To override the "place window" plugin python issues some CLI commands. Note: $
and extra lines added for readability:
$ gsettings get org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
['core', 'composite', 'opengl', 'regex', 'mousepoll', 'animation',
'wall', 'vpswitch', 'session', 'snap', 'workarounds',
'compiztoolbox', 'imgpng', 'resize', 'move', 'place', 'expo', 'fade',
'ezoom', 'scale', 'switcher', 'unityshell']
If 'place'
appears between the 'move'
and 'expo'
plug-ins, remove it using:
$ gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
"['core', 'composite', 'opengl', 'regex', 'mousepoll', 'animation',
'wall', 'vpswitch', 'session', 'snap', 'workarounds',
'compiztoolbox', 'imgpng', 'resize', 'move', 'expo', 'fade',
'ezoom', 'scale', 'switcher', 'unityshell']"
Then move window between two monitors gradually in steps. When done issue gsettings
command again:
$ gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
"['core', 'composite', 'opengl', 'regex', 'mousepoll', 'animation',
'wall', 'vpswitch', 'session', 'snap', 'workarounds',
'compiztoolbox', 'imgpng', 'resize', 'move', 'place', 'expo', 'fade',
'ezoom', 'scale', 'switcher', 'unityshell']"
In python-xlib
is there a way of doing it by setting a Window state or property?