Commit graph

3175 commits

Author SHA1 Message Date
Kristian Høgsberg
a0ec31aa5e gl-renderer.c: Cast wl_resource to void * to avoid warning
The extension has been updated to take a wl_resource * now, but to avoid
warnings when compiling against older versions, just cast to void *.
2013-08-20 16:11:07 -07:00
Kristian Høgsberg
e7d3a309d6 gl-renderer: Test for GL_EXT_unpack_subimage not GL_UNPACK_ROW_LENGTH
It is defined by the mesa #include, which is just a copy of the official
Khronos header.  It's just defined in a different section than the
extension tokens.  In the mean time, the extension tokens were renamed
to add a _EXT suffix (eg GL_UNPACK_ROW_LENGTH -> GL_UNPACK_ROW_LENGTH_EXT)
and we silently failed to used the subimage extension.
2013-08-20 16:11:06 -07:00
Kristian Høgsberg
21f7c922a6 nested: Update to use weston-nested-client binary name 2013-08-20 16:11:06 -07:00
Stefan Schmidt
51595b9b22 clients: Fix typo in simple-touch and simple-shm.
listenter -> listener. Better fix it now before it spreads further.

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
2013-08-20 16:11:06 -07:00
Bryce Harrington
9bdc1d5988 Drop extraneous duplicate header includes
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-20 16:11:06 -07:00
Kristian Høgsberg
0fea291f5a compositor: Check wl_resource_create() return value
This fixes a number of call-sites to properly check for NULL and return
the no memory event when allocation fail.
2013-08-20 16:11:06 -07:00
Kristian Høgsberg
95151bfc8e data-device.c: Handle failure to allocate offer in weston_drag_set_focus
If we fail to allocate and send the offer, don't send the drag enter and
don't set the drag focus so we don't send motion events or leave.
2013-08-20 16:11:06 -07:00
Kristian Høgsberg
403931ed22 data-device.c: Handle OOM in wl_data_source_send_offer()
If we fail to allocate the resource, clean up and return NULL.
2013-08-20 16:11:06 -07:00
Rob Bradford
62af918cdb desktop-shell: Refactor launcher configuration reading to avoid leaking 2013-08-20 16:11:06 -07:00
Rob Bradford
d3cca9f8d2 compositor-x11: Don't leak the looked up name for skipped outputs 2013-08-20 16:11:06 -07:00
Rob Bradford
35483aaab9 window: Free the allocated display if we fail to setup libxkbcommon 2013-08-20 16:11:05 -07:00
Kristian Høgsberg
6b2e3f3722 clients: Introduce xmalloc() and use it a few places
For the sample clients we introduce xmalloc() to simplify OOM-handling.
This patch only converts a few callsites, but this will be our strategy
going forward.
2013-08-20 16:11:05 -07:00
Rob Bradford
926a796173 tablet-shell: Avoid leaking the path on failed icon loading 2013-08-20 15:48:06 -07:00
Rob Bradford
f01d5647dc image: Free filename saved into structure on error path 2013-08-20 15:48:01 -07:00
Rob Bradford
f49bbf9755 compositor-drm: Use a format width parameter for the modeline sscanf 2013-08-20 15:47:55 -07:00
Rob Bradford
4303a8c6ab compositor-fbdev: Avoid dereferencing a pointer in freed memory
fbdev_output_destroy will free the memory passed into in and since we
want to pass the device name into fbdev_output_create we need to save
this to an intermediate value
2013-08-20 15:47:52 -07:00
Rob Bradford
86b18279d0 wcap-decode: Close file descriptor when destroying the decoder 2013-08-20 15:47:49 -07:00
Armin K
c4ebcd78a7 autotools: Correctly prefix simple-egl client name 2013-08-20 15:47:44 -07:00
Kristian Høgsberg
c5c9571bec weston-launch: Unblock our signalfd signals before execing child
Giovanni Campagna ran into this with mutter.
2013-08-20 15:47:34 -07:00
Rob Bradford
7adbbddee9 clipboard: remove the weston_seat destruction listener on destroy
Prior to freeing the memory in which the link node for the signal is
emedded we should remove the link node from the list to prevent the list
from being corrupted.

https://bugs.freedesktop.org/show_bug.cgi?id=67231
2013-08-20 15:44:03 -07:00
Rob Bradford
6c0a5ec022 text-backend: remove the weston_seat destruction listener on destroy
Prior to freeing the memory in which the link node for the signal is
emedded we should remove the link node from the list to prevent the list
from being corrupted.

https://bugs.freedesktop.org/show_bug.cgi?id=67231
2013-08-20 15:43:59 -07:00
Bryce W. Harrington
b3174f5fcf screenshot: Drop extraneous 'is' to improve warning msg grammar
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-08-20 15:43:54 -07:00
Michael Fu
41a293b5b8 Reset touch focus in unmap
Otherwise, there will be race condition of visiting invalid surface data.
2013-08-20 15:43:51 -07:00
Louis-Francis Ratté-Boulianne
89f11d87ea xwayland: Remove transform listener when destroying the wm
Fix a segfault occuring after the last X window was closed.
2013-08-20 15:43:47 -07:00
Armin K
8cb42738af autotools: Add an option to install demo clients
This patch adds a configure option which will enable
user to install demo clients if desired. It is disabled
by default.

