profile/ivi/weston-ivi-shell.git
11 years agocompositor-drm: Assign unique output names like xrandr does
Kristian Høgsberg [Thu, 26 Jul 2012 21:57:15 +0000 (17:57 -0400)]
compositor-drm: Assign unique output names like xrandr does

11 years agocompositor: Load modules with RTLD_NOW so we get missing symbols up front
Kristian Høgsberg [Thu, 26 Jul 2012 15:39:26 +0000 (11:39 -0400)]
compositor: Load modules with RTLD_NOW so we get missing symbols up front

Otherwise we have no way to clean up when we hit something undefined.

11 years agowindow: Handle Alt-F4 to close windows
Kristian Høgsberg [Wed, 25 Jul 2012 20:35:28 +0000 (16:35 -0400)]
window: Handle Alt-F4 to close windows

11 years agowindow.c: Remove xkb leftovers
Andre Heider [Wed, 25 Jul 2012 17:10:33 +0000 (19:10 +0200)]
window.c: Remove xkb leftovers

11 years agogears: add fullscreen support
Olivier Blin [Wed, 25 Jul 2012 12:33:42 +0000 (14:33 +0200)]
gears: add fullscreen support

11 years agotests: Use pkg-config to find setbacklight CFLAGS and libs
Damien Lespiau [Wed, 25 Jul 2012 13:51:09 +0000 (14:51 +0100)]
tests: Use pkg-config to find setbacklight CFLAGS and libs

setbacklight depends on udev and drm, one cannot just add the -l flags
if you want to support unusual install paths.

11 years agoBump version to 0.95.0
Kristian Høgsberg [Tue, 24 Jul 2012 20:01:29 +0000 (16:01 -0400)]
Bump version to 0.95.0

11 years agodesktop-shell: Break command lines into env vars, executable and arguments
Kristian Høgsberg [Tue, 24 Jul 2012 02:59:33 +0000 (22:59 -0400)]
desktop-shell: Break command lines into env vars, executable and arguments

We now support specifying environment variables and arguments in launchers
by saying

  path=GDK_BACKEND=wayland gnome-terminal --full-screen

for example.

https://bugs.freedesktop.org/show_bug.cgi?id=47920

11 years agoimage: Add fullscreen support
Kristian Høgsberg [Tue, 24 Jul 2012 02:00:21 +0000 (22:00 -0400)]
image: Add fullscreen support

11 years agowindow.c: Add fullscreen handler to keep fullscreen state consistent
Kristian Høgsberg [Tue, 24 Jul 2012 01:56:31 +0000 (21:56 -0400)]
window.c: Add fullscreen handler to keep fullscreen state consistent

11 years agodnd: Clip flowers to window content area
Kristian Høgsberg [Tue, 24 Jul 2012 01:32:46 +0000 (21:32 -0400)]
dnd: Clip flowers to window content area

https://bugs.freedesktop.org/show_bug.cgi?id=52420

11 years agoUpdate src/weston-egl-ext.h
Kristian Høgsberg [Tue, 24 Jul 2012 00:54:42 +0000 (20:54 -0400)]
Update src/weston-egl-ext.h

11 years agoevdev: Release weston_seat with underlying evdev device
Daniel Stone [Mon, 23 Jul 2012 18:54:59 +0000 (19:54 +0100)]
evdev: Release weston_seat with underlying evdev device

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agoFix memory leak on compositor exit
Daniel Stone [Mon, 23 Jul 2012 18:54:58 +0000 (19:54 +0100)]
Fix memory leak on compositor exit

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agoevdev: Don't ignore multitouch touchscreens
Daniel Stone [Mon, 23 Jul 2012 18:54:57 +0000 (19:54 +0100)]
evdev: Don't ignore multitouch touchscreens

Most touchscreen drivers provide ABS_X and BTN_TOUCH for legacy
single-touch emulation modes, but this isn't mandatory.  Make sure we
don't ignore touchscreens with provide multitouch events with the new
API only.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
11 years agowcap: Fix typo in usage output.
Scott Moreau [Mon, 23 Jul 2012 17:53:18 +0000 (11:53 -0600)]
wcap: Fix typo in usage output.

11 years agowcap: Clarify help message, don't dump yuv4mpeg2 to terminal
Kristian Høgsberg [Mon, 23 Jul 2012 15:10:20 +0000 (11:10 -0400)]
wcap: Clarify help message, don't dump yuv4mpeg2 to terminal

