Commit Graph

142 Commits

Author SHA1 Message Date
Daniel Juyung Seo 96fe10ba68 ecore_evas_x: Check 1 for gl_sync_draw_done instead of 0 before sending comp_sync_draw_size_done.
There was a corner case which gl_sync_draw_done is set to -1. So send
comp_sync_draw_size_done when the gl_sync_draw_done is not 1. It can be -1 or 0.

This is a manual cherry-pick from tizen.org.
Thanks to original author Jiyoun Park.

commit 4be6c821df4ccd418dbe44f7e6fecbcd7dd66d74
Author: Jiyoun Park <jy0703.park@samsung.com>
Date:   Thu Jul 4 18:04:11 2013 +0900

    fix lockup issue (N_SE-44214)
    because this sync draw done cannot be send

    Change-Id: Id05978e925d5b44d6ca9af0a1684bbb255b9ec5b
2014-01-08 23:32:43 +09:00
Daniel Juyung Seo e5bfbedfa2 ecore_evas_x: Fixed formatting and added an empty line for a better readability. 2014-01-08 23:32:43 +09:00
Carsten Haitzler 7a46449191 ecore-evas - x11 - call resize callback if wm denies resize request
in SOME cases a wm may deny a resize request entirely and keep the
window size the same. it does so with a configurenotify of the SAME
size as before. problem is we never passed this onto the app with a
resize callback of the original size before request to the new size.
this does that now.

cherry-pick me!
2013-12-30 13:43:49 +09:00
Daniel Juyung Seo c4b7f83ef6 ecore_evas: removed author's name from source code as the author requested it.
Git log should be enough for the credit :)

This code was merged into efl upstream by devilhorn's aggressive synchronization between efl upstream and tizen.
But that commit didn't have the author's credit.
However We will never forget the contribution of Gwanglim Lee <gl77.lee@samsung.com>.
2013-12-18 23:49:06 +09:00
ChunEon Park 0947bae126 ecore/ecore_x - show the window if the window should be visible.
when the window alpha mode is changed, the x window is re-created.
but if the window is going on the show state(not visible yet but waiting for visible from xserver) this window never be visible.
so here it make the window visible also if the window is going on the visible state.
2013-12-17 20:37:17 +09:00
Sebastian Dransfeld 0223d0cee3 ecore_evas: No error if window creation fails
It is common that some types of ee's will fail as the underlying system
does not support it, just warn.
2013-11-21 10:51:25 +01:00
Chris Michael fd0c3f10f6 whitespace--
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-31 11:48:59 +00:00
Carsten Haitzler a3aa1ed7f0 ecore-evas - handle mouse out then in due to click-to-focus passive grabs 2013-10-19 02:46:25 +09:00
discomfitor 73bd605b7f cosmetic/logic move evas_sync call into same if block when applying alpha settings that might be deferred 2013-10-16 17:57:07 +01:00
Carsten Haitzler 06c3c0cd0c async render -> alpha set. if not visible dont WAIT. do it now. 2013-10-17 00:00:05 +09:00
Carsten Haitzler e309967384 Revert "ecore_evas: window does not go back to normal state if you set iconified to EINA_FALSE."
This reverts commit 9bfb730ff5.

wrong! on deiconify this will now FORCE a ACTIVATE request to the wm
(which asks the wm to focus the window/hilight it and make it active.
might switch desktops or whatever). this is wrong. de-icoifying a
windows does NOT mean ALSO activating it!. the log message also doesnt
say what "go back to normal state"... means.... do they expect/INSIST
windows MUSt be focused after de-iconification? that's wrong as it's a
window management FOCUS policy, not something to do in the lib.
2013-10-15 10:45:37 +09:00
Michal Jagiello 9bfb730ff5 ecore_evas: window does not go back to normal state if you set iconified to EINA_FALSE.
Reviewers: cedric, raster, Hermet

Differential Revision: https://phab.enlightenment.org/D245

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-10-14 12:10:19 +09:00
Stefan Schmidt 91426926c5 ecore_evas: Fix potential NULL dereference.
We don't want to execute any of the function below if t is NULL. Its not
only about strdup but alsa ecore_x_netwm_name_set which might dereference it.

