-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subsurface input (finally) #346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keyboard and mouse input seems to be working on subsurfaces, but not touch input. Unless that's trivial, I'm happy to land this pending a separate fix.
Test case:
- Start gedit.
- Touch "Open"
- Touch a recent doc. Expect it opens, actual nothing
- Touch "Other Document...". Expect open dialog, actual nothing.
@@ -110,13 +112,20 @@ void mf::WlPointer::handle_event(MirPointerEvent const* event, WlSurface* surfac | |||
auto point = Point{mir_pointer_event_axis_value(event, mir_pointer_axis_x), | |||
mir_pointer_event_axis_value(event, mir_pointer_axis_y)}; | |||
auto transformed = surface->transform_point(point); | |||
handle_enter(transformed.first, transformed.second); | |||
handle_frame(); | |||
if (transformed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a style nit: I prefer to restrict the scope of everything (in this case transformed). Vis:
if (auto const transformed = surface->transform_point(point))
I know it makes little difference here (and won't block on it).
On further thoughts: let's land this before the weekend, I'll file a bug for about the touch issues. bors r+ |
Build succeeded |
This adds the ability for subsurfaces to get mouse input.