11 years agodesktop-shell: Declare grab_cursor as enum cursor_type.
Scott Moreau [Mon, 23 Jul 2012 00:23:52 +0000 (18:23 -0600)]
desktop-shell: Declare grab_cursor as enum cursor_type.

11 years agowcap: Add GCC_CFLAGS and fix more compiler warnings
Kristian Høgsberg [Mon, 23 Jul 2012 14:47:34 +0000 (10:47 -0400)]
wcap: Add GCC_CFLAGS and fix more compiler warnings

11 years agowcap: Declare variable with same sign as convert_to_yv12() expects.
Scott Moreau [Mon, 23 Jul 2012 00:23:51 +0000 (18:23 -0600)]
wcap: Declare variable with same sign as convert_to_yv12() expects.

11 years agoHandle new transform argument in wl_output.geometry event
Kristian Høgsberg [Sun, 22 Jul 2012 19:49:57 +0000 (15:49 -0400)]
Handle new transform argument in wl_output.geometry event

11 years agoxwm: Make override-redirect windows opaque
Kristian Høgsberg [Sun, 22 Jul 2012 19:32:45 +0000 (15:32 -0400)]
xwm: Make override-redirect windows opaque

11 years agoxwm: use last focused window for guessing transient parent
Tiago Vignatti [Fri, 20 Jul 2012 20:09:55 +0000 (23:09 +0300)]
xwm: use last focused window for guessing transient parent

On X the global absolute coordinates are sent in ConfigureNotify and transient
windows are mapped exactly on that position. On Wayland we don't have the
concept of global coordinates, and that's a problem for transient surfaces
without transient_for set because they rely on such hint for setting their
positioning.

So this solution is a workaround. It guesses a parent based on the last
focused window to determine the relative position of the transient surface.
This put transient windows of Chrome browser back to work.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
11 years agoxwm: Fix transient positioning
Tiago Vignatti [Fri, 20 Jul 2012 20:09:54 +0000 (23:09 +0300)]
xwm: Fix transient positioning

Commit eaee7841 took out the configure positioning of windows. This patch
brings it back and addresses also logic for resizing and sub-menus, that was
not covered on that commit.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
11 years agoxwm: Initialize window decoration always as !override
Tiago Vignatti [Fri, 20 Jul 2012 20:09:53 +0000 (23:09 +0300)]
xwm: Initialize window decoration always as !override

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
11 years agoweston.ini: Move binding-modifier to shell section.
Scott Moreau [Thu, 19 Jul 2012 06:49:06 +0000 (00:49 -0600)]
weston.ini: Move binding-modifier to shell section.

The variable has no effect as part of the screensaver section.

11 years agoExtract the text_model_manager interface from input_method
Philipp Brüschweiler [Wed, 11 Jul 2012 20:25:31 +0000 (22:25 +0200)]
Extract the text_model_manager interface from input_method

This is necessary because all clients need a way to create
text_models, but only one client at a time can be bound to
the input_method global (else we don't know to whom we are
supposed to send events).

11 years agotext-backend.c: Whitespace fixes
Kristian Høgsberg [Sun, 22 Jul 2012 15:51:42 +0000 (11:51 -0400)]
text-backend.c: Whitespace fixes

Use a temp variable to break a couple of long lines, break a few long
lines.

11 years agotext-backend: minor fixes
Philipp Brüschweiler [Wed, 11 Jul 2012 20:25:30 +0000 (22:25 +0200)]
text-backend: minor fixes

* make sure deactivation is done consistently when a text_model
  is destroyed
* zero out allocated objects

11 years agoeditor: deactivate old text model before activating the new one
Philipp Brüschweiler [Wed, 11 Jul 2012 20:25:29 +0000 (22:25 +0200)]
editor: deactivate old text model before activating the new one

11 years agocompositor: Destroy pending surface callbacks when destroying surface
Kristian Høgsberg [Sun, 22 Jul 2012 15:33:14 +0000 (11:33 -0400)]
compositor: Destroy pending surface callbacks when destroying surface

Reported by Dima Ryazanov <dima@gmail.com> in
<1341937691-26234-1-git-send-email-dima@gmail.com> but we also need to
destroy callbacks when the surface is destroyed normally.

