[Bug 207065] Re: Bad Compiz Bindings Bug

fermulator 207065 at bugs.launchpad.net
Wed Jul 7 05:20:06 BST 2010


Confirmed this patch on Ubuntu 10.04 using the apt-get source method:

NOTE:  This is a workaround until we get the next compizconfig package upstream into ubuntu 10.04.  The version just prior to these changes is:
{{{
$ dpkg --list | grep compizconfig
ii  compizconfig-backend-gconf            0.8.4-0ubuntu2                                  Settings library for plugins - OpenCompositi
}}}
, so anything after this should have the fix already. (i.e. if you have a version later than the above, you shouldn't have to perform these instructions.

PRECONDITIONS:
 0) As per AbtZ noted, there are some package dependencies to build the compizconfig source:
{{{
sudo apt-get install compiz-dev libcompizconfig0-dev build-essential git-core autoconf libglib2.0-dev intltool libgconf2-dev
}}}

PROCEDURE:
 1) Install the compizconfig-backend-gconf source:
{{{
sudo cp settings-backend/.libs/libgconf.* /usr/lib/compizconfig/backends/
}}}
 2) Traverse into the settings-backend sub-dir of the source:
{{{
cd compizconfig-backend-gconf-0.8.4/settings-backend/
}}}
 3) Grab and apply the patch supplied by Guido!
{{{
sudo wget http://launchpadlibrarian.net/39947363/resize-with-right-button.patch
sudo patch < resize-with-right-button.patch
}}}
 4) Copy the newly modified files to your system:
{{{
metacity --replace & (# OR: ALT+F2 --> "metacity --replace")
for file in /usr/lib/compizconfig/backends/libgconf.* ; do sudo mv $file $file.backup ; done
sudo cp settings-backend/.libs/libgconf.* /usr/lib/compizconfig/backends/
compiz --replace & (# OR: ALT+F2 --> "compiz --replace")
}}}

Now, I can flip the gconf variable:
"apps/metacity/general/resize_with_right_button" and watch
simultaneously in compizconfig-settings-manager (Window Management -->
Resize Window --> "Initiate Window Resize") change as I check/uncheck
the var in gconf-editor.

Great work Guido!

-- 
Bad Compiz Bindings Bug
https://bugs.launchpad.net/bugs/207065
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in Compiz: Fix Committed
Status in “compiz” package in Ubuntu: Triaged

Bug description:
Binary package hint: compiz

I'm currently using hardy with all updates.

1. alt+leftclick I can drag the window around.
2. alt+rightclick brings up the window menu (minimise, unmaximise, etc).
3. alt+middleclick allows me to resize the window.

I would like actions 2 and 3 switching around.

So, I installed compiz-settings-manager as I saw no other way to change this.

The bindings in ccsm looked ok.

Move Window -> Initiate Window Move : <Alt>Button1
Resize -> Bindings -> Initiate Window Resize : <Alt>Button2
General Options -> Window Menu : <Alt>Button3

So it seems that my Button2 and Button3 are switched.

Ok, so I'll just swap the bindings.

Set General Options -> Window Menu = <Alt>Button2

"The new value for the Button binding for the action Window Menu in plugin General Options conflicts with the action Initiate Window Resize of the Resize Window plugin.
Do you wish to disable Initiate Window Resize in the Resize Window plugin?"

I click "Set Window Menu anyway", and it looks like it's set. But If I go back to the main menu and then back to General Options it has set back to <Alt>Button3.

Instead I tried to simply disable the Window Menu binding as I don't use it anyway.
Again, it looks to have worked. Says disable in the box. But now strangely I cant left click... anywhere! This is why I set the topic title to bad - if I were a new user a complete reinstall would be my solution to this.

Luckily I notice alt+leftclick is now my leftclick. If I navigate to the main menu using alt+leftclick and then go back to General Options I see Window Menu is not disabled, but set to Button3 (No <Alt> modifier)?!?!

Instead of disabling it I try to set it to <Alt>Button9 as this is unused and again it looks well, but is still bound to <Alt>Button3.

I tried just changing the modifier of Window Menu and this worked, but it changed the modifier of the other bindings too (window move, window resize).

This is a very annoying bug as I've used linux for a while now and I am used to alt+rightclick resizing!

Is there any config file I can edit manually until this is fixed.

Thanks in advance,
Danny





More information about the Ubuntu-sponsors mailing list