repaint after notify_button() ?
Josh Simonot
jsimonot at live.ca
Mon Feb 10 22:15:49 UTC 2020
addendum: screen refreshes also happen about 10 seconds after the notify_button "click".
________________________________
From: Josh Simonot <jsimonot at live.ca>
Sent: February 10, 2020 4:49 PM
To: wayland-devel at lists.freedesktop.org <wayland-devel at lists.freedesktop.org>
Subject: repaint after notify_button() ?
Hello,
I'm using compositor-drm.c as a starting point and am injecting remote input events, using compositor-rdp.c as an example.
Currently the output doesn't repaint after "clicking" on a button by calling:
notify_motion_absolute(seat, evtime, x, y);
notify_button(seat, evtime, btn, state);
notify_pointer_frame(seat);
(with WL_POINTER_BUTTON_STATE_PRESSED, then WL_POINTER_BUTTON_STATE_RELEASED)
I finally see the result of the button press after the clock updates, or if I run any gl app in the background (ex. weston-simple-egl). The buttons I'm clicking on is to launch weston-terminal and close the terminal. Same results when clicking within weston-clickdot app's window. I tried calling: weston_output_schedule_repaint(&output->base); with no success.
How can I get these apps to trigger repaint when clicked?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20200210/820bb7f1/attachment.htm>
More information about the wayland-devel
mailing list