Desktop window doesn't span entire screen in multi-monitor setup?

Damjan Jovanovic damjan.jov at
Tue Sep 14 04:31:45 CDT 2010

$ xrandr -q
Screen 0: minimum 320 x 200, current 2732 x 768, maximum 8192 x 8192

GetWindowRect(GetDesktopWindow(), &r);
r.left,, r.right, r.bottom are:
0 0 1366 768

This causes WindowFromPoint() to fail (returns NULL) when the point is
on my second monitor, which causes X11 -> Wine drag and drop to also
fail since it uses WindowFromPoint().

It seems wineserver doesn't allow the point to fall outside the window
from which the search starts, which causes the point to be rejected
because the desktop window doesn't contain it.

What's the problem here, that the desktop window is too small, or that
the window search criteria are too strict?

Damjan Jovanovic

More information about the wine-devel mailing list