MMarius Vladclients/scaler: check viewporter availability
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clipping: Use struct weston_coord in vertex clipping code Remove the independent x, y floats from the clipping code and replace them with struct weston_cord. This includes the polygon8 structure as well. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/desktop-shell: Add tablet support to the top panel of the desktop shell Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Lyude Paul <thatslyude@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Bastian Farkas <bfarkas@de.adit-jv.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/eventdemo: Remove duplicated param entries Removes doxygen warning. Fixes #664 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 3 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
log: remove "%m" from format strings by using strerror(errno) The printf() format specifier "%m" is a glibc extension to print the string returned by strerror(errno). While supported by other libraries (e.g. uClibc and musl), it is not widely portable. In Weston code the format string is often passed to a logging function that calls other syscalls before the conversion of "%m" takes place. If one of such syscall modifies the value in errno, the conversion of "%m" will incorrectly report the error string corresponding to the new value of errno. Remove all the occurrences of the specifier "%m" in Weston code by using directly the string returned by strerror(errno). While there, fix some minor indentation issue. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> | 7 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients: Add demo application for tablets Note that this application does not follow best practices for handling tablet events. The events are grouped by frame, all processing should be done in the frame instead of the respective handler. A good toolkit would accumulate the data in the events and provide them as one event to the actual client once the frame is received. toytoolkit just hooks up the handler one-by-one, so we're doing this here as well. Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Lyude Paul <thatslyude@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Bastian Farkas <bfarkas@de.adit-jv.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
multi-resource: Convert to xdg-shell Convert remaining wl_shell client to xdg-shell. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
helpers: Add a u64 from 2 u32 helper We do this enough that having a single implementation for it is probably a win. Signed-off-by: Derek Foreman <derek.foreman@collabora.com> | 3 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/scaler: check viewporter availability I just got bitten by this: I thought my compositor was dropping the viewport somehow, but it just didn't expose the viewporter global. Signed-off-by: Simon Ser <contact@emersion.fr> | 3 年前 | |
clients: rewrite screenshot.c for new protocol The functionality of this screenshooting helper client is kept exactly the same as before: if you have multiple outputs, some transformed, some scale, in any layout, this will create a "multi-image" where the framebuffer (the physical image) of each output is pasted into a row of images in the order the outputs were advertised thrugh wl_registry. Output transform or scale are not accounted for. If you have a monitor rotated sideways, the screenshot will have the image of that monitor reverse-sideways. Otherwise the client is almost completely re-written, so trying to read the diff is not that useful. The old screenshooting protocol is replaced with the new weston-output-capture protocol. This makes it unnecessary to listen for wl_output information (since we do not handle output transform or scale anyway). The buffer sizes and formats are dictated by the compositor, which also means we cannot hardcode the format. Hence, use Pixman for the blitting, in case it needs to do format conversion. It is good to get rid of hand-crafted pixel data manipulation code too. For that reason we also need a pixel format database to convert between DRM fourcc, wl_shm and Pixman codes. We link to libweston to borrow its database instead of inventing another partial copy of it. It's weird to use compositor library private API in a client, but better than the alternative. The original code had no tear-down code at all. Now, if everything succeeds, the program ends with no unfreed memory according to ASan. If something fails, it still YOLO's it (doesn't free stuff). That's how far my pedantry carried. I also did not bother taking output transform or scale into account, since the old code did not either. It would be nice to create a seamless image of the desktop with shots rotated and scaled to align, in the max scale over all outputs. Meh. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> | 3 年前 | |
clients/simple-*: Add appids for other clients Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/simple-dmabuf-egl: drop Y_INVERT flag The motivations for this are: - Y_INVERT is not used by most real-world clients. weston-simple-dmabuf-egl and weston-simple-dmabuf-v4l are one only known users. Thus this creates a special case just for these demo clients. - Some compositors (wlroots) have dropped support for DMA-BUF flags, so the client no longer runs there. - Dropping the flag allows compositors to use a KMS hardware plane to display the buffer. It keeps the same axis orientation we had in place where we had the y-invert flag enabled by default, by doing a reflection about x-axis. Signed-off-by: Simon Ser <contact@emersion.fr> Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Closes: https://gitlab.freedesktop.org/wayland/weston/-/issues/675 | 3 年前 | |
clients/simple-dmabuf-feedback: get buffer size from configure events instead of the output mode. The mode doesn't say anything about the actual output geometry which could lead to buffers extending the output region on rotated monitors. This now also works with moving the window to different monitors. Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com> | 3 年前 | |
simple-dmabuf-v4l: Add support to NV12 devices that combine planes There are V4L2 devices that will output NV12 but will do so using one dma buffer. To support this, we need to add the same dma buffer twice but with a different offset for the chrominance plane. Also supports situations of 3 planes (e.g. YU12) inside a single dma buffer. Fixes: #712 Signed-off-by: Bram Stolk (b.stolk@gmail.com) | 3 年前 | |
clients/simple-egl: Implement fractional-scale protocol support Fractional scale is increasingly common in the Wayland ecosystem. Thus, given simple-egl's role as egl example client, implement support for the new protocol - even though Weston itself does not support it yet. Together with buffer_scale and buffer_transform this ensures simple-egl provides optimally sized and oriented buffers. Signed-off-by: Robert Mader <robert.mader@collabora.com> | 3 年前 | |
log: remove "%m" from format strings by using strerror(errno) The printf() format specifier "%m" is a glibc extension to print the string returned by strerror(errno). While supported by other libraries (e.g. uClibc and musl), it is not widely portable. In Weston code the format string is often passed to a logging function that calls other syscalls before the conversion of "%m" takes place. If one of such syscall modifies the value in errno, the conversion of "%m" will incorrectly report the error string corresponding to the new value of errno. Remove all the occurrences of the specifier "%m" in Weston code by using directly the string returned by strerror(errno). While there, fix some minor indentation issue. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> | 7 年前 | |
client-shm: Add basic keyboard support And use it to exit with using the KEY_ESC, similar to simple-egl. This was ripped from simple-egl ad litteram. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 3 年前 | |
simple-touch: Add maximized/fullscreen states Helpful to have other states like maximized or fullscreen for the simple-touch client. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 3 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients: Add demo application for tablets Note that this application does not follow best practices for handling tablet events. The events are grouped by frame, all processing should be done in the frame instead of the respective handler. A good toolkit would accumulate the data in the events and provide them as one event to the actual client once the frame is received. toytoolkit just hooks up the handler one-by-one, so we're doing this here as well. Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Lyude Paul <thatslyude@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Bastian Farkas <bfarkas@de.adit-jv.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
weston-terminal: Don't leak Cairo fonts The docs say they're ours to unref. Signed-off-by: Daniel Stone <daniels@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
clients/window: Add functions to set/retrieve app_id Adds appid for all clients using the toolkit, flower, fullscreen, image, resizor, scaler, smoke, stacking, subsurfaces, terminal, touch-calibrator, transformed, etc. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 4 年前 | |
weston-debug: Handle destruction of stream description Memleak found by ASAN: Direct leak of 258 byte(s) in 8 object(s) allocated from: #0 0x7f3eedb6e817 in __interceptor_strdup (/usr/lib/x86_64-linux-gnu/libasan.so.6+0x57817) #1 0x55821ce5e6a5 in stream_alloc ../clients/weston-debug.c:94 #2 0x55821ce5e974 in stream_find ../clients/weston-debug.c:128 #3 0x55821ce5eb15 in debug_advertise ../clients/weston-debug.c:157 #4 0x7f3eed7b4d1c (/usr/lib/x86_64-linux-gnu/libffi.so.7+0x6d1c) Signed-off-by: Marius Vlad <marius.vlad@collabora.com> | 5 年前 | |
clients/window: dismiss window on tablet tool up events Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 | |
clients/window: Add tablet cursor support into libtoytoolkit Again, a lot of this is code that has been reused from the cursor code for pointers. Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Lyude Paul <thatslyude@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Signed-off-by: Bastian Farkas <bfarkas@de.adit-jv.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> | 3 年前 |