12 years agoconfigure.ac: Don't require vpx now that we don't build the webm encoder
Kristian Høgsberg [Fri, 20 Jul 2012 22:05:10 +0000 (18:05 -0400)]
configure.ac: Don't require vpx now that we don't build the webm encoder

12 years agoshell: Remove unused pointer_end_grab
Tiago Vignatti [Fri, 20 Jul 2012 16:41:13 +0000 (19:41 +0300)]
shell: Remove unused pointer_end_grab

shell_grab_end already does that for us.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years agoxwm: Don't try to change frame cursor when there's no decoration
Tiago Vignatti [Fri, 20 Jul 2012 16:41:12 +0000 (19:41 +0300)]
xwm: Don't try to change frame cursor when there's no decoration

It was causing some artifacts on chrome.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years agoshell: Center fullscreen surface whenever new buffer is attached
Kristian Høgsberg [Fri, 20 Jul 2012 19:30:36 +0000 (15:30 -0400)]
shell: Center fullscreen surface whenever new buffer is attached

12 years agoFlesh out README a bit, link to building instructions
Kristian Høgsberg [Fri, 20 Jul 2012 16:26:23 +0000 (12:26 -0400)]
Flesh out README a bit, link to building instructions

12 years agoclients: Implement minimum size for toy toolkit clients
Kristian Høgsberg [Fri, 20 Jul 2012 15:32:51 +0000 (11:32 -0400)]
clients: Implement minimum size for toy toolkit clients

We default to setting the minimum size to the initial size.  To set a
different minimum size than the initial size, set the minimum size first
then then initial size.  Good enough for a toy toolkit.

https://bugs.freedesktop.org/show_bug.cgi?id=50263

12 years agocompositor: Update to use new tokens for EGL_WL_bind_wayland_display
Kristian Høgsberg [Thu, 19 Jul 2012 18:20:20 +0000 (14:20 -0400)]
compositor: Update to use new tokens for EGL_WL_bind_wayland_display

12 years agoNever install weston setuid
Kristian Høgsberg [Thu, 19 Jul 2012 18:13:06 +0000 (14:13 -0400)]
Never install weston setuid

We don't support this anymore.  weston requires a setuid helper (such as
weston-launch) to run under kms, and should never run as root itself.

Disabe the setuid warning in configure.ac since we now only install the
minimal weston-launch as setuid.

12 years agoshell: Set shell_interface.shell at initialization
Kristian Høgsberg [Thu, 19 Jul 2012 18:02:00 +0000 (14:02 -0400)]
shell: Set shell_interface.shell at initialization

12 years agocompositor-drm: Remove cursor debug message
Kristian Høgsberg [Wed, 18 Jul 2012 21:23:41 +0000 (17:23 -0400)]
compositor-drm: Remove cursor debug message

12 years agocompositor-drm: Only update hw cursor contents when it changes
Kristian Høgsberg [Wed, 18 Jul 2012 16:09:58 +0000 (12:09 -0400)]
compositor-drm: Only update hw cursor contents when it changes

We avoid the memcpy, gbm_bo_write and the drmModeSetCursor ioctl per frame.

12 years agocompositor-drm: Only call drmModeMoveCursor() if hw cursor position changed
Kristian Høgsberg [Wed, 18 Jul 2012 16:08:37 +0000 (12:08 -0400)]
compositor-drm: Only call drmModeMoveCursor() if hw cursor position changed

Saves an ioctl per frame.

12 years agocompositor: Don't record surface damage when we move or transform surfaces
Kristian Høgsberg [Wed, 18 Jul 2012 16:02:51 +0000 (12:02 -0400)]
compositor: Don't record surface damage when we move or transform surfaces

surface->damage is for when the contents of the surface changes.  Instead,
use weston_surface_damage_below() to repaint the damaged area.  We avoid
unecessary uploading shm and hw cursor contents this way.

12 years agowcap: Just make wcap-decode dump YUV4MPEG2
Kristian Høgsberg [Wed, 18 Jul 2012 15:39:05 +0000 (11:39 -0400)]
wcap: Just make wcap-decode dump YUV4MPEG2

Instead of having a custom fork of the vpxenc tool in weston, we can
just dump raw YUV data in the YUV4MPEG2 format and feed that into the
upstream vpxenc.  This also works with theora_encoder and probably many
other encoders.

