intel / ozone-wayland

Wayland implementation for Chromium Ozone classes
BSD 3-Clause "New" or "Revised" License
218 stars 82 forks source link

Touch focus for multiple native windows of chrome #467

Closed mbinoy closed 6 years ago

mbinoy commented 7 years ago

Hi

we have multiple chrome shell windows created for our project and which actually backup by the native wayland surface. Also these windows are sometimes pushed to a second display using weston compositor (IVI shell - wayland ivi extension for example).

Currently the window focus is gained when the cursor is entering to the particular window, https://github.com/01org/ozone-wayland/blob/rebase_m53/wayland/input/pointer.cc#L158 (internally call the window focus)

Assuming the situations where the focus has to be exchanged between the different windows just by touching the window itself. Assuming currently it is not handled in the touch input handler. https://github.com/01org/ozone-wayland/blob/rebase_m53/wayland/input/touchscreen.cc#L45 Is it intentional? This is some thing required for my project and currently handled with posting the fake pointerEnter IPC call to get the window focus while touching any window. Any suggestion on this would be helpful

Best regards, Binoy