Comment 18 for bug 684019

Revision history for this message
otakuj462 (otakuj462) wrote :

I have applied the patch, from https://bugs.launchpad.net/ubuntu/+source/compiz-fusion-plugins-main/+bug/684019/comments/7 to the upstream put plugin, and it does seem to fix the bug. As this appears to be the only way to get "Put Window at Workspace X" functionality working in Ubuntu, I have written instructions to help others accomplish this.

First get your build requirements:

1. sudo apt-get build-essential
2. sudo apt-get build-dep compiz
3. sudo apt-get install compiz-dev git

Then get the put plugin source:

4. git clone git://anongit.compiz-fusion.org/compiz/plugins/put
5. cd put

Then get and apply the patch:

6. wget https://bugs.launchpad.net/ubuntu/+source/compiz-fusion-plugins-main/+bug/684019/+attachment/2187914/+files/0001-bug-fix-overwrite-viewport-option-parameter-instead-.patch
7. git apply 0001-bug-fix-overwrite-viewport-option-parameter-instead-.patch

Then build and install it:

6. mkdir build
7. cd build
8. cmake .. -DCOMPIZ_PLUGIN_INSTALL_TYPE="compiz" -DCMAKE_INSTALL_PREFIX=/usr/lib/compiz/
9. make
10. sudo make install

Note that in step 8, you will be potentially be installing the put plugin on top of the one installed from the debian package. It might be possible to install it locally instead, but I didn't try this. It would be great if others could try this and let me know how it works, because it is potentially a cleaner solution. To install locally, you would likely do the following in steps 8-10:

8. cmake ..
9. make
10. make install

Most of the information here came from the following resource: http://wiki.compiz.org/C%2B%2BCompiling

I think this patch should get merged upstream. Are there any barriers to this?