D17544: virtualkeyboard: report the size of the inputwindow
Martin Flöser <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
graesslin added inline comments. INLINE COMMENTS > mart wrote in virtualkeyboard.cpp:248 > tough if i cannot base on a window for it, is there a singal anywhere in surfaceinterface on how i can take the geometry and most important listen to geometry changes? > i can't find anything about it Yeah, overall it looks like we cannot really support this easily. I would tend to say we can ignore sub surfaces here, but it's quite likely that those change when overlapped by virtual keyboard. We have a few bits: - we can get the root surface from any surface - we can Toplevel for the surface - surface provides a signal when the subsurface tree changes - on Toplevel we have an input transformation to map from global coordinate system to root surface coordinate system - KWayland internally can support mapping coordinates from root surface to sub surface So either connect to the relevant signals in KWin or extend KWayland to do the calculation for the overlap from global to surface local coordinate system. REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D17544 To: mart, #plasma, #kwin, bshah, graesslin Cc: graesslin, davidedmundson, kwin, mart, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol