* Bug in acceled Xpmac?
@ 2000-02-14 16:26 Nathan Ingersoll
0 siblings, 0 replies; 3+ messages in thread
From: Nathan Ingersoll @ 2000-02-14 16:26 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1001 bytes --]
It looks like the accelerated Xpmac that was released in January may have
a bug in mouse handling.
I was working on a small epplet for one button mouse users to make better
use of enlightenment. When using the version of Xpmac that shipped with
LinuxPPC 1999 Q1 it worked fine. But when using the recent accelerated
version, the mouse functionality wouldn't change.
XGetPointerMapping returns the values that were set, but it doesn't seem
to be updating the way it handles the button.
Has anyone else seen similar behavior or know of a fix? I attached the
source of my program for anyone interested in trying it out.
---------------------------------------------------------------------------
| Nathan Ingersoll | Computer Science/Mathematics |
| mailto: ningerso@d.umn.edu | University of Minnesota-Duluth |
| http://umn.edu/~ningerso | http://www.d.umn.edu |
---------------------------------------------------------------------------
[-- Attachment #2: E-UniButton.c --]
[-- Type: TEXT/PLAIN, Size: 2486 bytes --]
/*
* Copyright (C) 2000-2001, Nathan Ingersoll
*
* This software is licensed under the GNU General Public
* License. If you did not receive a copy with this software,
* it may be obtained from http://www.gnu.org/
*/
#include <stdio.h>
#include <unistd.h>
#include "epplet.h"
#define MAXBUTTON 3
Epplet_gadget close_button, label1, label2, button1;
int cur_button;
unsigned char buttons[MAXBUTTON];
char curb[2];
Display *disp;
static void close_cb(void *data);
static void in_cb(void *data, Window w);
static void out_cb(void *data, Window w);
static int delete_cb(void *data, Window win);
static void ok_cb(void *data);
static void
close_cb(void *data)
{
Epplet_unremember();
Esync();
Epplet_cleanup();
data = NULL;
exit(0);
}
static void
in_cb(void *data, Window w)
{
if (w == Epplet_get_main_window()) {
Epplet_gadget_show(close_button);
}
return;
data = NULL;
}
static void
out_cb(void *data, Window w)
{
if (w == Epplet_get_main_window()) {
Epplet_gadget_hide(close_button);
}
return;
data = NULL;
}
static int
delete_cb(void *data, Window win)
{
win = (Window) 0;
data = NULL;
return 1;
}
void
next_button(void *data)
{
int b;
XGetPointerMapping(disp, buttons, MAXBUTTON);
b = buttons[1];
buttons[1] = buttons[2];
buttons[2] = buttons[0];
buttons[0] = b;
if (XSetPointerMapping(disp, buttons, MAXBUTTON) >= 0) {
cur_button = buttons[0];
Esnprintf(curb, 2, "%d", cur_button);
Epplet_change_label(label2, curb);
}
}
int
main(int argc, char **argv)
{
atexit(Epplet_cleanup);
Epplet_Init("E-UniButton", "0.1", "Mouse Button Changer", 4,3, argc, argv, 0);
Epplet_load_config();
disp = Epplet_get_display();
XGetPointerMapping(disp, buttons, MAXBUTTON);
cur_button = buttons[0];
Esnprintf(curb, 2, "%d", cur_button);
close_button = Epplet_create_std_button("CLOSE", 2, 2, close_cb, (void *)NULL);
Epplet_gadget_show(label1 = Epplet_create_label(5, 10, "Button:", 3));
Epplet_gadget_show(label2 = Epplet_create_label(48, 10, curb, 3));
Epplet_gadget_show(button1 = Epplet_create_text_button("Next", 15, 28, 30, 12,
next_button, (void *)NULL));
Epplet_register_focus_in_handler(in_cb, NULL);
Epplet_register_focus_out_handler(out_cb, NULL);
Epplet_register_delete_event_handler(delete_cb, NULL);
Epplet_show();
Epplet_Loop();
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in acceled Xpmac?
@ 2000-02-14 17:45 Kevin_Hendricks
0 siblings, 0 replies; 3+ messages in thread
From: Kevin_Hendricks @ 2000-02-14 17:45 UTC (permalink / raw)
To: linuxppc-dev, ningerso
Hi,
Yes, thjere was a serious mouse bug problem with usb mice fixed in
Xpmac rev8 and later versions. It seems that the accelerated Xpmac
was not properly setting an accurate time for the mouse button
events.
Please try upgrading to Xpmac rev9 and try again (see
http://www.linuxppc.org/BlueG3/ for a link.
If you still have a mouse problem with Xpmac rev9, please let me
know.
Thanks,
Kevin
>It looks like the accelerated Xpmac that was released in January
may have
>a bug in mouse handling.
>
>I was working on a small epplet for one button mouse users to make
better
>use of enlightenment. When using the version of Xpmac that shipped
with
>LinuxPPC 1999 Q1 it worked fine. But when using the recent
accelerated
>version, the mouse functionality wouldn't change.
>
>XGetPointerMapping returns the values that were set, but it doesn't
seem
>to be updating the way it handles the button.
>
>Has anyone else seen similar behavior or know of a fix? I attached
the
>source of my program for anyone interested in trying it out.
>
>-------------------------------------------------------------------
--------
>| Nathan Ingersoll | Computer Science/Mathematics
|
>| mailto: ningerso@d.umn.edu | University of Minnesota-Duluth
|
>| http://umn.edu/~ningerso | http://www.d.umn.edu
|
>-------------------------------------------------------------------
--------
>
--
Kevin B. Hendricks
Associate Professor of Operations and Information Technology
Richard Ivey School of Business, University of Western Ontario
London, Ontario N6A-3K7 CANADA
khendricks@ivey.uwo.ca, (519) 661-3874, fax: 519-661-3959
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug in acceled Xpmac?
[not found] <200002141749.LAA13446@mail.d.umn.edu>
@ 2000-02-14 21:33 ` Nathan Ingersoll
0 siblings, 0 replies; 3+ messages in thread
From: Nathan Ingersoll @ 2000-02-14 21:33 UTC (permalink / raw)
To: Kevin_Hendricks; +Cc: linuxppc-dev
The problem still exists in this version. Also, this machine doesn't have
USB. It's a straight 6500/250, no upgrades or add-ons. The program just
tries to remap the first button to a different button.
The server reports making the change, but the mouse button behavior
doesn't change. I know the server is acknowledging the change, because the
program calls XGetPointerMapping to set it's initial values. Exiting the
program and starting it again reports the same values that were set at the
end of the last run.
---------------------------------------------------------------------------
| Nathan Ingersoll | Computer Science/Mathematics |
| mailto: ningerso@d.umn.edu | University of Minnesota-Duluth |
| http://umn.edu/~ningerso | http://www.d.umn.edu |
---------------------------------------------------------------------------
On Mon, 14 Feb 2000, Kevin_Hendricks wrote:
> Hi,
>
> Yes, thjere was a serious mouse bug problem with usb mice fixed in
> Xpmac rev8 and later versions. It seems that the accelerated Xpmac
> was not properly setting an accurate time for the mouse button
> events.
>
> Please try upgrading to Xpmac rev9 and try again (see
> http://www.linuxppc.org/BlueG3/ for a link.
>
> If you still have a mouse problem with Xpmac rev9, please let me
> know.
>
> Thanks,
>
> Kevin
>
> >It looks like the accelerated Xpmac that was released in January
> may have
> >a bug in mouse handling.
> >
> >I was working on a small epplet for one button mouse users to make
> better
> >use of enlightenment. When using the version of Xpmac that shipped
> with
> >LinuxPPC 1999 Q1 it worked fine. But when using the recent
> accelerated
> >version, the mouse functionality wouldn't change.
> >
> >XGetPointerMapping returns the values that were set, but it doesn't
> seem
> >to be updating the way it handles the button.
> >
> >Has anyone else seen similar behavior or know of a fix? I attached
> the
> >source of my program for anyone interested in trying it out.
> >
> >-------------------------------------------------------------------
> --------
> >| Nathan Ingersoll | Computer Science/Mathematics
> |
> >| mailto: ningerso@d.umn.edu | University of Minnesota-Duluth
> |
> >| http://umn.edu/~ningerso | http://www.d.umn.edu
> |
> >-------------------------------------------------------------------
> --------
> >
>
> --
> Kevin B. Hendricks
> Associate Professor of Operations and Information Technology
> Richard Ivey School of Business, University of Western Ontario
> London, Ontario N6A-3K7 CANADA
> khendricks@ivey.uwo.ca, (519) 661-3874, fax: 519-661-3959
>
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-14 21:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-14 17:45 Bug in acceled Xpmac? Kevin_Hendricks
[not found] <200002141749.LAA13446@mail.d.umn.edu>
2000-02-14 21:33 ` Nathan Ingersoll
-- strict thread matches above, loose matches on Subject: below --
2000-02-14 16:26 Nathan Ingersoll
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).