Kristian Høgsberg [Sun, 22 Sep 2013 06:17:35 +0000 (23:17 -0700)]
compositor: Log the full path of the config file we're using
Kristian Høgsberg [Sun, 22 Sep 2013 06:02:31 +0000 (23:02 -0700)]
config-parser: Make weston_config_parse() tkae a file name
Take a basename of the config file to parse instead of an fd.
Kristian Høgsberg [Sun, 22 Sep 2013 05:36:50 +0000 (22:36 -0700)]
shared: Remove no longer used parse_config_file()
Kristian Høgsberg [Sun, 22 Sep 2013 05:35:13 +0000 (22:35 -0700)]
tablet-shell: Use new weston_config instead of old config parse
Kristian Høgsberg [Sun, 22 Sep 2013 05:26:10 +0000 (22:26 -0700)]
window.c: Port to use weston_config instead of old parser
Kristian Høgsberg [Sun, 22 Sep 2013 05:23:08 +0000 (22:23 -0700)]
terminal: Port to new weston_config parse
Kristian Høgsberg [Sun, 22 Sep 2013 04:26:05 +0000 (21:26 -0700)]
compositor: Unlink unmapped surface instead of rebuilding surface list
When unmap and destroy a surface we need to make sure we don't pick it
before we rebuild the new surface list. Currently we ensure this
by rebuilding the surface list when destroying a surface, but just
removing the surface should be enough.
Giulio Camuffo [Fri, 20 Sep 2013 14:16:06 +0000 (16:16 +0200)]
xwm: remove the destroy listener from the old surface signal
Neil Roberts [Thu, 19 Sep 2013 16:32:01 +0000 (17:32 +0100)]
Add a test client to test multiple pointer/keyboard resources
This adds a hacked version of simple-shm which can create multiple
pointer and keyboard resources. The resources are created with the
command line options -p and -k. Both take an integer argument which
specifies the time in seconds after the program is started when the
resource should be created. It can also take a second time with a
colon separator to specify when the resource should be released.
For example:
weston-multi-resource -p5 -p7 -k9 -p12:14
That would create a pointer after 5 seconds, a second pointer 2
seconds later, a keyboard 2 seconds after that, a third pointer after
a further 3 seconds and finally after 2 more seconds it would release
that final pointer resource.
This can be used along with WAYLAND_DEBUG to check that it gets the
right events for example if the pointer is created while the client's
surface already has focus and so on.
Neil Roberts [Thu, 19 Sep 2013 16:32:00 +0000 (17:32 +0100)]
input: Emit events on all resources for a client
The Wayland protocol permits a client to request the pointer, keyboard
and touch multiple times from the seat global. This is very useful in a
component like Clutter-GTK where we are combining two libraries that use
Wayland together.
This change migrates the weston input handling code to emit the
events for all the resources for the client by using the newly added
wl_resource_for_each macro to iterate over the resources that are
associated with the focused surface's client.
We maintain a list of focused resources on the pointer and keyboard
which is updated when the focus changes. However since we can have
resources created after the focus has already been set we must add the
resources to the right list and also update any state.
Additionally when setting the pointer focus it will now send the
keyboard modifiers regardless of whether the focused client has a
pointer resource. This is important because otherwise if the client
gets the pointer later than you getting the keyboard then the
modifiers might not be up-to-date.
Co-author: Neil Roberts <neil@linux.intel.com>
Hardening [Wed, 18 Sep 2013 21:56:36 +0000 (23:56 +0200)]
Notify clients on mode_switch()
This patch implements the notification of clients during mode_switch.
As discussed on IRC, clients are notified of mode_switch only when the
"native" mode is changed and activated. That means that if the native
mode is changed and the compositor had activated a temporary mode for
a fullscreen surface, the clients will be notified only when the native
mode is restored.
The scaling factor is treated the same way as modes.
Hardening [Wed, 18 Sep 2013 21:56:35 +0000 (23:56 +0200)]
Rename current, origin, scale, origin_scale
This patch renames that fields to have consistent names.
Giulio Camuffo [Wed, 18 Sep 2013 13:20:04 +0000 (15:20 +0200)]
xwm: set the right cursor when hovering on the decoration borders
use the alternative cursor names used also in window.c, since the
names it used previously are not guaranteed to exist in all themes.
Giulio Camuffo [Tue, 17 Sep 2013 14:43:45 +0000 (16:43 +0200)]
xwm: set the window's shsurf pointer to NULL on unmap handling
the unmap event will be followed by the deletion of the weston_surface,
so the shell_surface will also be deleted by the shell. Having removed
the surface_destroy_listener, the surface_destroy callback doesn't
get called, so reset the value of shsurf here.
Axel Davy [Tue, 17 Sep 2013 12:55:55 +0000 (14:55 +0200)]
Restoring alpha after the shell effects.
After the fade or zoom effects, alpha could not have been 1.0, preventing
not redrawing behind opaque windows.
This patch add a reset function in weston_surface_animation to reset
some variables the effects affect.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Stefan Schmidt [Tue, 17 Sep 2013 09:54:09 +0000 (10:54 +0100)]
input: Fix trailing whitspaces and indent.
Just some cosmetics to conform to the wayland coding style.
Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
Kristian Høgsberg [Thu, 19 Sep 2013 06:00:17 +0000 (23:00 -0700)]
launcher: Move rest of tty object into struct weston_launcher
The struct weston_launcher object will now either handle tty and vt switching
details in-process (when running weston directly as root) or talk to
the weston-launch process.
Kristian Høgsberg [Thu, 19 Sep 2013 05:14:09 +0000 (22:14 -0700)]
weston-launch: Use fstat to make sure we stat the right fd
Instead of the racy stat+open, open first and then use fstat. We want to
make sure we're stating the fd we'll be sending to weston and nothing else.
Kristian Høgsberg [Wed, 18 Sep 2013 05:43:22 +0000 (22:43 -0700)]
launcher: Handle tty setup and teardown in launcher
Kristian Høgsberg [Wed, 18 Sep 2013 05:15:37 +0000 (22:15 -0700)]
launcher: Handle drm set/drop master and vt switch signals in launcher
Kristian Høgsberg [Tue, 17 Sep 2013 23:02:57 +0000 (16:02 -0700)]
compositor: Generalize VT switching as a session_signal
Instead of a callback from the tty module, we now have a compositor level
signal that fires when our session is activated or deactivated.
Kristian Høgsberg [Tue, 17 Sep 2013 21:41:03 +0000 (14:41 -0700)]
launcher: Collect launcher state in new struct weston_launcher
We're going to add a bit more launcher state, so start out by creating
a new struct weston_launcher we can track it in.
Kristian Høgsberg [Wed, 18 Sep 2013 18:01:48 +0000 (11:01 -0700)]
weston-launch: Use SOCK_SEQPACKET for the launcher socket
This lets us detect hang-up when weston-launch dies and clean up properly.
Kristian Høgsberg [Wed, 18 Sep 2013 18:00:56 +0000 (11:00 -0700)]
weston-launch: Pass the right CLOEXEC flag to fcntl
Passing O_CLOEXEC to fcntl is wrong, we need to pass FD_CLOEXEC.
Kristian Høgsberg [Tue, 17 Sep 2013 21:03:42 +0000 (14:03 -0700)]
compositor: Open drm device through launcher
Sam Spilsbury [Fri, 13 Sep 2013 02:01:22 +0000 (10:01 +0800)]
Added tests for the vertex clipping code.
This tests (via the table-driven testing method) that the correct
number of vertices and also the correct vertices themselves
are generated for an clip box and polygon of up to eight vertices.
Also add a libshared-test.la so that we don't have to build weston-test-runner
all the time
Sam Spilsbury [Fri, 13 Sep 2013 02:01:21 +0000 (10:01 +0800)]
Split vertex clipping code out into vertex-clipping.c
José Bollo [Fri, 13 Sep 2013 09:28:51 +0000 (11:28 +0200)]
Minor improvement of weston-terminal resizing
Sam Spilsbury [Fri, 13 Sep 2013 02:01:20 +0000 (10:01 +0800)]
Add support for table-driven testing.
The new TEST_P macro takes a function name and a "data" argument to
point to an arbitrary array of known size of test data. This allows
multiple tests to be run with different datasets. The array is stored
as a void * but advanced by a known size on each iteration.
The data for each invocation of the test is provided as a "data" argument,
it is the responsibility of the test to cast it to something sensible.
Also fixed single-test running to only run the tests specified
Sam Spilsbury [Fri, 13 Sep 2013 02:01:19 +0000 (10:01 +0800)]
Remove AM_LDFLAGS usage
We are not building everything here as a module, only the test modules.
Peter Hutterer [Fri, 13 Sep 2013 01:59:00 +0000 (11:59 +1000)]
clients: remove superfluous call
Peter Hutterer [Fri, 13 Sep 2013 01:58:59 +0000 (11:58 +1000)]
clients: de-duplicate demo clients list
Giulio Camuffo [Wed, 11 Sep 2013 16:20:47 +0000 (18:20 +0200)]
xwm: set the shell_surface's title
add a new function pointer to the weston_shell_interface struct that
shells will set accordingly.
Giulio Camuffo [Wed, 11 Sep 2013 15:49:13 +0000 (17:49 +0200)]
xwm: place transient windows at the right position
Peter Hutterer [Wed, 11 Sep 2013 06:08:47 +0000 (16:08 +1000)]
tests: list available tests if an invalid test name is given
Peter Hutterer [Wed, 11 Sep 2013 06:08:30 +0000 (16:08 +1000)]
tests: support -h/--help for the tests
Including listing the tests available in that binary
Peter Hutterer [Wed, 11 Sep 2013 06:08:04 +0000 (16:08 +1000)]
tests: include config.h in weston-test-runner
Peter Hutterer [Wed, 11 Sep 2013 05:58:08 +0000 (15:58 +1000)]
tests: use variable for test name in weston-tests-env
Slightly more readable and makes it easier to switch to use $2 for something
in the future (if that's ever needed).
Peter Hutterer [Wed, 11 Sep 2013 05:58:07 +0000 (15:58 +1000)]
tests: always build tests
check_PROGRAMS and friends are only built during make check. Which is a
great way of introducing compiler errors in tests. Always build them, TESTS
defines what's being run during make check.
Kristian Høgsberg [Wed, 11 Sep 2013 19:00:47 +0000 (12:00 -0700)]
shell: Use wl_resource_for_each() for sending out workspace status
Rob Bradford [Fri, 6 Sep 2013 16:48:19 +0000 (17:48 +0100)]
input: Use new wl_resource_for_each for sending updated seat caps
Ander Conselvan de Oliveira [Fri, 6 Sep 2013 14:49:38 +0000 (17:49 +0300)]
vaapi-recorder: Don't leak drm fd
Make vaapi_recorder take onwership of the fd and close it at destroy
time.
Ander Conselvan de Oliveira [Fri, 6 Sep 2013 14:49:37 +0000 (17:49 +0300)]
vaapi-recorder: Encode frames in a separate thread
Previously, vaapi_recorder_frame() would wait until the encoded
contents for a frame is written to the output file descriptor. This
delayed the repainting of the next frame, and affected frame rate
when capturing with high resolutions. Instead, wait only if there is
and attempted to encode two frames at the same time.
Increases framerate from 30 to 60 fps when capturing at 1920x1200 on
my SandryBridge system, although there are periodic slowdowns due to
disk writes.
Adrian Negreanu [Fri, 6 Sep 2013 12:16:09 +0000 (15:16 +0300)]
add libhybris support
it uses the Android fbdev HAL[1] (through libhybris[2])
and the libhybris implementation of wayland-egl.
Configure flags:
cairo:
--enable-glesv2=yes --enable-egl=yes
weston:
--with-cairo-glesv2 --enable-fbdev-compositor
hybris:
--enable-wayland --enable-arch=x86
--with-android-headers=<android-headers> --enable-alinker=jb
The android headers are extracted from an AOSP tree,
using hybris/utils/extract-headers.sh
[1]:
https://github.com/android/platform_hardware_libhardware/blob/master/include/hardware/fb.h
[2]: https://github.com/libhybris/libhybris
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Kristian Høgsberg [Wed, 11 Sep 2013 18:52:56 +0000 (11:52 -0700)]
terminal: Stop complaining about OSC escape code 7
This is the current working directory of the shell as an URI. We
don't use that for anythign at the moment, but let's not complain
about it at least.
Andrew Wedgbury [Fri, 6 Sep 2013 08:29:12 +0000 (08:29 +0000)]
compositor-x11: Copying xkb_info when creating a seat causes problems
Sorry, I missed updating use of xkb_info in compositor-x11.c.
I've updated the patch.
Marc Chalain [Tue, 3 Sep 2013 14:47:43 +0000 (16:47 +0200)]
fbdev: Support of TrueColor and Directcolor of video hardware
backend check the type of the framebuffer and accept DirectColor and TrueColor
I use a "switch case" to implement other cases in the future.
Stanislav Vorobiov [Thu, 29 Aug 2013 07:36:44 +0000 (11:36 +0400)]
gl_renderer: Use EGL_WAYLAND_Y_INVERTED_WL to query wl_buffer's orientation
Andrew Wedgbury [Thu, 5 Sep 2013 13:31:40 +0000 (13:31 +0000)]
Copying xkb_info when creating a seat causes problems
Hi Kristian,
Here's a new patch for ref counting weston_xkb_info, as suggested.
So a seat created with a NULL keymap will now point to the global xkb_info.
Kristian Høgsberg [Wed, 11 Sep 2013 16:45:03 +0000 (09:45 -0700)]
input: Initialize data source to NULL
This way we do the right thing, when we get a NULL wl_resource for self-dnd.
Kristian Høgsberg [Wed, 11 Sep 2013 16:42:26 +0000 (09:42 -0700)]
compositor: Return 0 on success
Add missing return statement.
Kristian Høgsberg [Mon, 9 Sep 2013 22:03:27 +0000 (15:03 -0700)]
dnd: Support dropping as text/plain;charset=utf-8
Kristian Høgsberg [Thu, 5 Sep 2013 05:32:50 +0000 (22:32 -0700)]
xwm: Fix fd leak in weston_wm_send_data()
The call to source->send(source, mime_type, p[1]); dups the fd, and we have
to close p[1] to not leak it.
Kristian Høgsberg [Thu, 5 Sep 2013 05:12:28 +0000 (22:12 -0700)]
xwm: Try a non-blocking write before setting up an fd watch for property data
Typically we can write it immediately without blocking, so save the overhead
of setting up an fd watch and writing the data in a callback. For the
case where the immediate write doesn't write all data, we fallback and
set up the fd watch as usual.
This patch also consolidates setting up the async write a bit.
Kristian Høgsberg [Thu, 5 Sep 2013 04:12:26 +0000 (21:12 -0700)]
xwm: Add support for bridging Xdnd to wayaland DnD
Kristian Høgsberg [Thu, 5 Sep 2013 04:09:24 +0000 (21:09 -0700)]
xwm: Only handle selection notify events for CLIPBOARD in selection code
Kristian Høgsberg [Thu, 5 Sep 2013 03:48:46 +0000 (20:48 -0700)]
xwm: Fix fd leak in selection code
The file descriptors we receive in the wayland protocol callbacks are
already O_CLOEXEC, so don't dup them to set O_CLOEXEC.`
Kristian Høgsberg [Thu, 5 Sep 2013 03:44:26 +0000 (20:44 -0700)]
compositor: Split dnd setup up into weston_seat_start_drag()
This makes the drag-and-drop code available to in-weston data sources,
similar to how we can set a selection data source internally. The
wl_data_device.start_drag entry point now calls this function after
validating protocol arguments.
Kristian Høgsberg [Thu, 5 Sep 2013 03:41:06 +0000 (20:41 -0700)]
terminal: Accept utf-8 text drop
Kristian Høgsberg [Thu, 5 Sep 2013 02:36:49 +0000 (19:36 -0700)]
dnd: Only accept dnd with the application/x-wayland-dnd-flower mime-type
Currently, the dnd sample client accepts all mime-types and assumes they
are the custom flower mime-type. Only accept if the offer has the right
mime-type.
Kristian Høgsberg [Wed, 4 Sep 2013 05:59:17 +0000 (22:59 -0700)]
configure.ac: Only enable enable_simple_egl_clients if enable_egl is yes
This simplifies a few checks and makes sure we only build the
subsurfaces client if EGL is enabled.
https://bugs.freedesktop.org/show_bug.cgi?id=68727
Brian J Lovin [Tue, 27 Aug 2013 17:49:42 +0000 (10:49 -0700)]
keyboard: Add rudimentary touch support to keyboard.
At this time there is no way to have a key be activated when
touch_up is called, so all this patch does is activate they
key on touch_down.
Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
Kristian Høgsberg [Wed, 4 Sep 2013 05:46:02 +0000 (22:46 -0700)]
configure.ac: Only build libva recorder if we found libva
The automatic detection failed to disable the build if it didn't
find libva.
https://bugs.freedesktop.org/show_bug.cgi?id=68908
Kristian Høgsberg [Wed, 4 Sep 2013 05:27:08 +0000 (22:27 -0700)]
compositor-drm: Pass the wl_resource to gbm_bo_import()
Another silent regression from the wl_resource opaquify effort. This was
causing our pageflip-to-client-buffer and sprites optimizations to
not kick in.
Kristian Høgsberg [Tue, 3 Sep 2013 23:38:51 +0000 (16:38 -0700)]
xwm: Unmap frame window when client window is unmapped
We used to destroy the frame window and reparent the client window to
wm_window. That means that we lose the destroy_notify event when the
client window is destroyed later, since we don't select for
substructure_notify on wm_window.
Instead of destroying and reparenting, just unmap the frame window.
Kristian Høgsberg [Tue, 3 Sep 2013 23:19:18 +0000 (16:19 -0700)]
xwm: Split creation of frame window out into its own function
Kristian Høgsberg [Tue, 3 Sep 2013 23:15:42 +0000 (16:15 -0700)]
xwm: Set window->surface to NULL when surface goes away
Otherwise we may end up trying to remove the destroy listener if we
get the surface_destroy callback before the unmap_notify.
Kristian Høgsberg [Sat, 31 Aug 2013 07:12:25 +0000 (00:12 -0700)]
xwm: Detect WM_NORMAL_HINTS fullscreen attempts
Kristian Høgsberg [Sat, 31 Aug 2013 07:08:27 +0000 (00:08 -0700)]
xwm: Detect legacy fullscreen modes
Kristian Høgsberg [Sat, 31 Aug 2013 07:00:57 +0000 (00:00 -0700)]
xwm: Update size when override redirect windows change size
Kristian Høgsberg [Fri, 30 Aug 2013 22:00:01 +0000 (15:00 -0700)]
configure: Require wayland-server 1.2.90
Make sure we look for a recent enough version of wayland-server for
the new wl_seat release requests.
Rob Bradford [Tue, 13 Aug 2013 19:11:03 +0000 (20:11 +0100)]
window: Use new wl_pointer/keyboard_release request
Since we bump the version we ask for from the compositor it is also
necessary to implement the new "name" event in the seat listener.
Kristian Høgsberg [Tue, 13 Aug 2013 19:11:02 +0000 (20:11 +0100)]
compositor: Implement release request for input interfaces
v2 (Rob Bradford): Update the version numbering for this change
Kristian Høgsberg [Fri, 30 Aug 2013 21:28:22 +0000 (14:28 -0700)]
configure.ac: Auto-enable vaapi recorder, but allow overrides
If libva is available and recent, we'll enable the vaapi recorder feature,
but it can also be forced on or off by --enable/disable-vaapi-recorder.
Ander Conselvan de Oliveira [Fri, 23 Aug 2013 14:15:48 +0000 (17:15 +0300)]
compositor-drm: Add hardware accelerated capture of screen using libva
This patch adds a feature to the DRM backend that uses libva for
encoding the screen contents in H.264. Screen recording can be
activated by pressing mod-shift-space q. A file named capture.h264
will be created in the current directory, which can be muxed into
an MP4 file with gstreamer using
gst-launch filesrc location=capture.h264 ! h264parse ! mp4mux ! \
filesink location=file.mp4
This is limitted to the DRM compositor in order to avoid a copy when
submitting the front buffer to libva. The code in vaapi-recorder.c
takes a dma_buf fd referencing it, does a colorspace conversion using
the video post processing pipeline and then uses that as input to the
encoder.
I'm sending this now so I get comments, but this is not ready for
prime time yet. I have a somewhat consistent GPU hang when using
i915 with SandyBridge. Sometimes a page flip never completes. If you
want to try this anyway and your system get stuck, you might need to
run the following:
# echo 1 > /sys/kernel/debug/dri/0/i915_wedged
After that, alt-sysrq [rv] should work.
Once that's fixed it would also be good to make the parameters used by
the encoder more flexible. For now the QP parameter is hardcoded to 0
and we have only I and P frames (no B frames), which causes the
resulting files to be very large.
Quentin Glidic [Sat, 24 Aug 2013 18:36:10 +0000 (20:36 +0200)]
autotools: Fix AC_PATH_PROG call
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Bryce W. Harrington [Fri, 23 Aug 2013 19:57:04 +0000 (19:57 +0000)]
.gitignore: Reflect recent client binary rename
Commit
77ab1721 renamed the client binaries; this change updates
.gitignore to follow this change.
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
Paul Winwood [Thu, 29 Aug 2013 09:52:54 +0000 (10:52 +0100)]
window.c: Fix SIGSEGV in pointer_handle_motion
Move null pointer check and assignments before first window dereference.
Kristian Høgsberg [Thu, 29 Aug 2013 20:49:35 +0000 (13:49 -0700)]
evdev: Don't parse config file again, use compositor->config
Kristian Høgsberg [Thu, 29 Aug 2013 06:16:20 +0000 (23:16 -0700)]
shell: Make sure we have seat->pointer and seat->touch before dereferencing
Either of these may not be available when we handle wl_shell_surface.move,
and we need to not crash when that's the case.
https://bugs.freedesktop.org/show_bug.cgi?id=68649
Kristian Høgsberg [Thu, 29 Aug 2013 06:05:29 +0000 (23:05 -0700)]
gl-renderer: Use GL_UNSIGNED_SHORT for index array type
GL_UNSIGNED_INT is only supported when GL_OES_element_index_uint is
available (mesa implements that extension). We don't need 32-bit
indices, so just use GL_UNSIGNED_SHORT.
Stanislav Vorobiov [Wed, 28 Aug 2013 06:14:35 +0000 (10:14 +0400)]
subsurfaces: fix rendering problem with cairo-glesv2
when using cairo-glesv2 subsurface rendering code
implicitly calls eglMakeCurrent(dpy, NULL, NULL, ctx)
(since EGL_KHR_surfaceless_context is used), thus,
triangle_frame_callback:eglSwapBuffers returns EGL_BAD_SURFACE
error for all invocations other that the first one
Samuel Iglesias Gonsalvez [Wed, 28 Aug 2013 09:22:41 +0000 (11:22 +0200)]
configure.ac: fix broken compilation when configure with --disable-egl option
Fix bug 67561: "configure with --disable-egl option breaks fbdev backend
compilation"
https://bugs.freedesktop.org/show_bug.cgi?id=67561
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Kristian Høgsberg [Thu, 29 Aug 2013 05:16:10 +0000 (22:16 -0700)]
configure.ac: Bump configure.ac version to 1.2.90
We usually do this when we branch off the stable branch, better late than
never.
Kristian Høgsberg [Thu, 29 Aug 2013 05:12:24 +0000 (22:12 -0700)]
evdev: Don't transform device->abs.x/y in place
We don't always get both an X and an Y event in a SYN report, so we end
up transforming the coordinate we don't get twice. For example, if we
only receive an ABS_X event, we transform the already transformed
device->abs.y again in transform_absolute() when applying the calibration.
Brian J Lovin [Mon, 26 Aug 2013 22:58:22 +0000 (15:58 -0700)]
desktop-shell: Add support for touch unlock
Add support for unlocking on touch up using the
green button on the unlock dialog
Signed-off-by: Brian J Lovin <brian.j.lovin@intel.com>
Jason Ekstrand [Thu, 22 Aug 2013 22:28:03 +0000 (17:28 -0500)]
Add a --shell option to override the default desktop-shell
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Kristian Høgsberg [Thu, 22 Aug 2013 19:16:51 +0000 (12:16 -0700)]
simple-egl: Handle missing EGL_EXT_buffer_age better
Including src/weston-egl-ext.h breaks distcheck, so lets just copy the
one EGL_EXT_buffer_age into simple-egl.c.
Pier Luigi Fiorini [Fri, 23 Aug 2013 21:43:23 +0000 (23:43 +0200)]
compositor.h: Don't include config.h
Public headers should not include config.h.
Kristian Høgsberg [Mon, 26 Aug 2013 21:43:17 +0000 (14:43 -0700)]
Add more missing config.h #includes
Now that we use AC_SYS_LARGEFILE, we need to pull in config.h at least
whereever we use mmap(). Fixes at least the test-suite and simple-shm
on 32 bit systems.
Kristian Høgsberg [Mon, 26 Aug 2013 21:35:32 +0000 (14:35 -0700)]
evdev: Initliaze device->link so we can wl_list_remove() without crashing
We were testing for wl_list_empty() on a { NULL, NULL } list (which
returns false) and then wl_list_remove()ing the device (which crashes).
Kristian Høgsberg [Thu, 22 Aug 2013 23:24:15 +0000 (16:24 -0700)]
xwm: Use window->x/y for override redirect surfaces
window->x/y is the coordinate of the top-level surface (whether that's
the frame window or an override-redirect window) and the wayland surface
should be placed there, without the t->margin offset.
Kristian Høgsberg [Thu, 22 Aug 2013 23:20:44 +0000 (16:20 -0700)]
xwm: Fix transform listener
The coordinate transformation was broken (worked for first output where
output->x/y was 0,0, broke on all other outputs). We can just use
surface->geometry.x/y directly. We can't use the full transformation,
the best we can do is to move the X window to the geometry.x/y location.
Get rid of the static old_sx/sy hack as well.
Kristian Høgsberg [Thu, 22 Aug 2013 23:18:17 +0000 (16:18 -0700)]
xwm: Fix configure notify handler
We only get configure notify for toplevel (frame or override-redirect window)
and those are the cases where we want to update window->x/y. The way the
code worked, we'd exit immeidately in those cases and window->x/y would
not be updated.
Kristian Høgsberg [Thu, 22 Aug 2013 05:14:58 +0000 (22:14 -0700)]
xwm: Set _NET_WM_CM_S0 instead of relying on the xwayland module to do it
Not sure why I made xwayland claim this selection, seem a little
awkward in retrospect.
Kristian Høgsberg [Thu, 22 Aug 2013 05:14:14 +0000 (22:14 -0700)]
compositor-drm: Zero out create_arg when creating dumb framebuffers
The create_arg struct has a flags member that we didn't properly set to 0.
Kristian Høgsberg [Thu, 22 Aug 2013 05:13:17 +0000 (22:13 -0700)]
terminal: Include config.h instead of defining _XOPEN_SOURCE
Kristian Høgsberg [Wed, 21 Aug 2013 22:44:57 +0000 (15:44 -0700)]
configure.ac: Add AC_SYS_LARGEFILE for mmap()ing dumb GEM buffers
We're mmap()ing buffers with 64 bit offsets coming from the
DRM_IOCTL_MODE_MAP_DUMB ioctl and need to make sure mmap accepts
those.
Kristian Høgsberg [Tue, 20 Aug 2013 22:58:25 +0000 (15:58 -0700)]
data-device: Only bail out if we failed to allocate offer
It's valid to have a NULL data source (self-dnd) in which case we send
a NULL offer on enter.
Kristian Høgsberg [Tue, 20 Aug 2013 18:30:54 +0000 (11:30 -0700)]
compositor: Only check buffer for NULL tried to allocate something
In particular, if we get a NULL buffer attach, it's ok for buffer to be NULL.