Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
E.h events.c
Log Message:
Track pointer on screen state.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v
retrieving revision 1.530
retrieving revision 1.531
diff -u -3 -r1.530 -r1.531
--- E.h 2 Feb 2006 18:38:03 -0000 1.530
+++ E.h 12 Feb 2006 17:27:30 -0000 1.531
@@ -502,6 +502,7 @@
unsigned int last_button;
unsigned int last_keycode;
char double_click;
+ char on_screen;
} events;
struct
{
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/events.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -3 -r1.114 -r1.115
--- events.c 8 Jan 2006 23:51:07 -0000 1.114
+++ events.c 12 Feb 2006 17:27:30 -0000 1.115
@@ -182,12 +182,14 @@
return;
}
#endif
+ Mode.events.on_screen = ev->xkey.same_screen;
goto do_stuff;
case ButtonPress:
case ButtonRelease:
Mode.events.time = ev->xbutton.time;
ModeGetXY(ev->xbutton.root, ev->xbutton.x_root, ev->xbutton.y_root);
+ Mode.events.on_screen = ev->xbutton.same_screen;
goto do_stuff;
case MotionNotify:
@@ -195,6 +197,7 @@
Mode.events.px = Mode.events.x;
Mode.events.py = Mode.events.y;
ModeGetXY(ev->xmotion.root, ev->xmotion.x_root, ev->xmotion.y_root);
+ Mode.events.on_screen = ev->xmotion.same_screen;
ActionsHandleMotion();
break;
@@ -202,6 +205,7 @@
case EnterNotify:
Mode.context_win = ev->xany.window;
Mode.events.time = ev->xcrossing.time;
+ Mode.events.on_screen = ev->xcrossing.same_screen;
if (ev->xcrossing.mode == NotifyGrab &&
ev->xcrossing.detail == NotifyInferior)
{
@@ -213,6 +217,7 @@
case LeaveNotify:
Mode.events.time = ev->xcrossing.time;
+ Mode.events.on_screen = ev->xcrossing.same_screen;
if (ev->xcrossing.mode == NotifyGrab &&
ev->xcrossing.detail == NotifyInferior)
{
@@ -803,10 +808,12 @@
break;
case EnterNotify:
case LeaveNotify:
- Eprintf("%#08lx EV-%s win=%#lx sub=%#lx m=%s d=%s\n", ser, name, win,
- ev->xcrossing.subwindow,
- EventNotifyModeName(ev->xcrossing.mode),
- EventNotifyDetailName(ev->xcrossing.detail));
+ Eprintf
+ ("%#08lx EV-%s win=%#lx sub=%#lx m=%s d=%s sscreen=%d focus=%d\n",
+ ser, name, win, ev->xcrossing.subwindow,
+ EventNotifyModeName(ev->xcrossing.mode),
+ EventNotifyDetailName(ev->xcrossing.detail),
+ ev->xcrossing.same_screen, ev->xcrossing.focus);
break;
case FocusIn:
case FocusOut:
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs