- Aug 14, 2013
-
-
Kristian Høgsberg authored
-
- Aug 13, 2013
-
-
Giulio Camuffo authored
This allows a surface to live on after its resource has been destroyed. The ref-count can be increased in a resource destroy signal listener, to keep the surface around for a destroy animation, for example.
-
Kristian Høgsberg authored
We don't handle them in any way now and having your steering wheel move the cursor isn't useful. Applications can still open evdev devices and access them directly like they already do.
-
Giulio Camuffo authored
-
Armin K authored
This patch adds 3 new options to weston.ini to allow the user to change default constant_accel_factor, min_accel_factor and max_accel_factor. If no options are set, it falls back using defaults as it did before. v2: create weston_config_section_get_double and use it instead of manualy converting string to double. v3: add default values in weston_config_get_double instead of using conditionals. v4: don't pass diagonal as pointer.
-
Rob Bradford authored
getenv() can return NULL is the key is not set, passing NULL into setenv() is an error
-
Rolf Morel authored
Other clients of an evdev device need to have the events they receive be separated, in moment in time, from other events by an EV_SYN/ SYN_REPORT. This is the responsibility of the client who writes events into the stream.
-
Kristian Høgsberg authored
-
Rob Bradford authored
Previously the configure script would silently disable the use of accelerated cairo in the clients if cairo-gl could not be found (or cairo-glesv2 if that was requested.) Conversely the use of cairo-gl would be automatically enabled if it was found with no way to disable that feature This change adds --with-cairo which takes one of "image", "gl" or "glesv2" (defaulting to "image"). If "gl" or "glesv2" is specified cairo-egl is checked for as well as the specified renderer. If the check fails then the configure process errors out.
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
This application doesn't use toytoolkit, so don't link to it. We have to add a copy of xmalloc, to link without toytoolkit.
-
Giulio Camuffo authored
Plugins need to have it available, as it is included in compositor.h. https://bugs.freedesktop.org/show_bug.cgi?id=67948
-
- Aug 12, 2013
-
-
Adrian Negreanu authored
Signed-off-by:
Adrian Negreanu <adrian.m.negreanu@intel.com>
-
Adrian Negreanu authored
cairo_egl_device_create(), which is called next, already checks if EGL_KHR_surfaceless_context is available. If not, it fallbacks to pbuffer. Signed-off-by:
Adrian Negreanu <adrian.m.negreanu@intel.com>
-
Rob Bradford authored
This removes the use of wl_client_get_display() where the client is derived from the focussed resource. This starts the removal of the assumption of a single resource on a client that would be notified about events on the focussed surface.
-
Rusty Lynch authored
-
Rusty Lynch authored
-
Rusty Lynch authored
-
Rusty Lynch authored
This adds basic infrastructure for handling touch events in the toytoolkit.
-
- Aug 09, 2013
-
-
Rusty Lynch authored
-
Rusty Lynch authored
device->mt.slot is uninitialized when we're not receiving the evdev slot events. Always use ID 0 as we do when we generate the touch down and motion events.
-
Adrian Negreanu authored
weston_launcher_open() was failing with: recvmsg: Socket operation on non-socket Signed-off-by:
Adrian Negreanu <adrian.m.negreanu@intel.com>
-
Peter Hutterer authored
-
- Aug 08, 2013
-
-
Brian Lovin authored
If fdopen() fails we just close the fd and return, failing the copy-and-paste. Signed-off-by:
Brian Lovin <brian.j.lovin@intel.com>
-
Peter Hutterer authored
The current code works if pw->pw_shell is bash because: "If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p option is not supplied, these actions are taken and the effective user id is set to the real user id." Thus, for bash, weston's EUID == UID. For zsh, the -p option "is enabled automatically on startup if the effective user (group) ID is not equal to the real user (group) ID." Thus, weston's EUID = 0, and if pw_shell is zsh, /run/user/$UID/wayland-0 is created with euid root and not writeable by the user, causing all clients to fail. Fix this by always dropping privileges to the user. Regression introduced in 636156d5.
-
Peter Hutterer authored
-
Peter Hutterer authored
Avoid keeping keeping what needs to be freed in sync in multiple places, make evdev_device_destroy do the right thing instead.
-
Peter Hutterer authored
For touchpads, device->dispatch is set up when exiting evdev_handle_device() and a potential source for a memleak. This can't actually happen at the moment, as evdev_handle_device() won't fail for touchpads after setting up the dispatch but prevent this from happening in the future.
-
Peter Hutterer authored
If touches are already present on the device, absinfo has the currently active touch slot. There's a race condition where the slot may change before we enable the fd and we thus miss out on the ABS_MT_SLOT event. It's still slightly more correct than assuming whatever comes next is slot 0.
-
Peter Hutterer authored
For Protocol B devices, mtdev merely routes the events and is not needed. For Protocol A devices, mtdev is needed, so fail for those devices now if we mtdev fails.
-
Peter Hutterer authored
-
Peter Hutterer authored
The kernel copies up to sizeof(devname) bytes but doesn't null-terminate the string if the device name exceeds the size of the supplied buffer.
-
Peter Hutterer authored
_GNU_SOURCE is always true as of c228e23b, so program_invocation_short_name is available.
-
Peter Hutterer authored
-
Peter Hutterer authored
mtdev as currently used in weston is a noop. mtdev's purpose is to convert Protocol A devices (without ABS_MT_SLOT) to Protocol B devices (slots). For Protocol B devices mtdev merely routes the events, so checking for slots and then using mtdev based on that adds no functionality. Check for ABS_MT_POSITION_X/Y instead and use that to categorise a device as MT device. mtdev will provide us with a slotted protocol for all devices. https://bugs.freedesktop.org/show_bug.cgi?id=54428
-
Peter Hutterer authored
And for clients using the xmalloc helper, use xzalloc. Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
Peter Hutterer authored
Same as calloc(1, len).
-
- Aug 07, 2013
-
-
Brian Lovin authored
For the clients continue to use xmalloc() to simplify OOM-handling. Signed-off-by:
Brian Lovin <brian.j.lovin@intel.com>
-
Kristian Høgsberg authored
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.