12 years agoshell: Default to maximize/fullscreen on current output
Kristian Høgsberg [Wed, 18 Jul 2012 13:54:04 +0000 (09:54 -0400)]
shell: Default to maximize/fullscreen on current output

12 years agocompositor: Free the right EGLImage
Kristian Høgsberg [Tue, 17 Jul 2012 18:21:25 +0000 (14:21 -0400)]
compositor: Free the right EGLImage

We forgot to index the image array and freed image[0] multiple times

12 years agocompositor-drm: Allocate hw cursor like other planes
Kristian Høgsberg [Sat, 14 Jul 2012 05:24:58 +0000 (01:24 -0400)]
compositor-drm: Allocate hw cursor like other planes

We no longer reserve the hw cursor for just the pointer sprite.  Any
surface that satisfies the requirements for the hw cursor can be used.

Of course that's more or less always the pointer sprite, but at least now
we don't hard-code the references to compositor->seat anymore.

12 years agocompositor-drm: Combine drm_output_set_cursor and weston_output_set_cursor
Kristian Høgsberg [Sat, 14 Jul 2012 05:06:28 +0000 (01:06 -0400)]
compositor-drm: Combine drm_output_set_cursor and weston_output_set_cursor

weston_output_set_cursor was the left-over of a core compositor cursor
helper that we moved into compositor-drm.c.

12 years agocompositor-drm: Assign primary framebuffer in assign_planes callout
Kristian Høgsberg [Sat, 14 Jul 2012 04:31:32 +0000 (00:31 -0400)]
compositor-drm: Assign primary framebuffer in assign_planes callout

Determining whether it was possible to use a surface buffer as the
primary framebuffer was always a bit of a hack.  Just before rendering,
we look at the second top-most surface to see if it's the right size and
position and then use it if it is.  If we have a hw cursor and a drm
plane on top, it's no longer the second top-most and it wouldn't be picked
even if it could work.

With this change, we inspect surfaces in drm_assign_planes and try to find
a candidate for the primary fb there.  We track the overlap like for
overlays and if there is a surface that's not overlapped and fills the
output we pick it.

This commit also consolidate the logic to track damage as we move a surface
in and out of the primary plane, which was missing in the drm plane case.

12 years agocompositor-drm: Support hardware scaling with drm planes
Kristian Høgsberg [Fri, 13 Jul 2012 19:25:07 +0000 (15:25 -0400)]
compositor-drm: Support hardware scaling with drm planes

The kms planes support scaling, so try to detect transformations that
are just translations + scaling and program the kms plane accordingly.

In particular, this lets us fullscreen a yuv surfaces with the scale method
and have the compositor use a kms plane for scaling and color conversion.

12 years agocompositor-drm: Follow gbm_bo_get_pitch rename to gbm_bo_get_stride
Kristian Høgsberg [Mon, 16 Jul 2012 20:44:16 +0000 (16:44 -0400)]
compositor-drm: Follow gbm_bo_get_pitch rename to gbm_bo_get_stride

It was always a confusing mis-nomer, fix it while we can.

12 years agocompositor-drm: Use gbm_bo_import instead of gbm_bo_create_from_egl_surface
Kristian Høgsberg [Sat, 14 Jul 2012 02:54:43 +0000 (22:54 -0400)]
compositor-drm: Use gbm_bo_import instead of gbm_bo_create_from_egl_surface

This lets us create the gbm bo from the wl_buffer instead of the
EGLImage.  With planar buffer, the EGLImage corresponds to a plane
and not the entire planar buffer.

More importantly, with some YUV formats (packed YUYV and similar) we use
several EGLImages to sample the different components, but KMS only
want one plane in that case.

12 years agoxwm: set the root window pointer to left_ptr
Tiago Vignatti [Mon, 16 Jul 2012 16:15:37 +0000 (12:15 -0400)]
xwm: set the root window pointer to left_ptr

More pretty and also consistent with toytoolkit.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years agoxwm: set appropriate cursors for the frame window
Tiago Vignatti [Mon, 16 Jul 2012 16:09:19 +0000 (12:09 -0400)]
xwm: set appropriate cursors for the frame window

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years agoxwayland: add simple xcb-cursor hook based on libXcursor
Tiago Vignatti [Mon, 16 Jul 2012 16:02:08 +0000 (12:02 -0400)]
xwayland: add simple xcb-cursor hook based on libXcursor

