summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Aurele La France <tsi@ualberta.edu>2002-01-21 23:05:40 +0000
committerMarc Aurele La France <tsi@ualberta.edu>2002-01-21 23:05:40 +0000
commit5ee5075a5872f30c65b1213d39f4c6677b522bd5 (patch)
treeba5cc7d149971fb7fbd4fab8a635030f686b73cf
parentea9ef90a33e04d8b244a3c127299f3c4f048243f (diff)
Resync with 4.2.0Domain-branch
-rw-r--r--hw/kdrive/src/kinput.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c
index f778298b9..2549df996 100644
--- a/hw/kdrive/src/kinput.c
+++ b/hw/kdrive/src/kinput.c
@@ -21,7 +21,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.21 2001/09/29 04:16:38 keithp Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/kdrive/kinput.c,v 1.22 2001/10/12 06:33:07 keithp Exp $ */
#include "kdrive.h"
#include "inputstr.h"
@@ -1085,16 +1085,16 @@ KdCheckSpecialKeys(xEvent *xE)
/*
* Check for buttons 1, 2 and 3 on the iPAQ
*/
- if (sym == XK_Pointer_Button1) {
- KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_1, 0, 0);
+ if (sym == XK_Pointer_Button1 && kdMouseInfo) {
+ KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_1, 0, 0);
return;
}
- if (sym == XK_Pointer_Button2) {
- KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_2, 0, 0);
+ if (sym == XK_Pointer_Button2 && kdMouseInfo) {
+ KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_2, 0, 0);
return;
}
- if (sym == XK_Pointer_Button3) {
- KdEnqueueMouseEvent(KD_MOUSE_DELTA | KD_BUTTON_3, 0, 0);
+ if (sym == XK_Pointer_Button3 && kdMouseInfo) {
+ KdEnqueueMouseEvent(kdMouseInfo, KD_MOUSE_DELTA | KD_BUTTON_3, 0, 0);
return;
}
#endif