Views:
49β
Votes: 2β
Tags:
unity
python
xorg
compiz
window-manager
Link:
π See Original Question on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/1348326
Title:
How to tell Compiz not to manage/manipulate a specifc Window ID
ID:
/2021/06/26/How-to-tell-Compiz-not-to-manage_manipulate-a-specifc-Window-ID
Created:
June 26, 2021
Edited: June 27, 2021
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
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?