It's in fact based on the core of libXcursor, which doesn't bring any Xlib
dependency.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years agoxwayland: Look up 32 depth rgba render format as well
Kristian Høgsberg [Mon, 16 Jul 2012 15:57:08 +0000 (11:57 -0400)]
xwayland: Look up 32 depth rgba render format as well

12 years agoxwayland: Use the right length for iterating through the formats array
Kristian Høgsberg [Mon, 16 Jul 2012 15:52:40 +0000 (11:52 -0400)]
xwayland: Use the right length for iterating through the formats array

Spotted by Tiago Vignatti, minimal fix to just use the right length.

12 years agodesktop-shell: Don't get a shell surface for the grab surface
Ander Conselvan de Oliveira [Mon, 16 Jul 2012 11:15:50 +0000 (14:15 +0300)]
desktop-shell: Don't get a shell surface for the grab surface

The grab surface does not depend on any of the shell surface
functionality, so don't allocated one.

12 years agowindow: Workaround a stuck frame callback on the cursor surface
Ander Conselvan de Oliveira [Mon, 16 Jul 2012 11:15:49 +0000 (14:15 +0300)]
window: Workaround a stuck frame callback on the cursor surface

It is possible that a client loses the focus between receiving a
pointer.enter event and sending a pointer.set_cursor request. In that
case, the cursor surface might not be mapped and the frame callback
requested on it will never trigger.

Work around this by trying to remap the cursor surface whenever there
is a frame callback and the serial for the enter event is higher than
the cursor serial.

12 years agoshell: Don't ping the grab surface
Ander Conselvan de Oliveira [Mon, 16 Jul 2012 11:15:48 +0000 (14:15 +0300)]
shell: Don't ping the grab surface

If the grab surface happens to be unresponsive, the busy cursor grab
will be started and that will cause the grab surface to receive focus,
which in turn leads to it being pingged again. Break the cycle by not
sending pings to it. If the shell is unresponsive it won't be able to
set the busy cursor anyway.

12 years agocompositor: Don't send wl_surface.enter/leave if we didn't find a resource
Kristian Høgsberg [Thu, 12 Jul 2012 16:34:43 +0000 (12:34 -0400)]
compositor: Don't send wl_surface.enter/leave if we didn't find a resource

12 years agoshell: Scale fullscreen surface without cropping them, center on output
Kristian Høgsberg [Thu, 12 Jul 2012 16:32:31 +0000 (12:32 -0400)]
shell: Scale fullscreen surface without cropping them, center on output

12 years agotoytoolkit: Remove obsolete function window_set_custom().
Scott Moreau [Thu, 12 Jul 2012 02:57:15 +0000 (20:57 -0600)]
toytoolkit: Remove obsolete function window_set_custom().

12 years agowscreensaver: Fix --demo mode.
Scott Moreau [Thu, 12 Jul 2012 02:57:14 +0000 (20:57 -0600)]
wscreensaver: Fix --demo mode.

12 years agocompositor: remove useless weston_compositor_repick call
Tiago Vignatti [Wed, 11 Jul 2012 21:46:10 +0000 (00:46 +0300)]
compositor: remove useless weston_compositor_repick call

compositor->focus was just unset, and weston_compositor_repick() has no
effect.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
12 years agoRemove dead code
Philipp Brüschweiler [Wed, 11 Jul 2012 13:19:23 +0000 (15:19 +0200)]
Remove dead code

window->title is always NULL inside window_create_internal

12 years agoimage-loader: Use pixman_image_t, not struct pixman_image_t
Kristian Høgsberg [Wed, 11 Jul 2012 19:45:59 +0000 (15:45 -0400)]
image-loader: Use pixman_image_t, not struct pixman_image_t

12 years agoimage-loader: don't leak pixman_image bits data
Rafal Mielniczuk [Wed, 11 Jul 2012 16:48:25 +0000 (18:48 +0200)]
image-loader: don't leak pixman_image bits data

Set the pixman_image destroy function to free bits data

12 years agoclipboard: add seat destroy signal handler
Rafal Mielniczuk [Wed, 11 Jul 2012 16:48:12 +0000 (18:48 +0200)]
clipboard: add seat destroy signal handler

