Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 297167 Details for
Bug 436454
RFE patch to swap rdesktop mouse buttons
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Adapted patch to permit the use of -l to swap mouse buttions
rdesktop-mouse-buttons.patch (text/plain), 2.04 KB, created by
Fred New
on 2008-03-07 11:00:14 UTC
(
hide
)
Description:
Adapted patch to permit the use of -l to swap mouse buttions
Filename:
MIME Type:
Creator:
Fred New
Created:
2008-03-07 11:00:14 UTC
Size:
2.04 KB
patch
obsolete
>diff -uNr rdesktop-1.5.0/rdesktop.c rdesktop-1.5.0a/rdesktop.c >--- rdesktop-1.5.0/rdesktop.c 2006-08-07 14:45:43.000000000 +0300 >+++ rdesktop-1.5.0a/rdesktop.c 2008-03-07 11:36:41.000000000 +0200 >@@ -102,6 +102,7 @@ > char g_redirect_username[64]; > char g_redirect_cookie[128]; > uint32 g_redirect_flags = 0; >+BOOL g_lefthanded = False; > > #ifdef WITH_RDPSND > BOOL g_rdpsnd = False; >@@ -153,6 +154,7 @@ > fprintf(stderr, " -e: disable encryption (French TS)\n"); > fprintf(stderr, " -E: disable encryption from client to server\n"); > fprintf(stderr, " -m: do not send motion events\n"); >+ fprintf(stderr, " -l: left handed mouse\n"); > fprintf(stderr, " -C: use private colour map\n"); > fprintf(stderr, " -D: hide window manager decorations\n"); > fprintf(stderr, " -K: keep window manager key bindings\n"); >@@ -427,7 +429,7 @@ > #endif > > while ((c = getopt(argc, argv, >- VNCOPT "Au:L:d:s:c:p:n:k:g:fbBeEmzCDKS:T:NX:a:x:Pr:045h?")) != -1) >+ VNCOPT "Au:L:d:s:c:p:n:k:g:fbBeEmlzCDKS:T:NX:a:x:Pr:045h?")) != -1) > { > switch (c) > { >@@ -565,6 +567,10 @@ > g_sendmotion = False; > break; > >+ case 'l': >+ g_lefthanded = True; >+ break; >+ > case 'C': > g_owncolmap = True; > break; >diff -uNr rdesktop-1.5.0/xkeymap.c rdesktop-1.5.0a/xkeymap.c >--- rdesktop-1.5.0/xkeymap.c 2006-08-07 14:45:44.000000000 +0300 >+++ rdesktop-1.5.0a/xkeymap.c 2008-03-07 11:36:41.000000000 +0200 >@@ -49,6 +49,7 @@ > extern BOOL g_enable_compose; > extern BOOL g_use_rdp5; > extern BOOL g_numlock_sync; >+extern BOOL g_lefthanded; > > static BOOL keymap_loaded; > static key_translation *keymap[KEYMAP_SIZE]; >@@ -735,11 +736,13 @@ > switch (button) > { > case Button1: /* left */ >- return MOUSE_FLAG_BUTTON1; >+ return g_lefthanded >+ ? MOUSE_FLAG_BUTTON2 : MOUSE_FLAG_BUTTON1; > case Button2: /* middle */ > return MOUSE_FLAG_BUTTON3; > case Button3: /* right */ >- return MOUSE_FLAG_BUTTON2; >+ return g_lefthanded >+ ? MOUSE_FLAG_BUTTON1 : MOUSE_FLAG_BUTTON2; > case Button4: /* wheel up */ > return MOUSE_FLAG_BUTTON4; > case Button5: /* wheel down */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 436454
:
297167
|
305926
|
305931