<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
addendum: screen refreshes also happen about 10 seconds after the notify_button "click". </div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Josh Simonot <jsimonot@live.ca><br>
<b>Sent:</b> February 10, 2020 4:49 PM<br>
<b>To:</b> wayland-devel@lists.freedesktop.org <wayland-devel@lists.freedesktop.org><br>
<b>Subject:</b> repaint after notify_button() ?</font>
<div> </div>
</div>
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello, </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I'm using compositor-drm.c as a starting point and am injecting remote input events, using compositor-rdp.c as an example. </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Currently the output doesn't repaint after "clicking" on a button by calling: </div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<div style="background-color:rgb(30,30,30); font-family:Consolas,"Courier New",monospace; font-weight:normal; font-size:14px; line-height:19px">
<div style="color:rgb(212,212,212)"><span style="color:#dcdcaa">    notify_motion_absolute</span><span>(seat, evtime, x, y);</span></div>
<div style=""><font color="#d4d4d4">    </font><span style="color:rgb(220,220,170)">notify_button</span><span style="color:rgb(212,212,212)">(seat, evtime, btn, state);</span></div>
<div style=""><font color="#d4d4d4">    </font><span style="color:rgb(220,220,170)">notify_pointer_frame</span><span style="color:rgb(212,212,212)">(seat);</span></div>
</div>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">(with WL_POINTER_BUTTON_STATE_PRESSED, then<span> </span></span><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">WL_POINTER_BUTTON_STATE_RELEASED)</span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">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<span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"> app's
 window.  I tried calling: </span><span style="font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">weston_output_schedule_repaint(&output->base); with no success.</span></span><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important"><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">How can I get these apps to trigger repaint when clicked?</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><span style="color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif; background-color:rgb(255,255,255); display:inline!important">Thanks!</span></div>
</div>
</div>
</body>
</html>