Re: [PATCH wayland 8/9] client: Replace the singleton zombie with bespoke zombies

2017-04-11 Thread Jonas Ådahl
On Tue, Apr 11, 2017 at 10:37:28AM -0500, Derek Foreman wrote: > On 07/04/17 03:27 PM, Derek Foreman wrote: > > Using the singleton zombie object doesn't allow us to posthumously retain > > object interface information, which makes it difficult to properly inter > > future events destined for the

[weston 8/8] xwm: Use Pango to draw title string if available

2017-04-11 Thread Louis-Francis Ratté-Boulianne
If Weston is built with Pango, use it to render the title for X11 applications and Weston toy toolkit clients. It allows us to ellipsize the title when there isn't enough space to show the whole string. Signed-off-by: Louis-Francis Ratté-Boulianne --- Makefile.am |

[weston 7/8] xwm: Deal with title in a smarter way when there isn't enough space

2017-04-11 Thread Louis-Francis Ratté-Boulianne
The title in X11 windows and Wayland application using Weston toy toolkit were placing the title in a very naive fashion. It was only try to center the string in the title bar. This patch: * Makes sure the title isn't renderer underneath buttons; * Move the title to the left if the titlebar

[weston 1/8] xwm: Implement _NET_WM_SYNC_REQUEST protocol

2017-04-11 Thread Louis-Francis Ratté-Boulianne
Implement NET_WM_SYNC_REQUEST protocol for throtting X11 window resizes in Weston's XWM. We wait for the window to be drawn (by setting an alarm on the sync counter) before configuring the window again. Signed-off-by: Louis-Francis Ratté-Boulianne --- configure.ac

[weston 6/8] xwm: Ignore configure request while the user is resizing

2017-04-11 Thread Louis-Francis Ratté-Boulianne
We don't want the application to fight with the user when manually resizing a window. Signed-off-by: Louis-Francis Ratté-Boulianne --- xwayland/window-manager.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/xwayland/window-manager.c

[weston 3/8] xwm: Don't resize windows if the application have these hints

2017-04-11 Thread Louis-Francis Ratté-Boulianne
If the minimum and maximum size hints are equal, that means the application doesn't want the window manager to allow resizing. Signed-off-by: Louis-Francis Ratté-Boulianne --- xwayland/window-manager.c | 26 -- 1 file changed, 20 insertions(+), 6

[weston 4/8] xwm: Only send configure a window if the new size is different

2017-04-11 Thread Louis-Francis Ratté-Boulianne
If we configure a window with the same size and wait for the sync alarm to go off, the resizing is gonna block. The event is only handled is the size actually changed. Signed-off-by: Louis-Francis Ratté-Boulianne --- xwayland/window-manager.c | 15 +++ 1 file

[weston 5/8] xwm: Make sure we respect the window's size hints

2017-04-11 Thread Louis-Francis Ratté-Boulianne
Don't just ignore the minimal and maximal sizes requested by the application. Signed-off-by: Louis-Francis Ratté-Boulianne --- xwayland/window-manager.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c

[weston 0/8] Implement NET_WM_SYNC_REQUEST basic support

2017-04-11 Thread Louis-Francis Ratté-Boulianne
Implement NET_WM_SYNC_REQUEST protocol for throtting X11 window resizes in Weston's XWM. We wait for the window to be drawn (by setting an alarm on the sync counter) before configuring the window again. I also did some small fixes the Xwayland window manager as to better respect size hints from

[weston 2/8] xwm: Maximize windows when double-clicking on title bar

2017-04-11 Thread Louis-Francis Ratté-Boulianne
Signed-off-by: Louis-Francis Ratté-Boulianne --- xwayland/window-manager.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index a067f741..02a7c252 100644 ---

Re: [weston, v3, 3/3] libweston-desktop/xwayland: react to geometry changes

2017-04-11 Thread Louis-Francis Ratté-Boulianne
On Wed, 2017-01-18 at 15:37 +0200, Pekka Paalanen wrote: > From: Pekka Paalanen > > Fix up the window position whenever the geometry info changes. > > If the window geometry changes, we want to keep the input-responding > content anchored to top-left. It is done

Re: [weston,v3,2/3] xwm: use _XWAYLAND_ALLOW_COMMITS

2017-04-11 Thread Louis-Francis Ratté-Boulianne
On Wed, 2017-01-18 at 15:37 +0200, Pekka Paalanen wrote: > From: Pekka Paalanen > > This patch uses the new feature proposed for Xwayland in the patch > series https://patchwork.freedesktop.org/series/16610/ . > > When the frame window is created, immediately

Re: [weston,v3,1/3] xwm: do not draw decor twice on map

2017-04-11 Thread Louis-Francis Ratté-Boulianne
On Wed, 2017-01-18 at 15:37 +0200, Pekka Paalanen wrote: > From: Pekka Paalanen > > Normal windows enter the MapRequest handler, which schedules drawing > the > decorations. Then Xwayland realizes the window, which ends with a > call > to

Re: [PATCH wayland 8/9] client: Replace the singleton zombie with bespoke zombies

2017-04-11 Thread Mike Blumenkrantz
On Tue, Apr 11, 2017 at 11:39 AM Derek Foreman wrote: > On 07/04/17 03:27 PM, Derek Foreman wrote: > > Using the singleton zombie object doesn't allow us to posthumously retain > > object interface information, which makes it difficult to properly inter > > future events

Re: [PATCH wayland 8/9] client: Replace the singleton zombie with bespoke zombies

2017-04-11 Thread Derek Foreman
On 07/04/17 03:27 PM, Derek Foreman wrote: Using the singleton zombie object doesn't allow us to posthumously retain object interface information, which makes it difficult to properly inter future events destined for the recently deceased proxy. Notably, this makes it impossible for zombie

Re: [PATCH weston 01/15] libweston: improve weston_output_disable() comments

2017-04-11 Thread Pekka Paalanen
On Tue, 4 Apr 2017 21:22:55 +0200 Armin Krezović wrote: > On 04.04.2017 12:58, Pekka Paalanen wrote: > > From: Pekka Paalanen > > > > Reorder some paragraphs to be more logically ordered. Rewrite the > > description of the

Re: [PATCH weston 02/15] libweston: untangle weston_compositor_remove_output doc

2017-04-11 Thread Pekka Paalanen
On Tue, 4 Apr 2017 21:30:04 +0200 Armin Krezović wrote: > On 04.04.2017 12:58, Pekka Paalanen wrote: > > From: Pekka Paalanen > > > > Trying to make it more readable. Things that happen in the same step are > > kept in the same