mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 12:29:27 +01:00 
			
		
		
		
	gtk1: fixed GetCursorPos
git-svn-id: trunk@16103 -
This commit is contained in:
		
							parent
							
								
									1140b0a1e3
								
							
						
					
					
						commit
						b340abac03
					
				@ -4956,7 +4956,7 @@ var
 | 
			
		||||
  winx, winy: Integer;
 | 
			
		||||
  xmask: Cardinal;
 | 
			
		||||
begin
 | 
			
		||||
  Result := False;
 | 
			
		||||
  Result := true;
 | 
			
		||||
  if (not MousePositionValid) or (Abs(MousePositionTime-Now)>1/864000) then
 | 
			
		||||
  begin
 | 
			
		||||
    // querying the X cursor is expensive (especially on network connections)
 | 
			
		||||
@ -4968,7 +4968,6 @@ begin
 | 
			
		||||
      dpy := gdk_display;
 | 
			
		||||
      XQueryPointer(dpy, RootWindow(dpy, DefaultScreen(dpy)), @root, @child,
 | 
			
		||||
                          @MousePosition.X,@MousePosition.Y,@winx,@winy,@xmask);
 | 
			
		||||
      Result := True;
 | 
			
		||||
    {$IFDEF DebugGDKTraps}
 | 
			
		||||
    finally
 | 
			
		||||
      EndGDKErrorTrap;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user