LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2003, 07:46 AM   #1
Lindquist
LQ Newbie
 
Registered: Nov 2003
Location: Denmark
Distribution: CRUX
Posts: 3

Rep: Reputation: 0
firebird explorermouse sidebutton trouble


Hi all.
This is my first post here on linuxquestions.org...

I've just installed the new Firebird browser from Mozilla.org. Until now I've been using the old Mozilla, and everything has been working perfectly.

As indicated in the topic, I have a Microsoft 5button mouse.
It's correctly setup. And I'm using imwheel to map the sidebuttons for back/forward in history.

The section in my .imwheelrc that does this magic is this:

-------------------
".*Mozilla.*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
--------------------------------

this way - i'd figure - everything mozilla related should get the correct keyevents from my sidebuttons... And in the old mozilla it works just the way i want it to...

But now with the the firebird it doesnt.

so i tried adding a new section:

----------------------
".*Firebird.*"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
----------------------------------

since the hotkeys are the same my best guess would be that this should work, but It doesnt.

i've tried to 'xprop' the firebird window, and it says that the WM_CLASS string is "MozillaFirebird-bin" so this is correct... Right?

My logic also tells me that the ".*Mozilla.*" section really should have done the job....

Anyone have any ideas on how to make this work?

Thanx
 
Old 12-14-2003, 06:00 PM   #2
seancdaug
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
As far as I understand it, the problem isn't with Firebird, per se, as with a peculiar quirk of GTK2, which Firebird uses for it's UI. Apparently, GTK2 programs don't register their class properly with the server (or something... I'm no expert in the inner workings of X, this is just what others have told me), and as a result, none of what you've put in your .imwheelrc is going to affect any GTK2 program, Firebird included.

The solution, which works fine for me, at least, is to include your instructions under the header "(null)". This will cause Firebird to get the hint, and your side buttons should work properly. Like so:

-------------------
"(null)"
None, Left, Alt_L|Left
None, Right, Alt_L|Right
--------------------------------

Hope this helps!
 
Old 12-14-2003, 10:18 PM   #3
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Yay! I've been trying to work this out for ages.

I've got the following in ~/.imwheelrc:

"(null)"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

".*"
None, Up, Alt_L|Left
None, Down, Alt_L|Right

and it works for Konqueror and MozillaFirebird.

Cheers!!

Dave
 
Old 12-15-2003, 07:46 AM   #4
Lindquist
LQ Newbie
 
Registered: Nov 2003
Location: Denmark
Distribution: CRUX
Posts: 3

Original Poster
Rep: Reputation: 0
Yes... Finally!
It worked...
The only problem i see in this is that ALL programs get these keyevents.. Right?

If the problem really lies with GTK2 "overriding" the imwheel events, why dont the firebird team just define button 6 & 7 as back and forward?

I tried looking in the source, but I could'nt even find the file with mousebindings...
Well, I dont even know if this is possible...

Anyways.. Thanx a lot!
 
Old 12-15-2003, 05:32 PM   #5
seancdaug
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
Well, every GTK2 program receives the keyevents, yes. I don't think (though I'm not 100% sure) that any programs which properly register their class handle would be affected. In other words, the "(null)" class isn't going to have any affect on anything other than GTK2 programs. You'd need to have the traditional ".*" to affect all other programs.

From my understanding, it's a communication problem: GTK2 programs don't properly identify themselves to the server. It's not a problem with GTK2 "overriding" imwheel; it's an issue of imwheel not knowing how to communicate with GTK2 at all, short of the inelegant fix of the "(null)" trick.

As for why the Firebird team don't designate buttons 6 and 7 as back and forward... I dunno, really. The only thing I can think of is that it might create some "out-of-the-box" problems with the scroll wheel, until you run xmodmap and sort things out. But there may be deeper problems with X's mouse management or something... again, I'm hardly an expert.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firebird tiredoflogins Red Hat 2 01-10-2005 02:12 AM
Anybody here like the Firebird? fatman General 29 11-02-2003 10:37 AM
A slightly different mouse sidebutton problem justin19fl Linux - Hardware 0 07-30-2003 10:04 PM
trouble ahead, trouble behind....trouble with mplayer Goonie Linux - Software 3 07-02-2003 02:29 AM
Yes. It's another sidebutton post Melton Linux - Hardware 8 04-27-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration