Bug 24187 - Negative root window coordinates
Summary: Negative root window coordinates
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: 7.4 (2008.09)
Hardware: Other All
: medium normal
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xserver-1.7
  Show dependency treegraph
 
Reported: 2009-09-27 19:58 UTC by Peter Hutterer
Modified: 2009-10-01 19:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Hutterer 2009-09-27 19:58:28 UTC
Clipping on subpixels is broken in GetPointerEvents and friends. Moving into the upper left corner it is possible to get negative (-1..0) root window coordinates.
Comment 1 Peter Hutterer 2009-10-01 19:20:15 UTC
commit 45f447dafded5adfe11b7df3325c2d8f6ae0639b
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Oct 1 21:19:11 2009 +1000

    dix: force a minimum of 0 for screen coordinates.
    
    Currently the root coordinates may fall into ]-1..0] if the subpixel
    remainder is less than 0. Screen coordinates mustn't go below 0, so use
    miPointerSetPosition to cap off the remainder if the coordinates are below
    0.
    
    This is cheating a bit, a more comprehensive solution to deal with subpixels
    correctly when crossing screens is needed. For now, this'll do.
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
    Acked-by: Simon Thum <simon.thum@gmx.de>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.