[PATCH] dix: fix scale_to_desktop for edge ABS events

Peter Hutterer peter.hutterer at who-t.net
Wed Sep 26 21:58:15 PDT 2012

On Sun, Sep 23, 2012 at 04:10:24PM -0700, Keith Packard wrote:
> Yufeng Shen <miletus at chromium.org> writes:
> > To fix this, we change the device to screen coordinates mapping to
> > [dev_X_min, dev_X_max]  -> [screen_X_min, screen_X_max-1]
> > [dev_Y_min, dev_Y_max]  -> [screen_Y_min, screen_Y_max-1]
> This patch appears to include an additional change in passing
> screenInfo.x + screenInfo.width and screenInfo.y + screenInfo.height
> instead of just screenInfo.width and screenInfo.height.
> If this is essential to the fix noted above, please make sure the change
> is described in the commit log. If it is a separate fix, please create a
> separate patch for it.

fwiw, it'd be a separate fix but one that seems required. Though I still
don't know how to get negative origins for the desktop.


More information about the xorg-devel mailing list