[writing a compositor] Window does not return to previous position on unmaximize

2018-09-23 Thread adlo
I am writing a compositor using libweston. When unmaximizing a window, the window doesn't return to the position it was at before it was maximized. How can I resolve this? Here is my code: static void set_maximized_position (struct ShellSurface *shsurf) { pixman_rectangle32_t area;

Re: [PATCH v2] server: add wl_signal_emit_safe

2018-09-23 Thread Simon Ser
On Tuesday, September 18, 2018 8:43 PM, Derek Foreman wrote: > On 2018-08-08 07:00 AM, Simon Ser wrote: > > > This new function allows listeners to remove themselves or any > > other listener when called. This version only works if listeners > > are properly removed before they are free'd. > > wl

Re: [PATCH] cursor: use memfd_create or shm_open for anonymous in-memory files

2018-09-23 Thread Simon Ser
Hi all, Any news about this? Thanks, --- Simon Ser https://emersion.fr On Wednesday, August 15, 2018 4:14 PM, Simon Ser wrote: > On Linux, try using memfd_create and file sealing. Fallback to > shm_open on old kernels. > > On FreeBSD, use shm_open with SHM_ANON. > > Otherwise, use shm_open wit

[PATCH wayland-protocols v2] unstable: add primary-selection protocol

2018-09-23 Thread Simon Ser
From: emersion This primary selection is similar in spirit to the eponimous in X11, allowing a quick "select text + middle click" shortcut to copying and pasting. It's otherwise very similar to its Wayland counterpart, and explicitly made consistent with it. Signed-off-by: Simon Ser --- Chang