Ejemplo n.º 1
0
		public static CursorTracker ForDisplay (Gdk.Display display)
		{
			if (!trackers.ContainsKey (display))
				trackers [display] = new CursorTracker (display);
			
			return trackers [display];
		}
Ejemplo n.º 2
0
        public static CursorTracker ForDisplay(Gdk.Display display)
        {
            if (!trackers.ContainsKey(display))
            {
                trackers [display] = new CursorTracker(display);
            }

            return(trackers [display]);
        }
Ejemplo n.º 3
0
        internal AutohideManager(Gdk.Screen screen)
        {
            pid = System.Diagnostics.Process.GetCurrentProcess().Id;

            tracker     = CursorTracker.ForDisplay(screen.Display);
            this.screen = Wnck.Screen.Get(screen.Number);

            tracker.CursorPositionChanged   += HandleCursorPositionChanged;
            this.screen.ActiveWindowChanged += HandleActiveWindowChanged;
            this.screen.WindowOpened        += HandleWindowOpened;
            this.screen.WindowClosed        += HandleWindowClosed;
        }
Ejemplo n.º 4
0
		internal AutohideManager (Gdk.Screen screen)
		{
			pid = System.Diagnostics.Process.GetCurrentProcess ().Id;
			
			tracker = CursorTracker.ForDisplay (screen.Display);
			this.screen = Wnck.Screen.Get (screen.Number);
			
			tracker.CursorPositionChanged   += HandleCursorPositionChanged;
			this.screen.ActiveWindowChanged += HandleActiveWindowChanged;
			this.screen.WindowOpened        += HandleWindowOpened;
			this.screen.WindowClosed        += HandleWindowClosed;
		}