D17544: virtualkeyboard: report the size of the inputwindow
Marco Martin <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
mart added inline comments. INLINE COMMENTS > graesslin wrote in virtualkeyboard.cpp:248 > 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. would be the SubSurfaceInterface::pos member? would this reasoning be correct? so, if a surface is a subsurface - get the main surface - get its pos in the surface - get the toplevel of the surface *final position is toplevel position + "pos" of the subsurface REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D17544 To: mart, #plasma, #kwin, bshah, graesslin Cc: graesslin, davidedmundson, kwin, mart, kvanton, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol