Peter Hutterer
b1bc4a68b0
Add zalloc(size_t) allocator function
...
Same as calloc(1, len).
11 years ago
Armin K
214e9ce6ff
cms-colord: Don't redefine _GNU_SOURCE
...
warning: "_GNU_SOURCE" redefined [enabled by default]
See commit c228e23b
11 years ago
Kristian Høgsberg
1c4f163c6d
gl-renderer: Only check for subimage when we have extension at compile time
...
If weston is compiled against a gl2ext.h that doesn't have the subimage
extension, but then run against a gles2 library that does provide it,
we end up disabling the glTexImage2D falback without having the subimage
code paths compiled in.
11 years ago
Kristian Høgsberg
59758a8a9e
Add workaround for broken GL_EXT_unpack_subimage tokens
...
Earlier versions of gl2ext.h defined the GL_EXT_unpack_subimage tokens
without the _EXT suffix. That's been fixed and we're using the _EXT
tokens now, but just in case we're using an older, broken header, define
the _EXT tokens manually.
11 years ago
Kristian Høgsberg
4722939d18
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 *.
11 years ago
Kristian Høgsberg
ce7a5d8794
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.
11 years ago
Kristian Høgsberg
3c17933de8
Use #define WL_HIDE_DEPRECATED to avoid deprecated warnings for wl_buffer
11 years ago
Bryce Harrington
c814c58adc
Drop extraneous duplicate header includes
...
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
11 years ago
Tomeu Vizoso
0368189bac
rpi: Add support for SHM buffers in RGB565 format
11 years ago
Tomeu Vizoso
1c1fc29cf1
pixman-renderer: Add support for SHM buffers in RGB565 format
11 years ago
Tomeu Vizoso
12072b6a7c
gl-renderer: Add support for SHM buffers in RGB565 format
11 years ago
Kristian Høgsberg
0ff7908767
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.
11 years ago
Kristian Høgsberg
b10b44b58c
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.
11 years ago
Kristian Høgsberg
3c30f0f950
data-device.c: Handle OOM in weston_data_source_send_offer()
...
If we fail to allocate the resource, clean up and return NULL.
11 years ago
Rob Bradford
5c4245d70d
compositor-x11: Don't leak the looked up name for skipped outputs
12 years ago
Rob Bradford
307e09ee34
compositor-drm: Use a format width parameter for the modeline sscanf
12 years ago
Rob Bradford
581b3fd779
compositor-fbdev: Close fd used for re-enabling if that fails
...
The device will be opened again in fbdev_output_create().
12 years ago
Rob Bradford
f8ef42feae
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
12 years ago
Rob Bradford
5c89710166
tty: Correctly check if the opening of the file descriptor failed
12 years ago
Rob Bradford
45c15b83c0
drm: close the drm file descriptor when the compositor is destroyed
12 years ago
Eduardo Lima
d0357bbb97
weston-launch: Fix signal mask typo
12 years ago
Kristian Høgsberg
73c60ab6e9
weston-launch: Unblock our signalfd signals before execing child
...
Giovanni Campagna ran into this with mutter.
12 years ago
Rob Bradford
c30c4bd6c8
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
12 years ago
Rob Bradford
ead3ef8c77
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
12 years ago
Michael Fu
a2bb7919de
Reset touch focus in unmap
...
Otherwise, there will be race condition of visiting invalid surface data.
12 years ago
Louis-Francis Ratté-Boulianne
dce3dacc37
xwayland: Remove transform listener when destroying the wm
...
Fix a segfault occuring after the last X window was closed.
12 years ago
Kristian Høgsberg
0af26c4fe7
evdev: Suport old-style single-touch touch screens
...
These screens send only BTN_TOUCH and ABS_X/Y.
12 years ago
Kristian Høgsberg
58014bbba8
evdev: Use temporary x and y coordinates when applying calibration
...
Don't overwrite device->abs.x halfway through the matrix multiplication.
12 years ago
Kristian Høgsberg
cee407e0c0
evdev: Don't add output offset in evdev_process_absolute_motion()
...
We do that in weston_output_transform_coordinate() now.
12 years ago
Kristian Høgsberg
87d38418a1
compositor-x11: Use assert(0) instead of return NULL for non-reachable code
12 years ago
Kristian Høgsberg
46118f8197
clipboard: Fix fd leak
...
We never closed the reading end of the pipe after copying data to the
clipboard.
12 years ago
Kristian Høgsberg
5e76a49d9c
Rename wl_data_offer to weston_data_offer
...
Another left-over from when we moved the input structs.
12 years ago
Kristian Høgsberg
0e17de1c0b
udev: Use WL_OUTPUT udev attribute for pairing touchscreens to outputs
12 years ago
Kristian Høgsberg
f2807701d9
weston-launch: Switch to regular poll
...
epoll doesn't provide any convenince here and is just awkward to use.
12 years ago
Kristian Høgsberg
636156d5f6
weston-launch: Don't start new session unless -u is given
12 years ago
Kristian Høgsberg
ab4999492c
weston-launch: Drop sleep_fork option
12 years ago
Kristian Høgsberg
ca70f2fc68
weston-launch: Move child setup and exec to its own function
12 years ago
Kristian Høgsberg
7ff3bdb5f7
Rename wl_data_source to weston_data_source
...
Missed this rename when we moved the input structs over from wayland.
12 years ago
Kristian Høgsberg
862814b2e6
clipboard: Handle OOM in clipboard_source_create()
12 years ago
Kristian Høgsberg
3c95e70496
compositor: Move weston-launch socket lookup to drm backend
...
This is the only backend that uses the launcher, so let's set it
up there.
12 years ago
Kristian Høgsberg
9e5d7d17a7
shell: Remove redundant weston_pointer field from shell_grab
...
This is already in weston_grab.
12 years ago
Kristian Høgsberg
97e806f138
evdev: Use weston_output_transform_coordinate for evdev touch screens
12 years ago
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.
12 years ago
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
12 years ago
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
12 years ago
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.
12 years ago
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
12 years ago
Kristian Høgsberg
919cddb0ab
Convert to wl_global_create/destroy()
12 years ago
Kristian Høgsberg
aaadc774a7
input: Remove wl_seat global when a seat is destroyed
...
The input code was relying on compositor destruction to clean up the
global, but that doesn't work when the global comes and goes dynamically.
https://bugs.freedesktop.org/show_bug.cgi?id=65913
12 years ago
Kristian Høgsberg
fa514b496e
xwayland: Don't allow resizing to 0x0 or less
...
X windows have to be at least 1x1 pixels.
https://bugs.freedesktop.org/show_bug.cgi?id=63510
12 years ago