12 years agocompositor: handle YUV buffers.
Gwenole Beauchesne [Fri, 20 Apr 2012 09:44:06 +0000 (11:44 +0200)]
compositor: handle YUV buffers.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoUpdate weston-egl-ext.h with EGL_WL_bind_wayland_display changes
Kristian Høgsberg [Tue, 10 Jul 2012 19:51:13 +0000 (15:51 -0400)]
Update weston-egl-ext.h with EGL_WL_bind_wayland_display changes

12 years agocompositor: add YUV shaders.
Gwenole Beauchesne [Fri, 20 Apr 2012 09:22:16 +0000 (11:22 +0200)]
compositor: add YUV shaders.

Add shaders for NV12 (2 planes), YUV (3 planes) and YUYV (sampled as 2 planes)

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agocompositor: factor out RGB shader.
Gwenole Beauchesne [Fri, 20 Apr 2012 09:15:51 +0000 (11:15 +0200)]
compositor: factor out RGB shader.

Simplify RGB shader code and split off common code that could be reused.
This is preparatory work for YUV shaders.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agocompositor: prepare for multi-planar surfaces.
Gwenole Beauchesne [Fri, 20 Apr 2012 09:07:06 +0000 (11:07 +0200)]
compositor: prepare for multi-planar surfaces.

Make weston_surface::texture and ::surface an array, while keeping
[0] for RGB surfaces.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
12 years agoshell: Use the correct the member name when iterating panel_list
Juan Zhao [Tue, 10 Jul 2012 05:24:09 +0000 (22:24 -0700)]
shell: Use the correct the member name when iterating panel_list

It does not get the correct panel height for now.  The memeber of list
to read should be layer_link not link now.

Signed-off-by: Juan Zhao <juan.j.zhao@linux.intel.com>
12 years agowindow.c: Only set input region when we have a decoration
Kristian Høgsberg [Tue, 10 Jul 2012 02:22:37 +0000 (22:22 -0400)]
window.c: Only set input region when we have a decoration

https://bugs.freedesktop.org/show_bug.cgi?id=50490

12 years agotests: Handle modifier event in test-client.c
Kristian Høgsberg [Tue, 10 Jul 2012 02:17:03 +0000 (22:17 -0400)]
tests: Handle modifier event in test-client.c

We need the handle the newly added modifiers event.

https://bugs.freedesktop.org/show_bug.cgi?id=51567

12 years agoOnly position fullscreen surface in surface->configure callback
Kristian Høgsberg [Tue, 10 Jul 2012 01:43:22 +0000 (21:43 -0400)]
Only position fullscreen surface in surface->configure callback

We end up calling shell_configure_fullscreen() from activate(), where
surface->buffer may be NULL.  Instead, call it on initial map and
first buffer attach after surface type change.  Both code path
come from the surface->configure callback where surface->buffer is know
to be non-NULL.

https://bugs.freedesktop.org/show_bug.cgi?id=51678

12 years agowcap-snapshot: add return value
Jan Engelhardt [Mon, 9 Jul 2012 15:18:10 +0000 (17:18 +0200)]
wcap-snapshot: add return value

Distro build with rpmlint aborts due to missing exit status.

12 years agotoytoolkit: Remove redundant XKB free
Daniel Stone [Mon, 9 Jul 2012 11:27:28 +0000 (12:27 +0100)]
toytoolkit: Remove redundant XKB free

We already unref these in fini_xkb().

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
12 years agoAdd cscope.out to .gitignore
Martin Olsson [Mon, 9 Jul 2012 09:35:53 +0000 (11:35 +0200)]
Add cscope.out to .gitignore

12 years agoclients: Free resources on exit in eventdemo
Martin Olsson [Sun, 8 Jul 2012 09:11:18 +0000 (11:11 +0200)]
clients: Free resources on exit in eventdemo

12 years agoclients: Silence 2x gcc 4.6.3 "warn_unused_result" compiler warnings
Martin Olsson [Sun, 8 Jul 2012 01:03:47 +0000 (03:03 +0200)]
clients: Silence 2x gcc 4.6.3 "warn_unused_result" compiler warnings

window.c:1173:6: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
desktop-shell.c:305:6: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]

12 years agowcap: Plug memory leak in wcap_decoder_create()
Martin Olsson [Sun, 8 Jul 2012 01:03:46 +0000 (03:03 +0200)]
wcap: Plug memory leak in wcap_decoder_create()

