Stanislav Vorobiov
6346e501ac
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
11 years ago
Brian J Lovin
c4df4082c2
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>
11 years ago
Kristian Høgsberg
777874350b
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.
11 years ago
Kristian Høgsberg
c7d2c4c147
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.
11 years ago
Kristian Høgsberg
0b36d9780f
terminal: Include config.h instead of defining _XOPEN_SOURCE
11 years ago
Daiki Ueno
3e9df07269
autotools: Don't use wayland-scanner.m4
11 years ago
Peng Wu
cfcc111070
Fixes CJK wide character display
...
By jumping two columns when wide character prints,
and draw wide background under wide character.
11 years ago
Rusty Lynch
1084da506e
Add touch support for wl_shell_surface_move
11 years ago
Ander Conselvan de Oliveira
d224bb9218
nested: Fix skipping frames due to texture update without a context
...
Calls into cairo-gles may change the current context, so it was only by
chance that sometimes we had the proper one as current and updated the
correct texture in surface_attach().
In order to fix this, calling display_acquire_window_surface() before
binding the texture for setup is necessary. However this call has the
side effect of allocating a cairo surface for the window. At flush time,
the existence of this surface will cause an eglSwapBuffers(), even
if no rendering was done to it, leading to undefined contents on the
screen. This happens when the idle redraw task runs while there is a
pending frame callback.
Workaround this by moving the texture setup from surface_attach() to the
redraw handler, so that the cairo surface is only allocated when
redering is done.
11 years ago
Kristian Høgsberg
0d5fe3a231
nested: The wl_resouce is the buffer, not the wl_resource user data
11 years ago
Kristian Høgsberg
69594ccf9c
window: Use xzalloc() instead of silently failing to add output
11 years ago
Kristian Høgsberg
06b16c2a0b
weston-info: Use xmalloc() in weston-info
11 years ago
Kristian Høgsberg
adcd54bc3c
window: Use xzalloc() instead of failing to add input device
11 years ago
Kristian Høgsberg
1a5f0c34ff
window: Fix logic for looking up widget default cursor
...
We may deref a NULL pointer if there is no grab and no focus widget.
11 years ago
Kristian Høgsberg
980b018825
window: Don't check for subcompositor in window_add_subsurface()
...
Client should check for subcompositor support up front. Now
window_add_surface() can never return NULL.
11 years ago
Kristian Høgsberg
b20b00923a
window: Add API to check for subcompositor, use in subsurface example
...
This way we can fail with a nice error message.
11 years ago
Kristian Høgsberg
c85a9178c7
simple-touch: Handle OOM when allocating struct touch
11 years ago
Kristian Høgsberg
96c619af43
simple-shm: Handle OOM when allocating struct display
11 years ago
Kristian Høgsberg
20ffdffc03
keyboard: Don't use next_utf8_char() to go back where we came from
...
We go one utf8 char back and then one forward. Just remember the original
position instead, which also avoids a warning about potentially
dereferencing a NULL return value from next_utf8_char().
11 years ago
Kristian Høgsberg
3e125830a5
terminal: Make utf-8 state machine assemble unicode code point value
11 years ago
Kristian Høgsberg
e9cabc1bc3
nested: Use a void * to avoid warnings with EGL_WL_bind_wayland_display
11 years ago
Kristian Høgsberg
473f248d7e
screenshooter: Add missing newline and use program_invocation_short_name
11 years ago
Kristian Høgsberg
bdd8377312
screenshooter: Only link to $(CLIENT_LIBS) not libtoytoolkit.la
...
This application doesn't use toytoolkit, so don't link to it. We have to
add a copy of xmalloc, to link without toytoolkit.
11 years ago
Adrian Negreanu
f5e3ad295c
fix compile error when EGL_BUFFER_AGE_EXT is missing
...
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
11 years ago
Adrian Negreanu
6d14b14147
remove dependency on EGL_KHR_surfaceless_context
...
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>
11 years ago
Rusty Lynch
4384a24a9e
desktop-shell: Add touch support to panel launcher icons
11 years ago
Rusty Lynch
3ba1263438
calibrator: Add touch support to calibrator
11 years ago
Rusty Lynch
3bb2b8cfe9
smoke: Add touch support to smoke example
11 years ago
Rusty Lynch
041815aa05
window.c: Add touch handlers
...
This adds basic infrastructure for handling touch events in the toytoolkit.
11 years ago
Brian Lovin
1bf14815ef
terminal.c: Check if fdopen() fails
...
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>
11 years ago
Peter Hutterer
3ca59d3968
clients: fix an error message
...
_GNU_SOURCE is always true as of c228e23b05
, so
program_invocation_short_name is available.
11 years ago
Peter Hutterer
f3d62276d2
malloc + memset -> zalloc
...
And for clients using the xmalloc helper, use xzalloc.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
11 years ago
Brian Lovin
bc91926e0c
clients: use xmalloc in more places
...
For the clients continue to use xmalloc() to simplify OOM-handling.
Signed-off-by: Brian Lovin <brian.j.lovin@intel.com>
11 years ago
Kristian Høgsberg
cb61dcf2ce
nested: Update to use weston-nested-client binary name
11 years ago
Kristian Høgsberg
3c17933de8
Use #define WL_HIDE_DEPRECATED to avoid deprecated warnings for wl_buffer
11 years ago
Stefan Schmidt
85c40f2d85
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>
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
bee45a14cd
window: Allow hinting of a preference for RGB565 when creating a window
...
And check if the renderer supports the RGB565 format for wl_shm buffers
before creating the cairo surface and requesting the buffer.
It can save quite some memory with big surfaces such as desktop
backgrounds.
11 years ago
Rob Bradford
09252d4b5e
desktop-shell: Refactor launcher configuration reading to avoid leaking
11 years ago
Rob Bradford
5ab9c75d59
window: Free the allocated display if we fail to setup libxkbcommon
11 years ago
Rob Bradford
c48c34d6fa
tablet-shell: Avoid leaking the path on failed icon loading
11 years ago
Rob Bradford
c9213e7353
image: Free filename saved into structure on error path
11 years ago
Armin K
a02d154b13
autotools: Correctly prefix simple-egl client name
11 years ago
Bryce W. Harrington
3d2046ed4b
screenshot: Drop extraneous 'is' to improve warning msg grammar
...
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
11 years ago
Armin K
aac6021bc0
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
12 years ago
Armin K
77ab1721b8
autotools: Rename demo clients
...
Prefix demo clients names with weston-, so they can
be installed if user desires.
12 years ago
Kristian Høgsberg
4162483d74
window.c: Simplify window_create()
12 years ago
Kristian Høgsberg
b886212545
Use xmalloc in desktop-shell.c
12 years ago
Kristian Høgsberg
8eeb30b9d1
window.c: Use xmalloc for frame_create()
12 years ago
Kristian Høgsberg
9a6c48d0fd
cliptest: Use xmalloc in cliptest
12 years ago