[Bug 42284] Enable using Wine with Wayland and without X on Linux

WineHQ Bugzilla wine-bugs at winehq.org
Thu Dec 19 15:32:30 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=42284

ilkka.prusi at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ilkka.prusi at gmail.com

--- Comment #11 from ilkka.prusi at gmail.com ---
(In reply to Vincent Povirk from comment #6)
> > Would it be possible map calls into GTK, QT, or equivalent toolkit that know
> > how to draw directly on a wayland buffer?
> 
> This would not solve the problem Michael described. These toolkits are able
> to correctly position drop-down menus because they know which main window
> the menu belongs to, and can request positioning relative to that. Wine does
> not generally have this information and would have to guess.
> 
> I don't think the problem is insurmountable, but then again I didn't do the
> work.

Windows has GetClientRect() and GetWindowRect() API calls, first operates on
relative coordinates (relative to parent-window) and second by screen
coordinates. 
Things like menus are most often relative to window (and adjust when window
size changes), but I'm certain there are bonkers kludge also which only operate
on specific display resolution and uses only screen coordinates.

So for a large part of software the question of coordinates is non-issue, but
there is the part about software doing things in weird ways (anyone looked at
Windows 3.11 applications lately?). I'm guessing that it would not be a big
miss if those that use direct screen coordinates were handled as "fullscreen"
(meaning disabled resizing) and just assuming the coordinate is relative to the
(faked) "fullscreen" window: likely software that uses directly screen
coordinates cannot handle resizing of the window anyway. But of course there's
always the chance of something breaking..

But I'm pretty confident you won't even need that hackery in the first place.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list