Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 23004 Details for
Bug 36790
gpm synps2 4-way-button does not work when four_way_button_is_mouse is FALSE in /etc/gpm/gpm-syn.conf
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
second version of patch - correct handling of 4button+move
gpm-4waybutton (text/plain), 1.59 KB, created by
Pavel Semerad
on 2004-01-02 03:01:09 UTC
(
hide
)
Description:
second version of patch - correct handling of 4button+move
Filename:
MIME Type:
Creator:
Pavel Semerad
Created:
2004-01-02 03:01:09 UTC
Size:
1.59 KB
patch
obsolete
>--- ./src/synaptics.c.ps 2002-12-24 23:57:16.000000000 +0100 >+++ ./src/synaptics.c 2004-01-02 11:49:08.000000000 +0100 >@@ -830,9 +830,9 @@ static int last_corner_action > static int last_finger_action = GPM_B_NOT_SET; > static int last_normal_button_actions[6] = > {GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; >-static int last_stick_button_actions[3] = >+static int last_stick_button_actions[8] = > {GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; >-static int last_4_way_button_actions[4] = >+static int last_4_way_button_actions[8] = > {GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET,GPM_B_NOT_SET}; > > /* toss status information */ >@@ -1483,7 +1483,22 @@ static int syn_ps2_process_extended_pack > } > > /* Multiplexing with the stick (guest) device. */ >- state->buttons |= last_4_way_buttons | last_stick_buttons; >+ if (stick_pressure_enabled) { >+ tmp_buttons = report->pressure == 0 ? GPM_B_NONE : last_stick_buttons; >+ if (tmp_buttons || last_stick_buttons) { >+ tp_process_repeating_actions(state,tmp_buttons,last_stick_buttons, >+ &last_stick_button_actions[0],stick_actions); >+ last_stick_buttons = tmp_buttons; >+ } >+ } >+ if (four_way_button_enabled) { >+ tmp_buttons = report->pressure == 0 ? GPM_B_NONE : last_4_way_buttons; >+ if (tmp_buttons || last_4_way_buttons) { >+ tp_process_repeating_actions(state,tmp_buttons,last_4_way_buttons, >+ &last_4_way_button_actions[0],four_button_actions); >+ last_4_way_buttons = tmp_buttons; >+ } >+ } > > return 0; > }
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 36790
: 23004