summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines (follow)
AgeCommit message (Collapse)Author
2016-12-19ecore_evas: remove float comparison warning from DRM backend.Cedric BAIL
2016-12-02ecore-evas-wayland: Remove unused includesChris Michael
As most of the "hard work" has been moved into ecore_evas_wayland_common file, these includes are no longer needed here. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-12-02ecore-evas-wayland: Minor formatting fixChris Michael
NB: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-12-02ecore-evas-wayland: Set all evas engine info fields before updatingChris Michael
Small patch to set all fields of the Evas Engine Info structure before calling evas_engine_info_set function Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-12-02ecore-evas-wayland: Use engine 'hidden' field for ecore_evas_hide operationsChris Michael
This patch allows us to set a 'hidden' flag in the Evas Engine information structure instead of setting a NULL surface. Setting this flag allows us to hide/show a canvas without having to destroy/recreate a wl_surface every time. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-12-02Ecore Input Evas: Add ecore_event_evas_seat_modifier_lock_update().Guilherme Iscaro
This function will set the modifiers/lock per seat in Evas. Some places will still use ecore_event_evas_modifier_lock_update(), since multi-seat is not supported.
2016-12-02ecore_evas/x: Fix window size when framespace != 0Jean-Philippe Andre
This fixes the sizing of EDI. And elm_test "States 2" The sizes stored in ecore_evas are the "window content" sizes, excluding the framespace which thus must be added to all calls to ecore_x / Xlib.
2016-11-28Ecore Evas: Add multi seat support for mouse in/out.Guilherme Iscaro
2016-11-28Ecore_Evas: Add support for per-seat focus.Guilherme Iscaro
2016-11-28ecore-evas-drm: Implement ecore_evas_screen_dpi_get for drm canvasChris Michael
Small patch to implement support for ecore_evas_screen_dpi get on the drm canvas. This will be used in enlightenment (e_scale) to get the screen dpi of the compositor canvas when we call e_scale_update. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-24ecore_wl2: avoid adding repeated devicesBruno Dilly
Summary: After changes done on commit 9f8e2e0d9c9b4150 it was possible to have multiple devices with the same id added throught the function _ecore_evas_wl_common_cb_global_added(). To avoid such issue, let's check if the device was already created first. Reviewers: iscaro Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4428
2016-11-23win: Fix maximized geometry with CSD in XJean-Philippe Andre
There is still a geometry issue after un-maximizing.
2016-11-23ecore_evas/x: Inform WM about borders and shadowsJean-Philippe Andre
This exploits the existing X Atom "GTK_FRAME_EXTENTS"
2016-11-23ecore_evas/x: Take framespace into account during resizeJean-Philippe Andre
This is another step towards CSD support for X.
2016-11-21ecore_evas_drm: Fix render freezesDerek Foreman
Missed setting pending to true in one of the paths, this resulted in an extra pageflip being scheduled too soon and returning EBUSY. This was more likely to happen on slow systems, and is hopefully the last remaining cause of render freeze on the RPI3.
2016-11-16ecore_evas_drm: Stop errant page from flip handlerDerek Foreman
This was required due to bugs elsewhere, and could potentially cause stutters in display. Now that we don't need it we're better off without.
2016-11-16ecore_evas_drm: Don't do a flip if we know a frame is comingDerek Foreman
If the async renderer is running then something's going to trigger a pageflip naturally, and if we do one now we'll block it.
2016-11-16Ecore Wayland: Remove ECORE_WL2_SEAT_CAPABILITIES_NO_SEAT.Guilherme Iscaro
Summary: It's not possible to have an Ecore_Wl2_Input without a seat. Ecore Evas Wayland: Remove seat existence check. At this point every seat advertised is considered new, therefore it will not be in the devices list. Reviewers: barbieri, jpeg, cedric, bdilly Reviewed By: bdilly Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4408
2016-11-16Ecore Evas Wayland: Create the devices during Ecore_Evas setup.Guilherme Iscaro
Summary: When launching an Elementary App using Wayland the elm_config will automatically connect to the Wayland's display server and all events regarding seats are lost, since by the time that Ecore_Evas is created the global events were already dispatched. To fix this problem, everytime an Ecore_Evas is created, the code must check if there are any seat capabilities available, if so, the devices will be created. Reviewers: bdilly, barbieri, cedric, jpeg Subscribers: devilhorns, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4390
2016-11-15ecore-evas-drm: Fix call to drmHandleEventChris Michael
As we don't compile-time link to libdrm anymore, we need to make a call to ecore_drm2_event_handle in order to process drm events. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-14ecore_evas_drm: Fix bugs in pending trackingDerek Foreman
This has been dead wrong for a while but only recently became a showstopper when another bug was fixed that made this one manifest.
2016-11-14ecore_evas_drm: Use timestamp from pageflip event for animator timeDerek Foreman
Should be more accurate this way.
2016-11-14ecore: introduce adjusting main loop time on animator.Cedric BAIL
2016-11-09ecore_evas_wayland: Re-kill double disconnect bug on fallbackDerek Foreman
Jpeg caught this one a while back and it got re-introduced recently.
2016-11-08ecore-evas-wayland: Fix case of potential double-freeChris Michael
This patch addresses the case where we failed to allocate 'wdata' and were calling free(ee) before going to an error handler. For the fix, just don't free(ee) here and let the error handling do it's job. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-08ecore-evas-wayland: Fix typoChris Michael
Fix small typo which lead to undefined error statement. Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-08ecore-evas-wayland: Add warning if we fail to set engine infoChris Michael
Coverity reports an error handling issue here as we are not checking the return value of evas_engine_info_set, so check that return and issue a warning if it fails. Fixes Coverity CID1365651 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-08ecore-evas-wayland: Fix NULL pointer dereferenceChris Michael
Coverity reports that accessing 'einfo' here is a NULL pointer dereference. evas_engine_info_get can return NULL, so we should be checking for a valid return before trying to use it. Fixes Coverity CID1365654 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-08ecore_evas_wayland: Fix null pointer dereferenceChris Michael
Coverity reports a null pointer dereference here because evas_engine_info_get can return NULL. Check for a valid return before trying to use it. Fixes Coverity CID1365655 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-08ecore-evas-wayland: Fix use after freeChris Michael
Coverity reports illegal access here as we are trying to pass a freed pointer to ecore_evas_free. Rework error handling to avoid this. Fixes Coverity CID1365657 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-03remove xcb support in ecore_x and evas engines as per mailing listCarsten Haitzler (Rasterman)
as per mailing list discussion about dropping xcb support now. it hasn't been complete for a long time, thus not recommented for being turned on. as we are moving to a wayland world xcbmakes even less sense. as agreed, time to clean up a bit and remove a distraction as well as not well tested code. this also updates po's too. @feature
2016-11-03ecore_evas/x: Minor code simplificationJean-Philippe Andre
2016-11-03wayland: Remove support for "draw_frame"Jean-Philippe Andre
draw_frame is a legacy feature that draws a very ugly window border with a white rect and a black text as title bar. This could be used in wayland when using only the ecore_evas APIs, rather than elm_win. Note that the API ecore_evas_draw_frame_set() can not possibly work as the flag is checked when the ecore_evas is created, so changing the flag has no effect on existing windows.
2016-11-02ecore_evas_wayland: Minimize differences between shm and eglDerek Foreman
Finally bring these together as much as possible to avoid future diversions when bugs are only fixed in one or the other. There are functional changes - state tracking for client side effects is now added to the shm engine, some bug fixes for the egl engine have been brought to the shm engine.
2016-11-02ecore_evas_wayland: Make resize code commonDerek Foreman
Brings resize code into the common implementation - there is a functional change. There appears to have been a bug in the egl resize where it used the same w, h order for portrait evases as for landscape. This was fixed in shm. I've used the shm variant for the common code.
2016-11-02ecore_evas_wayland: Make rotation_set commonDerek Foreman
Rotation set can be moved into common now - should be no functional change.
2016-11-02ecore_evas_wayland: Make transparent_set commonDerek Foreman
Moves transparent set into the common implementation - there is a functional change here - the egl engine now calls transparent_set in render_updates like the shm engine. It is probable the this was the intended behaviour all along.
2016-11-02ecore_evas_wayland: Make alpha set commonDerek Foreman
Moves alpha set into the common implementation - there is a functional change here - the egl engine now calls alpha_do in render_updates like the shm engine. It is probable that this was the intended behaviour all along.
2016-11-02ecore_evas_wayland: Move more functions into the common implementationDerek Foreman
Show and hide can be made common with almost no functional changes.
2016-11-02wayland evas engines: share engine info structureDerek Foreman
These engines are incredibly similar - by sharing the same engine info structure we'll be able to simplify the wayland ecore_evas bits and make them much more maintainable.
2016-11-02ecore_evas_wayland: Don't include Evas_Engine_Wayland_Egl.hDerek Foreman
There doesn't seem to be any need for this.
2016-11-02wayland_egl: Remove unused wl_egl_window variablesDerek Foreman
2016-11-02wayland evas engines: rename wayland display to wl_displayDerek Foreman
Continuing to make the shm and egl engines closer to eachother.
2016-11-02wayland_egl: Rename surface to wl_surfaceDerek Foreman
Making this code more closely match the wayland_shm engine
2016-11-02wayland_egl: Remove pre_post_swap_callback_setDerek Foreman
This stuff seems copied from gl_x11 which actually has API to use it. In this engine nothing can actually set it, so it's just all dead code.
2016-11-02wayland ecore evas: move move_resize to commonDerek Foreman
It's identical in both shm and egl variants, share it.
2016-11-02wayland_egl: Remove some leftovers from wwwDerek Foreman
The render post callback and "wobbling" variable were only required for the client side effect.
2016-11-01ecore_wl2: associate evas devices to input ecore eventsBruno Dilly
So users would be able to differentiate between source seats.
2016-11-01ecore_wl2: add ecore event for seat capabilities changeBruno Dilly
So when mouse / keyboard are present or not it will generate events. ecore_evas/wayland will handle that creating or deleting evas devices for each one (seat device will be used as parent).
2016-11-01ecore_wl2: add ecore event for seat name changeBruno Dilly
And handle it on ecore_evas/wayland, properly setting the evas device names.