When I switched from windows to linux this was the biggest annoyance I encountered. I couldn’t close a window by clicking on the menu icon in the upper left corner. I tried to live with it for a while, tried some workarounds, but I didn’t like it. After lots of digging, I finally found a patch for compiz/gtk-window-decorator. The patch was never accepted though, and I doubt it will ever make it into any of the major distros, so here is what you do if you simply can’t live without it and want to waste spend some time learning more about linux.
UPDATE: I just tried this under Ubuntu 9.10 with compiz 0.8.4 and it works flawlessly.
- create a new directory (let’s call it mycompiz) and cd to it
mkdir mycompiz
cd mycompiz - install programs needed for building the package
sudo apt-get install fakeroot build-essential \
dpkg-dev devscripts - download compiz-gnome sources
apt-get source compiz-gnome
cd compiz-0.8.2 - get build dependencies for it
sudo apt-get build-dep compiz-gnome compiz
- download the patch to the current dir.
- install the patch program
sudo apt-get install patch
- apply the patch
patch -p1 <double_click_to_close.diff
- build the package
dpkg-buildpackage -rfakeroot -uc -b
This might take a while… Your deb files will be in mycompiz. - Remove the currently installed compiz-gnome and compiz packages
sudo apt-get remove compiz-gnome compiz
- install your version instead
cd ..
sudo dpkg -i compiz-gnome_0.8.2-0ubuntu8.1_i386.deb
sudo dpkg -i compiz_0.8.2-0ubuntu8.1_all.deb - tell your package manager not to apply updates to it in the future
sudo aptitude hold compiz-gnome
- open gconf-editor, go to apps, then gwd, add a key called “close_on_double_click_menu”, set type to boolean and value to true
- restart X and you’re done!
by http://linuxandwhatever.wordpress.com/
Tidak ada komentar:
Posting Komentar