12 years agoxwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c
Martin Olsson [Sun, 8 Jul 2012 01:03:45 +0000 (03:03 +0200)]
xwayland: Don't leak fd while reading lock file in src/xwayland/launcher.c

12 years agocompositor-x11: Add error handling in x11_compositor_create()
Martin Olsson [Sun, 8 Jul 2012 01:03:44 +0000 (03:03 +0200)]
compositor-x11: Add error handling in x11_compositor_create()

12 years agocompositor-wayland: Add error handling in wayland_compositor_create()
Martin Olsson [Sun, 8 Jul 2012 01:03:43 +0000 (03:03 +0200)]
compositor-wayland: Add error handling in wayland_compositor_create()

12 years agocompositor-android: Add proper error handling in android_compositor_create()
Martin Olsson [Sun, 8 Jul 2012 01:03:42 +0000 (03:03 +0200)]
compositor-android: Add proper error handling in android_compositor_create()

12 years agoshared: Don't leak file descriptor in shared/image-loader.c
Martin Olsson [Sun, 8 Jul 2012 01:03:41 +0000 (03:03 +0200)]
shared: Don't leak file descriptor in shared/image-loader.c

12 years agoclients: Don't leak "menu" on error path in clients/window.c
Martin Olsson [Sun, 8 Jul 2012 01:03:40 +0000 (03:03 +0200)]
clients: Don't leak "menu" on error path in clients/window.c

12 years agoclients: Add clients/weston-screensaver to clients/.gitignore
Martin Olsson [Sun, 8 Jul 2012 01:03:38 +0000 (03:03 +0200)]
clients: Add clients/weston-screensaver to clients/.gitignore

12 years agocompositor: Always empty the input region of the pointer surface
Ander Conselvan de Oliveira [Wed, 4 Jul 2012 12:48:29 +0000 (15:48 +0300)]
compositor: Always empty the input region of the pointer surface

Otherwise a surface.attach request might cause the input region to be
reset to the default value (the entire surface) causing it to receive
focus.

Tiago ran into this problem with xwayland.

12 years agoweston: Clip window title text to the frame
Martin Minarik [Mon, 2 Jul 2012 21:05:50 +0000 (23:05 +0200)]
weston: Clip window title text to the frame

Fixes an issue with text overflowing the available frame space.

12 years agocompositor-x11: Set make and model so we don't send NULL strings
Kristian Høgsberg [Tue, 3 Jul 2012 01:24:57 +0000 (21:24 -0400)]
compositor-x11: Set make and model so we don't send NULL strings

12 years agoshell: Use desired output when sending configure events when maximised
Rob Bradford [Mon, 2 Jul 2012 18:00:19 +0000 (19:00 +0100)]
shell: Use desired output when sending configure events when maximised

With shell_surface.set_maximised the caller can provide an output to maximise
to or the default output will be used. With the corresponding configure we
should use the dimensions from the chosen output not the output the surface
was currently on.

Similarly when calculating the position for the window in the map() function
we should use the desired output again.

There is no need to assign shsurf->output to es->output since that happens in
the map() function later.

12 years agocompositor: Correctly calculate changed sub image rectangle
Rob Bradford [Mon, 2 Jul 2012 16:33:40 +0000 (17:33 +0100)]
compositor: Correctly calculate changed sub image rectangle

When calling glTexSubImage2D for sub image updates for SHM surfaces the
changed rectangle was being wrongly calculated. This resulted in interesting
redraw artefacts for clients using SHM.

12 years agoterminal: Extend selection to end of line when selecting past last char
Kristian Høgsberg [Mon, 2 Jul 2012 01:31:46 +0000 (21:31 -0400)]
terminal: Extend selection to end of line when selecting past last char

12 years agoterminal: Insert newlines when copying multiple lines
Kristian Høgsberg [Mon, 2 Jul 2012 01:25:41 +0000 (21:25 -0400)]
terminal: Insert newlines when copying multiple lines

12 years agoclipboard: initialise clipboard memory after creation
Rafal Mielniczuk [Sat, 30 Jun 2012 16:33:34 +0000 (18:33 +0200)]
clipboard: initialise clipboard memory after creation

In case we don't, weston segfault in clipboard_set_selection
on:
if (clipboard->source)
clipboard_source_unref(clipboard->source);