Re: How to release the weston_buffer after weston_view is destroyed.

2018-08-14 Thread Pekka Paalanen
On Mon, 13 Aug 2018 09:33:53 -0400 Sichem Zhou wrote: > Hi Pekka, > > Thanks for the reply. Sorry I forgot to say that `frame_callback` was a > hack for me. It has historical reason. Initially I designed the client > using EGL and found that I could only create the glprogram, creating > shaders

Re: How to release the weston_buffer after weston_view is destroyed.

2018-08-13 Thread Sichem Zhou
Hi Pekka, Thanks for the reply. Sorry I forgot to say that `frame_callback` was a hack for me. It has historical reason. Initially I designed the client using EGL and found that I could only create the glprogram, creating shaders after having wl_surface. Since I used the same shader I thought that

Re: How to release the weston_buffer after weston_view is destroyed.

2018-08-06 Thread Pekka Paalanen
On Fri, 3 Aug 2018 18:04:36 -0400 Sichem Zhou wrote: > Hi Pekka, > > Thanks for your reply. Yes, preferably if I can hide the map and unmap from > client, in this case I cannot because it is part of a desktop shell. After > I unmap it and remap the view next time, it is not expected the shell to

Re: How to release the weston_buffer after weston_view is destroyed.

2018-08-03 Thread Sichem Zhou
Hi Pekka, Thanks for your reply. Yes, preferably if I can hide the map and unmap from client, in this case I cannot because it is part of a desktop shell. After I unmap it and remap the view next time, it is not expected the shell to continue from last draw. I would want the shell be drawing total

Re: How to release the weston_buffer after weston_view is destroyed.

2018-08-03 Thread Pekka Paalanen
> On Sat, Jul 28, 2018 at 8:15 PM, Sichem Zhou wrote: > > > Dear Weston devs: > > > > Sorry for the bothering in when weston-5.0 is approaching, but I am stuck > > in the project for three days I need some one's help very much. > > > > I have a widget implementation of shell widgets that destroys

Re: How to release the weston_buffer after weston_view is destroyed.

2018-08-02 Thread Sichem Zhou
Dear all, I solved it using the `frame_signal` in the weston_output. I referenced the Weston shell `set_minimized` implementation, which works by moving view to a hidden layer. It didn't work for me since I trigger immediately the next frame once moving the view back to the original layer. The c

Re: How to release the weston_buffer after weston_view is destroyed.

2018-07-29 Thread Sichem Zhou
I actually found the reason, in the function `weston_output_repaint`, the frame_callbacks only send the done events for surface which has view on the compositor's view_list, but this poses a dilemma, since I cannot either destroy or unmap the view before the output repainted. Sichem On Sat, Jul 2

How to release the weston_buffer after weston_view is destroyed.

2018-07-28 Thread Sichem Zhou
Dear Weston devs: Sorry for the bothering in when weston-5.0 is approaching, but I am stuck in the project for three days I need some one's help very much. I have a widget implementation of shell widgets that destroys the weston_view when pressed Esc. The widget is implemented in wayland EGL. Her