예제 #1
0
파일: Xlib.cs 프로젝트: pschuegr/IronAHK
 public static extern void XNextEvent(IntPtr Display, ref XEvent Event);
예제 #2
0
파일: Xlib.cs 프로젝트: pschuegr/IronAHK
 public static extern int XLookupString(ref XEvent Key, StringBuilder Buffer, int Count, IntPtr KeySym, IntPtr Useless);
예제 #3
0
 public static extern void XNextEvent(IntPtr Display, ref XEvent Event);
예제 #4
0
 public static extern int XLookupString(ref XEvent Key, StringBuilder Buffer, int Count, IntPtr KeySym, IntPtr Useless);
예제 #5
0
        private void FishEvent()
        {
            var Event = new XEvent();
            Xlib.XNextEvent(Display, ref Event);

            if(OnEvent != null)
                OnEvent(Event);

            if (Event.type == XEventName.CreateNotify)
            {
                int Window = Event.CreateWindowEvent.window;
                Success = true;

                Windows.Add(Window);

                SurpressErrors = true;
                if(Success)
                    RecurseTree(Display, Window);

                SurpressErrors = false;
            }
            else if(Event.type == XEventName.DestroyNotify)
            {
                Windows.Remove(Event.DestroyWindowEvent.window);
            }
        }