mouse event handling



I am having to make this tweak in screen.c
for 3 years since I keep playing with mouse stuff,
otherwise button down in one panel and button up in
other panel doesn't work.

@@ -2296,11 +2411,22 @@
     }

     event->y -= 2;
-    if ((event->type & (GPM_DOWN|GPM_DRAG))){
+    if ((event->type & (GPM_DOWN|GPM_DRAG|GPM_UP))){

        if (panel != (WPanel *) current_dlg->current->widget)
            change_panel ();

    }

Anyone know a reason why button up shouldn't know its location?

Peace.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]