CID 1039400
2013-08-07 15:38:35 +01:00
Mike Blumenkrantz 5d1dec17b3 ecore-evas-x no longer tries making x calls on deleted windows when trying to free its sync counter 2013-08-01 12:17:58 +01:00
Mike Blumenkrantz 569b2fd86a ecore-evas-x no longer uses X windows after receiving a destroy event 2013-07-24 14:01:03 +01:00
Chris Michael 9a4fc9ad44 Add engine interface code for:
- ecore_evas_pixmap_visual_get
- ecore_evas_pixmap_colormap_get
- ecore_evas_pixmap_depth_get
Assign interface functions for above when creating the new interface.
When creating the pixmap, store the visual and colormap for later
retrieval.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-11 10:49:25 +01:00
Chris Michael fc9ee11462 Add visual and colormap to pixmap structure
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-11 10:49:25 +01:00
Chris Michael 4a40c8298b Remove prev_front pixmap from structure
Use a local variable to hold previous front pixmap while swapping

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-11 08:56:44 +01:00
Chris Michael fca4267ae4 Add functions to X engine for ecore_evas_pointer_xy_get and
ecore_evas_pointer_warp

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-08 10:57:00 +01:00
Chris Michael 6ea61e3e56 Fix formating ... Wow, how did this get sooo screwed ? :(
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-08 10:16:09 +01:00
Chris Michael 73a68f2f0d Add code for gl_pixmap_new and pixmap_get functions
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-08 07:21:51 +01:00
Chris Michael 7431e6a02a Check for valid ee->prop.window before trying to fetch window
attributes from it.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-05 11:09:25 +01:00
Chris Michael 2c322cc7b1 Add code for ecore_evas_<engine>_pixmap_new/get functions.
- Add "pixmap" structure to engine_data.
    - Free the front and back pixmaps when the ecore_evas gets freed.
    - On resize, drop the backing pixmap if size is different.
    - Before we render, check pixmap size vs EE size and create new
backing pixmap if needed.
    - After we have rendered into the backing pixmap, flip it to the
front so that any calls to "pixmap_get" will return the proper one.
    - Add pixmap_new_internal code (the actual guts for all this)

NB: These can be used to create an internally double-buffered
ecore_evas that renders to a pixmap (not a window).

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-05 10:44:18 +01:00
Sebastian Dransfeld 336f6ec328 efl: formatting 2013-06-20 13:28:18 +02:00
Ryuan Choi 32b3132c84 ecore_evas/x: Fixed that cursor object was not disappear
When moved mouse among two objects having cursor set,
EVAS_CALLBACK_MOUSE_OUT and EVAS_CALLBACK_MOUSE_IN are fired.

I observed that evas_object_del in callback of EVAS_CALLBACK_MOUSE_OUT
calls EVAS_CALLBACK_MOUSE_IN
so that newly added cursor object was detached.
2013-05-21 09:38:20 +09:00
Cedric BAIL d583d08814 evas: no need for a callback per async call.
Let's not multiply our callback infrastructure without any serious need. We
already have to many of them.
2013-03-26 11:59:27 +09:00
Jiyoun Park 8653a45cb1 * Ecore_x: fix alpha set function not clear sync counter 2013-03-22 18:49:46 +09:00
Cedric Bail 32661a5ac4 ecore_evas: re-order inclusion of header to fix compilation on Windows.
It is a very tricky things to get header order right on windows. Having that
order only in .c files simplify the work a lot. So let's try to do it with
Ecore_Evas after it rewrite and split into modules.
2013-03-12 15:58:43 +09:00
Jiyoun Park bcfc58f460 ecore_x: fix bug not check data value when get deiconify message 2013-03-12 11:53:21 +09:00
Jiyoun Park 9210db4dd5 Ecore_x: Add manual render code before deiconify 2013-03-07 16:33:59 +09:00
Jiyoun Park c5a8a6b5ff Add infrastructure to handle message between ecore and parent ecore in Ecore_Evas
I add new example related with this. (ecore_evas_extn_socket & plug example)
ecore extn use this infrasturcture, server app and client app can communicate each other
later, this can be used to contorl access message


SVN revision: 83942
2013-02-15 09:32:40 +00:00
Gustavo Sverzut Barbieri df701d8ca2 some clang warning cleanups i forgot to commit
SVN revision: 83024
2013-01-21 00:22:35 +00:00
Leandro Pereira f52f44e7a2 evas_render: Measure time spent while rendering in sync and async modes
SVN revision: 82936
2013-01-17 14:31:34 +00:00
Carsten Haitzler 006e73ec41 follow on from last week - ee state not quite being handled right in
x11 when being iconified. missed commenting it out. fix and handle
initial state too.



SVN revision: 82747
2013-01-14 09:45:05 +00:00
Gustavo Sverzut Barbieri 0f5bf5197f ecore_evas_x: add some debug to help find out e_border problems.
EDBG macro is at level 5 to avoid messing existing debugs, use it like:

export EINA_LOG_LEVELS=ecore_evas:5



SVN revision: 82656
2013-01-11 18:45:10 +00:00
Carsten Haitzler ede2faa1aa oh and also fix up properties to not update until event comes back
from x telling us they did. :)



SVN revision: 82558
2013-01-10 11:53:07 +00:00
Carsten Haitzler e2243e6c55 elm win throttle/norender auto... eocre-evas got a few things wrong.
no - not planning a backport of this at this stage. small thing. maybe
backport (and chlog/news) if this doesnt cause any new issues?



SVN revision: 82549
2013-01-10 11:23:10 +00:00
Carsten Haitzler 478de3ec76 small change - not worth chglogging... make evas gl x11 header not
need xlib.h anymore... :)



SVN revision: 82378
2013-01-08 03:49:49 +00:00
Gustavo Sverzut Barbieri 4148218617 efl/ecore_evas_x: remove includes that are not required.
SVN revision: 82371
2013-01-07 23:14:08 +00:00
Gustavo Sverzut Barbieri b716ab72e9 efl: warnings--
SVN revision: 82273
2013-01-05 14:04:22 +00:00
Leandro Pereira 613659b1d8 ecore-evas: Async render
SVN revision: 81283
2012-12-18 16:27:26 +00:00
Flavio Vinicius Alvares Ceolin ad7579c129 ecore_evas: Make the engines loadable modules
Implementing support for loadables modules. It makes the engines been
loaded when they are needed. It not breakes the api, so each engine
still has its own api.

The implementation basically is:

* Functions that creates Ecore_Evas, for example
  ecore_evas_software_x11_new, request to load its module and then get
  the module's function to create the Ecore_Evas.
* The other functions such as \(.*\)_window_get from the Ecore_Evas
  its interface and then call the appropriate method.
* As there is no unified interface to communicate with the engines
  (not break api problem), all interfaces were declared in
  ecore_evas_private.h
* Now the data necessary for each module is not declared in the
  Ecore_Evas_Engine structure, instead of this, the struct has a void
  pointer that is used by the modules.
* In this first moment engines as software_x11 and gl_x11 were put
  together in the same module, but obviously exporting all the things
  necessary.


SVN revision: 80280
2012-12-05 21:15:42 +00:00