Bug 148155 - Lefthanded mouse-option doesn't work
Summary: Lefthanded mouse-option doesn't work
Status: RESOLVED INVALID
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Installation (show other bugs)
Version: Beta 3
Hardware: x86 Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Stefan Hundhammer
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-03 22:20 UTC by Martin Schlander
Modified: 2006-04-21 12:43 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
as requested /etc/sysconfig/mouse (1.37 KB, text/plain)
2006-02-06 13:01 UTC, Martin Schlander
Details
As requested /etc/X11/xorg.conf (5.31 KB, text/plain)
2006-02-06 13:01 UTC, Martin Schlander
Details
hwinfo --mouse copied to text file (2.13 KB, text/plain)
2006-02-06 13:02 UTC, Martin Schlander
Details
/var/log/YAST2 - gzipped. (377.21 KB, application/x-gzip)
2006-02-06 13:03 UTC, Martin Schlander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schlander 2006-02-03 22:20:16 UTC
I'm lefthanded. During installation I accidentally right clicked on "Next". I was offered to revert the mouse buttons, which I accepted - but nothing changed, the mouse button setup was still "right handed".
Comment 1 Martin Schlander 2006-02-03 22:24:54 UTC
Maybe I should add that the mouse is a Logitech USB-mouse.
Comment 2 Michael Gross 2006-02-06 12:09:06 UTC
Please attach `hwinfo --mouse' and your yast logfiles, as well as /etc/sysconfig/mouse and /etc/X11/Xorg.conf.
Comment 3 Martin Schlander 2006-02-06 13:01:03 UTC
Created attachment 66519 [details]
as requested /etc/sysconfig/mouse
Comment 4 Martin Schlander 2006-02-06 13:01:48 UTC
Created attachment 66520 [details]
As requested /etc/X11/xorg.conf
Comment 5 Martin Schlander 2006-02-06 13:02:42 UTC
Created attachment 66521 [details]
hwinfo --mouse copied to text file
Comment 6 Martin Schlander 2006-02-06 13:03:45 UTC
Created attachment 66522 [details]
/var/log/YAST2 - gzipped.
Comment 7 Marcus Schaefer 2006-02-07 10:01:57 UTC
Stefan ?
Comment 8 Stefan Hundhammer 2006-02-07 10:33:45 UTC
Martin, you seem to have clicked on "Cancel" (or hit "Esc") in that dialog asking you whether or not to switch mouse buttons. Otherwise this log line would be in one of the y2logs - and I can't find it:

    Switching mouse buttons: xmodmap -e "pointer = 3 2 1"


See also yast2/qt/src/YQUI_x11.cc:

void YQUI::maybeLeftHandedUser()
{
    if ( _askedForLeftHandedMouse )
	return;

    QString message =
	_( "You clicked the right mouse button "
	   "where a left-click was expected."
	   "\n"
	   "Switch left and right mouse buttons?"
	   );
    int button = QMessageBox::question( 0,
					// Popup dialog caption
					_( "Unexpected Click" ),
					message,
					QMessageBox::Yes | QMessageBox::Default,
					QMessageBox::No,
					QMessageBox::Cancel | QMessageBox::Escape );

    if ( button == 0 )	// Yes
    {

	const char * command = 
	    _leftHandedMouse ?
	    "xmodmap -e \"pointer = 1 2 3\"":	// switch back to right-handed mouse
	    "xmodmap -e \"pointer = 3 2 1\"";	// switch to left-handed mouse

	_leftHandedMouse	 = ! _leftHandedMouse; 	// might be set repeatedly!
	_askedForLeftHandedMouse = false;	// give the user a chance to switch back
	y2milestone( "Switching mouse buttons: %s", command );
	
	system( command );
    }
    else if ( button == 1 )	// No
    {
	_askedForLeftHandedMouse = true;
    }
}


(sorry for the formatting, Bugzilla forces line wrapping)
Comment 9 Michael Gross 2006-04-18 14:20:06 UTC
*** Bug 166973 has been marked as a duplicate of this bug. ***
Comment 10 Michael Gross 2006-04-18 14:20:56 UTC
Seems to be an issue anyway at least for RC1, Stefan please have a look
Comment 11 Stefan Hundhammer 2006-04-18 14:27:34 UTC
What new information is there that warrants reopening this issue?
Comment 12 Michael Gross 2006-04-21 10:16:38 UTC
It's the same issue for a way later release and the reporter is sure not to have hit Esc. If you have more questions, please ask him.
Comment 13 Stefan Hundhammer 2006-04-21 12:43:15 UTC
This one is a different case. There is no log entry, so this "xmodmap" call never happened.