v2: Remove AC_DEFINE as it is not necesary
2013-08-20 15:43:40 -07:00
Armin K
e9afc57787 autotools: Rename demo clients
Prefix demo clients names with weston-, so they can
be installed if user desires.
2013-08-20 15:43:34 -07:00
Kristian Høgsberg
8d0ddf9b04 udev: Use WL_OUTPUT udev attribute for pairing touchscreens to outputs 2013-08-20 15:42:54 -07:00
Kristian Høgsberg
fb5a743406 evdev: Suport old-style single-touch touch screens
These screens send only BTN_TOUCH and ABS_X/Y.
2013-07-29 10:41:03 -07:00
Kristian Høgsberg
4f83c8a62b evdev: Use temporary x and y coordinates when applying calibration
Don't overwrite device->abs.x halfway through the matrix multiplication.
2013-07-29 10:40:58 -07:00
Kristian Høgsberg
38e8d70b2d evdev: Don't add output offset in evdev_process_absolute_motion()
We do that in weston_output_transform_coordinate() now.
2013-07-29 10:40:55 -07:00
Kristian Høgsberg
1330bf7b0d clipboard: Fix fd leak
We never closed the reading end of the pipe after copying data to the
clipboard.
2013-07-29 10:40:12 -07:00
Kristian Høgsberg
9e5d7d17a7 shell: Remove redundant weston_pointer field from shell_grab
This is already in weston_grab.
2013-07-25 09:50:34 -07:00
Kristian Høgsberg
97e806f138 evdev: Use weston_output_transform_coordinate for evdev touch screens 2013-07-25 09:50:28 -07:00
Kristian Høgsberg
98c774f1c0 compositor: Move device coordinate transform helper to compositor.c
This function transform input coordinates from output space to
compositor space and is useful for X input as well as touch screen input.
2013-07-25 09:50:15 -07:00
Kristian Høgsberg
5addaa1820 simple-touch: Attach buffer before posting damage 2013-07-25 09:49:43 -07:00
Kristian Høgsberg
18684d442e weston-launch: Ignore sighup
When our session terminates all processes get a SIGHUP.  We need to ignore
that in weston-launch and stay around to help weston shut down properly.

https://bugs.freedesktop.org/show_bug.cgi?id=63004
2013-07-22 16:34:41 -07:00
Kristian Høgsberg
a684b5a3d5 Bump version to 1.2.0 2013-07-13 01:30:00 -04:00
Rob Bradford
5f087746ee window: Disregard motion events outside our current surface dimensions
It is possible to receive a motion event that was generated by the
compositor based on a pick of a surface of old dimensions. This was
triggerable on toytoolkit clients when minimising. The new window
dimensions were propagated through the widget hierarchy before the event
was dispatched.

This issue was triggering a segfault due to the focussed widget being
lost as the client code tried to identify which widget should have the
focus using co-ordinates outside the dimensions of the surface.

https://bugs.freedesktop.org/show_bug.cgi?id=66795
2013-07-13 00:00:49 -04:00
Rob Bradford
7000283741 editor: Support shift-left/right for selecting text
If the shift modifier is active then we don't make the cursor and the
anchor the same and as a result we develop a selection in the direction
that the arrow key gets pressed in.

https://bugs.freedesktop.org/show_bug.cgi?id=66802
2013-07-12 23:56:18 -04:00
Rob Bradford
bdeb5d224d shell: Respect output transformation for input panel surface
Rather than using the dimensions in the mode we can use the recently
added output width and height members which are updated to reflect any
output rotation.

https://bugs.freedesktop.org/show_bug.cgi?id=66798
2013-07-12 23:56:18 -04:00
Rob Bradford
3c9d967688 window: Allow popup menu when the window is maximised
https://bugs.freedesktop.org/show_bug.cgi?id=66793
2013-07-12 23:56:18 -04:00
Peng Wu
3cd1f860a0 wcap: Fix README typo 2013-07-12 21:53:56 -04:00
Yanko Kaneti
9b78adfe9d configure.ac: Set automake conditional after testing for colord pkg 2013-07-10 12:09:45 -04:00
Kristian Høgsberg
46cb4a9513 Bump versionto 1.1.91 2013-07-09 19:51:54 -04:00
Peter Maatman
b9a23f4fb8 clients/editor.c: Draw cursor at correct verical position
With this patch, the editor cursor now moves up and down correctly
instead of having the top part stuck on the first line.
2013-07-09 19:43:53 -04:00
Peter Maatman
08c38d4bc5 clients/editor.c: Ignore ESC key
Otherwise, editor would print the "unknown UTF-8 glyph" boxes.
2013-07-09 19:41:12 -04:00
Rob Bradford
e1ad1d2498 tablet-shell: Avoid infinite loop when unlocking
weston_compositor_wake will fire the signal that the unlock handler is
setup as the listener for. Instead lets change the state to HOME which
unlocks.
2013-07-09 17:11:31 -04:00
Rob Bradford
6cf9b01e88 tablet-shell: Fix copy and paste error in unlock handler
The signal handler was using the wrong member to find the containing
structure of the unlock listener.

https://bugs.freedesktop.org/show_bug.cgi?id=57637
2013-07-09 17:10:34 -04:00
Kristian Høgsberg
919cddb0ab Convert to wl_global_create/destroy() 2013-07-09 02:02:11 -04:00
Kristian Høgsberg
ac3a8b83fd tests: Fix warnings in config-parser-test 2013-07-09 02:02:11 -04:00