[PATCH v2] Add an option to disable client initiated resizes

2014-04-02 Thread Hardening
This patch adds an option to the RDP compositor to disable desktop resizes initiated by RDP peer. The current behaviour is that if an incoming RDP peer suggests a resolution that is not the current one, a mode_switch() is done and the desktop is resized to that new resolution. This new flag allows

Re: [PATCH] Add an option to disable client initiated resizes

2014-04-02 Thread Hardening
Le 03/04/2014 02:08, Bill Spitzak a écrit : Hardening wrote: +if (!settings->DesktopResize) { +/* peer does not support desktop resize */ +weston_log("%s: client doesn't support resizing, closing connection\n", __FUNCTION__); +client->

Re: Not able to build Weston.

2014-04-02 Thread Srivardhan M S
Hi Pekka, Thank you very much, Setting the path resolved the issue. Thanks Bryce for the build commands. I was able to build the weston. Thank-you, Sri On Wed, Apr 2, 2014 at 11:52 AM, Pekka Paalanen wrote: > On Wed, 2 Apr 2014 10:36:56 +0530 > Srivardhan M S wrote: > >> Hi, >> >> I repeated

[PATCH fullscreen-shell v6 15/19] compositor-wayland: Properly handle running inside a compositor that does not provide keymaps

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/compositor-wayland.c | 61 +--- 1 file changed, 37 insertions(+), 24 deletions(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index f1b4526..52ee6e6 100644 --- a/src/compositor-wayland.c +++ b/

[PATCH fullscreen-shell v6 09/19] toytoolkit: Don't crash if wl_data_device_manager is not present

2014-04-02 Thread Jason Ekstrand
This is primaraly to get weston-fullscreen to run on compositors that lack copy-paste support. Signed-off-by: Jason Ekstrand --- clients/window.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/clients/window.c b/clients/window.c index 5309f31..83934

[PATCH fullscreen-shell v6 08/19] toytoolkit: Expose output make and model

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- clients/window.c | 22 ++ clients/window.h | 6 ++ 2 files changed, 28 insertions(+) diff --git a/clients/window.c b/clients/window.c index 6f89ae6..5309f31 100644 --- a/clients/window.c +++ b/clients/window.c @@ -348,6 +348,8 @@ struct

[PATCH fullscreen-shell v6 04/19] Add possible capabilities CURSOR_PLANE and ARBITRARY_MODE

2014-04-02 Thread Jason Ekstrand
The CURSOR_PLANE capability indicates that the backend has a concept of a cursor plane and can handle a cursor without compositing. This is currently only advertised by the DRM backend. The ARBITRARY_MODE flag specifies that the backend is capable of switching to virtually any resolution. This i

[PATCH fullscreen-shell v6 06/19] simple-shm: Add wl_fullscreen_shell support

2014-04-02 Thread Jason Ekstrand
This makes simple-shm act like a very simple fullscreen shell client. This is the kind of interaction one would expect out of a boot splash screen or similar. Signed-off-by: Jason Ekstrand --- Makefile.am | 6 +- clients/simple-shm.c | 31 ++- 2 files c

[PATCH fullscreen-shell v6 01/19] Add a fullscreen shell protocol

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- protocol/fullscreen-shell.xml | 206 ++ 1 file changed, 206 insertions(+) create mode 100644 protocol/fullscreen-shell.xml diff --git a/protocol/fullscreen-shell.xml b/protocol/fullscreen-shell.xml new file mode 100644 in

[PATCH fullscreen-shell v6 14/19] Automatically select the wayland backend if WAYLAND_SOCKET is set

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 6b90bd8..362e959 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -4168,7 +4168,7 @@ int main(int argc, char *argv[])

[PATCH fullscreen-shell v6 00/19] Add a fullscreen shell protocol

2014-04-02 Thread Jason Ekstrand
This is version 6 of my wl_fullscreen_shell patchset. Version 5 can be found here: http://lists.freedesktop.org/archives/wayland-devel/2014-March/013754.html For easier testing/review, this patch series can also be found on the fullscreen-shell-v6 branch on my github page: https://github.com/je

[PATCH fullscreen-shell v6 13/19] compositor-wayland: Add a --sprawl option

2014-04-02 Thread Jason Ekstrand
This forces weston to create one output for every parent output. This is enabled by default if it detects a wl_fullscreen_shell. The --sprawl option is primarily to enable this on wl_shell. Signed-off-by: Jason Ekstrand --- src/compositor-wayland.c | 10 +++--- src/compositor.c |

[PATCH fullscreen-shell v6 18/19] compositor-rdp: Add an option to disable client initiated resizes

2014-04-02 Thread Jason Ekstrand
From: Hardening This patch adds an option to the RDP compositor to disable desktop resizes initiated by RDP peer. The current behaviour is that if an incoming RDP peer suggests a resolution that is not the current one, a mode_switch() is done and the desktop is resized to that new resolution. Thi

[PATCH fullscreen-shell v6 03/19] Add a signal for when a seat updates its capabilities

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/compositor.h | 1 + src/input.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/compositor.h b/src/compositor.h index cbeab6f..37ad17f 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -495,6 +495,7 @@ struct weston_seat { struct

[PATCH fullscreen-shell v6 19/19] Add a screen sharing plugin

2014-04-02 Thread Jason Ekstrand
This adds a plugin called screen-share.so. If the screen-share.so module is imported, it will add the CTRL+ALT+s keybinding to start a screen sharing session. If you press CTRL+ALT+S, weston will spawn another copy of weston, this time with the RDP backend, and mirrors the current screen to it an

[PATCH fullscreen-shell v6 02/19] Generate/build the fullscreen shell protocol files

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 5ff4f83..e181528 100644 --- a/Makefile.am +++ b/Makefile.am @@ -920,6 +920,7 @@ EXTRA_DIST += \ protocol/text-cursor-posi

[PATCH fullscreen-shell v6 16/19] Add support for running with a primary client

2014-04-02 Thread Jason Ekstrand
On startup weston now detects the WAYLAND_SERVER_SOCKET environment variable. If found, weston does not create the display like normal, but instead directly adds a client corresponding to the given fd. This, combined with the fullscreen shell, allows a process to spawn weston and use it as a back

[PATCH fullscreen-shell v6 07/19] toytoolkit: Only require xdg_shell if the window is not custom

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 5ba7322..6f89ae6 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4359,7 +4359,7 @@ window_create_internal(struct display *displ

[PATCH fullscreen-shell v6 12/19] compositor-wayland: Add support for running on top of wl_fullscreen_shell

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- Makefile.am | 3 + src/compositor-wayland.c | 470 --- 2 files changed, 451 insertions(+), 22 deletions(-) diff --git a/Makefile.am b/Makefile.am index 464d086..a2f9038 100644 --- a/Makefile.am +++ b/Mak

[PATCH fullscreen-shell v6 10/19] weston-fullscreen: Add wl_fullscreen_shell support

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- Makefile.am | 3 + clients/fullscreen.c | 163 +++ 2 files changed, 154 insertions(+), 12 deletions(-) diff --git a/Makefile.am b/Makefile.am index 5b6b523..464d086 100644 --- a/Makefile.am +++ b/Makefil

[PATCH fullscreen-shell v6 05/19] Add a wl_fullscreen_shell implementation

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- Makefile.am | 22 + configure.ac| 8 + fullscreen-shell/fullscreen-shell.c | 830 3 files changed, 860 insertions(+) create mode 100644 fullscreen-shell/fullscreen-shell.c d

[PATCH fullscreen-shell v6 11/19] weston-fullscreen: Add cursor drawing support and properly handle WL_FULLSCREEN_SHELL_CAPABILITY_CURSOR_PLANE

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- clients/fullscreen.c | 103 +-- 1 file changed, 99 insertions(+), 4 deletions(-) diff --git a/clients/fullscreen.c b/clients/fullscreen.c index 247232b..7dc4374 100644 --- a/clients/fullscreen.c +++ b/clients/fulls

[PATCH fullscreen-shell v6 17/19] gl-renderer: Fix read_pixels in the case where we have output borders

2014-04-02 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/gl-renderer.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gl-renderer.c b/src/gl-renderer.c index dc50cb0..c5b2a1b 100644 --- a/src/gl-renderer.c +++ b/src/gl-renderer.c @@ -964,6 +964,10 @@ gl_renderer_read_pixels(struct weston_output *output

Re: [PATCH] Add an option to disable client initiated resizes

2014-04-02 Thread Jason Ekstrand
Kristian, Other than the "return FALSE" mentioned below, this looks good-to-go. --Jason Ekstrand On Wed, Apr 2, 2014 at 7:43 PM, Jason Ekstrand wrote: > > > > On Wed, Apr 2, 2014 at 7:08 PM, Bill Spitzak wrote: > >> Hardening wrote: >> >> + if (!settings->DesktopResize)

Re: [PATCH] Add an option to disable client initiated resizes

2014-04-02 Thread Jason Ekstrand
On Wed, Apr 2, 2014 at 7:08 PM, Bill Spitzak wrote: > Hardening wrote: > > + if (!settings->DesktopResize) { >> + /* peer does not support desktop resize */ >> + weston_log("%s: client doesn't support >> resizing,

Re: [PATCH] Add an option to disable client initiated resizes

2014-04-02 Thread Bill Spitzak
Hardening wrote: + if (!settings->DesktopResize) { + /* peer does not support desktop resize */ + weston_log("%s: client doesn't support resizing, closing connection\n", __FUNCTION__); +

[April Fools Joke] Re: Wayland Live CD now switching to Mir

2014-04-02 Thread nerdopolis
On Tuesday, April 01, 2014 10:20:43 AM Gustavo Noronha Silva wrote: > On Tue, 2014-04-01 at 14:58 +0200, Kai-Uwe Behrmann wrote: > > Am 01.04.2014 14:40, schrieb nerdopolis: > > > As you all know, I have been the developer of the Wayland live CD for > > > some time, which is named after my favorit

[PATCH] Add an option to disable client initiated resizes

2014-04-02 Thread Hardening
This patch adds an option to the RDP compositor to disable desktop resizes initiated by RDP peer. The current behaviour is that if an incoming RDP peer suggests a resolution that is not the current one, a mode_switch() is done and the desktop is resized to that new resolution. This new flag allows

Re: [PATCH weston] protocol,compositor: wl_viewport destination 1x1 min

2014-04-02 Thread Bill Spitzak
I think this is a good argument for having source size of zero mean "unset", just like it does for the destination size. Then you don't have to worry about this at all. Pekka Paalanen wrote: From: Pekka Paalanen Ensure, that the resulting surface size is at least 1x1, even when destination s

Re: [PATCH] shell: position input panel layer above fullscreen layer

2014-04-02 Thread Kristian Høgsberg
On Wed, Mar 05, 2014 at 12:21:34PM +0100, Manuel Bachmann wrote: > When a client calls the input panel (weston-keyboard e.g.) > and then goes fullscreen, the panel will not be hidden > anymore. > > Signed-off-by: Manuel Bachmann > --- Makes sense, applied. Kristian > desktop-shell/input-panel

Re: [PATCH 2/2] compositor: use Mod-Tab to show/raise minimized surfaces

2014-04-02 Thread Kristian Høgsberg
On Wed, Feb 26, 2014 at 03:53:11PM +0100, Manuel Bachmann wrote: > Temporarily show minimized surfaces when switching between > surfaces with the keyboard. If the final selected one was > minimized, it will be restored. > > Signed-off-by: Manuel Bachmann Thanks, both patches applied. Kristian

Re: [PATCH weston] compositor: export weston_buffer_from_resource()

2014-04-02 Thread Kristian Høgsberg
On Thu, Dec 12, 2013 at 02:14:29PM +0100, Giulio Camuffo wrote: > This is needed to allow shell plugins to implement their own > screenshooter. > --- Make sense, committed. Kristian > src/compositor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/compositor.c b/s

Re: [PATCH fullscreen-shell v5 18/18] Add a screen sharing plugin

2014-04-02 Thread Andrew Wedgbury
On Tue, 18 Mar 2014, Jason Ekstrand wrote: +static struct shared_output * +weston_output_share(struct weston_output *output, + const char *path, char *const argv[]) +{ + int sv[2]; + char str[32]; + pid_t pid; + sigset_t allsigs; + + if (socketpai

Re: [RFC libwayland] Track protocol object versions inside wl_proxy.

2014-04-02 Thread Jason Ekstrand
On Wed, Apr 2, 2014 at 9:51 AM, Jasper St. Pierre wrote: > Does this help clean up client code? Can you give an example of how a > client would use this? > Without this, the client has to track versions of everything if it's going to do anything version-dependent with a protocol object. If it's

Re: [PATCH weston v4 15/15] Add a screen sharing plugin

2014-04-02 Thread Andrew Wedgbury
Hi, On Wed, 2 Apr 2014, Jason Ekstrand wrote: On Apr 2, 2014 8:31 AM, "Manuel Bachmann" wrote: > > HI Jason, >   > Thanks for submitting this interesting patch ; just tested it, works very well ! >   > There's one missing thing, though : in "screen-share.c", you're using the "os_create_cr

Re: [RFC libwayland] Track protocol object versions inside wl_proxy.

2014-04-02 Thread Jasper St. Pierre
Does this help clean up client code? Can you give an example of how a client would use this? On Wed, Apr 2, 2014 at 10:48 AM, Jason Ekstrand wrote: > It's worth noting that there is one small backwards-compatability issue > here. Namely, if the client is built against protocol stubs from an > e

Re: [RFC libwayland] Track protocol object versions inside wl_proxy.

2014-04-02 Thread Jason Ekstrand
It's worth noting that there is one small backwards-compatability issue here. Namely, if the client is built against protocol stubs from an earlier version of libwayland but links against a library built against a newer version, then all objects created by the client will report a version of 1. T

Re: [PATCH V2 0/8] Add weston randr protocol

2014-04-02 Thread Bryce W. Harrington
On Wed, Apr 02, 2014 at 07:34:11AM +, Wang, Quanxian wrote: > Thanks Bryce's information and suggestion. Your suggestion and randr history > are really appreciated. > > >As GUI interfaces came into being, they > >had to reinvent the user-oriented logic already in the xrandr tool, and > >besi

RE: [PATCH V2 0/8] Add weston randr protocol

2014-04-02 Thread Wang, Quanxian
Thanks Bryce's information and suggestion. Your suggestion and randr history are really appreciated. >As GUI interfaces came into being, they >had to reinvent the user-oriented logic already in the xrandr tool, and >besides the >duplication of effort we saw the same mistakes made over and over.

[PATCH weston] protocol,compositor: wl_viewport destination 1x1 min

2014-04-02 Thread Pekka Paalanen
From: Pekka Paalanen Ensure, that the resulting surface size is at least 1x1, even when destination size is not set and source size is zero. Previously this lead to zero surface size. Tested by hacking clients/scaler.c to set src_width and src_height to 0. Signed-off-by: Pekka Paalanen --- T