Commit Graph

66 Commits

Author SHA1 Message Date
Sebastian Dransfeld c7a59e832a ecore_x: Fix typo
SVN revision: 75421
2012-08-18 19:18:53 +00:00
Carsten Haitzler 4e17d57b06 I know this is a new feature. i know i know. doing this because
otherwise we weill need another efl release for e17 to get out.

modified patch from:
http://trac.enlightenment.org/e/ticket/1306



SVN revision: 75409
2012-08-18 11:29:47 +00:00
Jihoon Kim 163df8ccbd ecore: fix doxygen warnings
SVN revision: 71569
2012-05-31 00:18:38 +00:00
Christopher Michael 66dffc9b9d Ecore_X(cb): And memset the appropriate structure too.
SVN revision: 71328
2012-05-22 15:15:52 +00:00
Christopher Michael 8b6d662acb Ecore_X(cb): Fix ecore_x to build again with xcb.
SVN revision: 71327
2012-05-22 15:12:40 +00:00
Carsten Haitzler 06a3cbaf42 Add ecore_x_mouse_in_send() and ecore_x_mouse_out_send()
Add ecore_x illume access control/action atoms+api's
                


SVN revision: 71320
2012-05-22 12:09:06 +00:00
Jonas M. Gastal a1e12eddbb Cleanup Doxygen Warnings - ecore 4
Files modified:
ecore/src/lib/ecore_wayland/ecore_wl_window.c
ecore/src/lib/ecore_x/xcb/ecore_xcb.c
ecore/src/lib/ecore_x/xcb/ecore_xcb_randr.c
ecore/src/lib/ecore_x/xcb/ecore_xcb_window.c
ecore/src/lib/ecore_x/xcb/ecore_xcb_window_shadow.c
ecore/src/lib/ecore_x/xlib/ecore_x.c
ecore/src/lib/ecore_x/xlib/ecore_x_randr_12.c
ecore/src/lib/ecore_x/xlib/ecore_x_window.c
ecore/src/lib/ecore_x/xlib/ecore_x_window_prop.c

SVN revision: 70424
2012-04-23 20:09:55 +00:00
Christopher Michael 5fe0a937c3 Ecore_X(cb): And simplify the checking for success. 'ret' is already
false, so we can just check reply->status for success.



SVN revision: 70248
2012-04-16 22:05:10 +00:00
Christopher Michael cada067d79 Ecore_X(cb): Fix xcb_change_pointer_control call to operate properly.
NB: If an xcb function requires a xcb_request_check, then be sure to
use the 'checked' version of that function.



SVN revision: 70246
2012-04-16 21:54:33 +00:00
Jérôme Pinot 7d464af0a1 From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] ecore doxygen doc (2)
Date: Thu, 12 Apr 2012 12:46:04 +0900

Hi,

This is a big patch. It fixes:
- undef #EINA_{TRUE,FALSE} links
- @c for NULL and EINA_{TRUE,FALSE}
- some formatting/spello
- several missing return types


SVN revision: 70117
2012-04-12 03:51:36 +00:00
Sung-Jin Park 19ab8e3f74 From: Sung-Jin Park <sj76.park@samsung.com>
Subject: Re: review request : ecore x patch for X Gesture extention

Do you remember that I told you X gesture extension patch for ecore x ?
I’d like to put the attached patch to ecore_x in upstream.
This patch is just for initializing/receiving X gesture extension stuff.
Would you please put this in SVN ? : )
Thanks and regards,
Sung-Jin Park



SVN revision: 64732
2011-11-04 12:44:28 +00:00
Christopher Michael 4aa5ab36f5 Ecore_X(cb): Remove some dead code. Fix formatting (how did this get
sooo messed up ??).



SVN revision: 64328
2011-10-23 18:33:32 +00:00
Carsten Haitzler 37e2ab21c1 ecrustify on ecore-x.
SVN revision: 64239
2011-10-21 05:40:59 +00:00
Christopher Michael 2dde82d216 Ecore_X(cb): Return correct screen from ecore_x_screen_get
SVN revision: 63818
2011-10-05 00:52:02 +00:00
Christopher Michael d579c7812d Ecore_X(cb): Disable filtering of MotionNotify events. Could cause
problems with prediction. Thanks mate ;)



SVN revision: 63587
2011-09-24 09:21:17 +00:00
Christopher Michael c748d1b17b Ecore_X(cb): Remove debug printout. Add missing logfn.
SVN revision: 63507
2011-09-21 05:13:03 +00:00
Christopher Michael 5f68e376b2 Ecore_X(cb): Add macro to check for validity of the xcb_connection
before trying to use it.



SVN revision: 63494
2011-09-20 09:12:02 +00:00
Christopher Michael 663ce7f2fc Ecore_X(cb): Add checks to make sure that extensions are loaded and
available before making calls to them.



SVN revision: 63492
2011-09-20 07:34:50 +00:00
Christopher Michael c7a7c71541 Ecore_X(cb): Fix 'dpy' thingies ;)
SVN revision: 63489
2011-09-20 07:14:11 +00:00
Christopher Michael 5f037fce40 Ecore_X(cb): Work around (possible) xcb bug where
ecore_x_screen_index_get was not returning the proper 0-based index.

NB: Fixes OpenGL with xcb.



SVN revision: 63440
2011-09-16 14:16:09 +00:00
Christopher Michael 4128761216 Ecore_X(cb): Remove extra calls to ecore_x_flush. Move main loop
flushing call to an idler like ecore_evas does...Thanks k-s ;)



SVN revision: 63359
2011-09-13 16:32:34 +00:00
Christopher Michael 67a369fee3 Ecore_X(cb): Add simple .Xdefaults file parser for getting dpi, cursor
size, etc.

NB: Xcb has no support for xrdb (yet), so parse dpi, etc from
.Xdefaults (if exists).



SVN revision: 63299
2011-09-08 21:51:08 +00:00
Christopher Michael bd3a56cc18 Ecore_X(cb): Add missing flush after send_event(s).
SVN revision: 63004
2011-08-30 18:34:40 +00:00
Christopher Michael 121d5b7314 Ecore_X(cb): Enable code for using xprint to get window root list
(like xlib has). Remove some fixme's (implement error checking for a
few functions).

NB: While this code makes ecore_x_window_root_list work like the xlib
version does (ability to use xprint to get list), I highly recommend
building ecore without xprint support (--disable-ecore-x-xprint)
because this seems like a lot of work to go through to get the window
root list. Building without xprint support provides a faster code path.



SVN revision: 62696
2011-08-22 20:10:53 +00:00
Christopher Michael 57cc30c651 Ecore_X(cb): Filter out some motion_notify events to reduce cpu
intensive operations (helps wrt fps when scrolling).

NB: I've seen no adverse effects from this, but please report if you do.



SVN revision: 62637
2011-08-20 21:14:34 +00:00
Christopher Michael d9be5b2495 Ecore_X(cb): Use unchecked version for get_input_focus. Cache pixmap
format for reuse so we don't have to keep iterating pixmap formats
from the server setup (can be expensive).



SVN revision: 62627
2011-08-20 11:04:10 +00:00
Christopher Michael 64fdc36b02 Ecore_X(cb): Add some extra 'flush' calls to improve framerate.
NB: For the purests, I know some/most of these are erroneous (extra &
not needed), but please leave them for now until I get time to go
through each one separately to verify & remove (or leave).



SVN revision: 62610
2011-08-20 02:33:57 +00:00
Christopher Michael 4b16e8b6fb Ecore_X: Make ecore_x_init (wrt xcb) match the xlib version more (add
eina_init, etc).
dlopen XCloseDisplay for opengl and use that also.
Use the unchecked version for query pointer.
Add some FIXME notes.



SVN revision: 62218
2011-08-08 20:39:10 +00:00
Christopher Michael c3730e9748 Ecore_X: Remove recent xcb resource code (we're going to go a
different path with this) ;) Reorder init/shutdown procedures to match
order (first in, last out).



SVN revision: 61788
2011-07-27 05:10:28 +00:00
Christopher Michael f694f08de5 Ecore_X: Add some new api functions for getting default
Depth/Visual/Colormap of a given screen.

NB: Added these so that we can remove xlib specific calls in
ecore_evas and just generic ecore_x calls (so we are engine
independant).



SVN revision: 61742
2011-07-26 11:19:55 +00:00
Christopher Michael 72abee3481 Ecore_X: Add a missing function for getting the count of screens.
Bonus: Added doxy and the @since stuffs (for Tom) ;)

NB: Needed for changes to ecore_evas as that was using xlib
ScreenCount. This way we can just use ecore_x_screen_count_get and not
have to worry if we are xcb/xlib/etc.



SVN revision: 61728
2011-07-26 06:44:12 +00:00
Christopher Michael 210b6dcc9b Ecore_X: Oopsie, don't need those dbg statements anymore.
SVN revision: 61725
2011-07-26 05:55:25 +00:00
Christopher Michael 37b122117e Ecore_X: Add start of XResource handling for xcb backend (NB: Nowhere
near finished yet). Add working OpenGL for XCB engine.

NB: wrt Opengl...Raster, this is the env var/dlsym version you
requested this morning ;)

NB: Basically what happens is, if you know you do not ever want/use
opengl, you can export ECORE_X_NO_XLIB env variable, and ecore_x will
use pure xcb to establish it's X connection. However, if you do use
OpenGL and this env var is not exported, then ecore_x(cb) will use
XOpenDisplay to init the connection.



SVN revision: 61724
2011-07-26 05:54:01 +00:00
Christopher Michael 654b646e22 Ecore_X: Add new xcb code (still not 100% complete tho).
SVN revision: 61376
2011-07-14 15:35:42 +00:00
Gustavo Sverzut Barbieri 7074e168e1 A voice in my head said "vtorri will go after you if you don't provide a changelog for those auxiliary functions"
SVN revision: 59762
2011-05-27 19:38:14 +00:00
Gustavo Sverzut Barbieri 7233dba9d8 provide a way to query screen size (just the default screen right now).
NOTE: I don't have xcb, so it's untested. It is supposed to work given
http://www.x.org/releases/X11R7.5/doc/libxcb/tutorial/#DefaultScreen



SVN revision: 59760
2011-05-27 19:17:04 +00:00
Carsten Haitzler c3ffeee9e1 ecore_x -> add mapping change event for when key/pointer/modifier
mappings change (xmodmap or kbd layout change).
fix other events to have proper eina_bool too and enums
also remove already disabled old unimplemented events commented out.



SVN revision: 53942
2010-10-28 00:32:43 +00:00
Gustavo Sverzut Barbieri 3a88bc8b71 log domains in lower-case only please.
let's make it a standard so we don't have to look at the code
everytime to figure out the name...



SVN revision: 53172
2010-10-07 22:31:46 +00:00
Carsten Haitzler acb667de11 at least it builds now with eina_bool changes and randr changes.
woefully incomplete tho.



SVN revision: 52866
2010-09-28 22:37:04 +00:00
Lucas De Marchi bbc863fbe7 init/shutdown ecore in ecore_x_init
2 simple rules:
 1) init what you use
 2) shutdown what you init



SVN revision: 50836
2010-08-05 13:50:47 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Mike Blumenkrantz 54a05dc2aa re-reformat
SVN revision: 50747
2010-08-02 18:54:27 +00:00
Carsten Haitzler bdce85e21c del x fd handler before close.
SVN revision: 50669
2010-07-30 02:44:43 +00:00
Lucas De Marchi 01d20339dd Create interface to system bell
Only the xlib implementation is done. It's calling XBell() to alert user.



SVN revision: 50290
2010-07-16 20:54:18 +00:00
Lucas De Marchi 7051feb04e Fix callback signatures
The change from returning int to Eina_Bool left several call sites with
warnings because they were not updated. Here they are fixed by using
Coccinelle, a tool that allows us to automate tasks like that. This
commit was generated from the following semantic patch:

virtual org

@r1@
identifier fn!=NULL, fn2;
expression E1, E2, E3;
@@
(
ecore_event_handler_add(E1, fn, ...)
|
ecore_event_filter_add(E1, fn, ...)
|
ecore_idler_add(fn, ...)
|
ecore_idle_enterer_add(E1, fn, ...)
|
ecore_idle_enterer_before_add(E1, fn, ...)
|
ecore_idle_exiter_add(E1, fn, ...)
|
ecore_main_fd_handler_add(E1, E2, fn, E3, fn2, ...)
|
ecore_main_win32_handler_add(E1, fn, ...)
|
ecore_timer_add(E1, fn, ...)
|
ecore_timer_loop_add(E1, fn, ...)
|
ecore_animator_add(fn, ...)
|
ecore_poller_add(E1, E2, fn, ...)
)

@r2@
identifier r1.fn;
identifier ret;
typedef Eina_Bool;
position p;
@@
- int
+ Eina_Bool
fn@p(...) {
<...
(
- return 1;
+ return EINA_TRUE;
|
- return 0;
+ return EINA_FALSE;
|
- int
+ Eina_Bool
ret;
...
return <+...ret...+>;
|
return ...;
)
...>
}

@r3@
identifier r1.fn2;
identifier ret;
position p;
@@
- int
+ Eina_Bool
fn2@p(...) {
...
(
- return 1;
+ return EINA_TRUE;
|
- return 0;
+ return EINA_FALSE;
|
- int
+ Eina_Bool
ret;
...
return <+...ret...+>;
|
return ...;
)
...
}

@r4@
identifier r1.fn;
@@
- int
+ Eina_Bool
fn(...);

@r5@
identifier r1.fn2;
@@
- int
+ Eina_Bool
fn2(...);

@script:python depends on org@
p << r2.p;
f << r1.fn;
@@
import sys
msg="WARNING: wrong callback %s! ( %s:%s )" % (f, p[0].file,p[0].line)
print >> sys.stderr, msg

@script:python depends on org@
p << r3.p;
f << r1.fn2;
@@
import sys
msg="WARNING: wrong callback %s! ( %s:%s )" % (f, p[0].file,p[0].line)
print >> sys.stderr, msg



SVN revision: 49985
2010-07-02 01:38:05 +00:00
Cedric BAIL fbe9064310 * ecore: Ecore callback really should return Eina_Bool.
SVN revision: 49829
2010-06-24 16:15:56 +00:00
Vincent Torri eb4c9979f2 fix for double free, occured while processing a buffered event twice.
patch by Alexander Kerner


SVN revision: 49690
2010-06-15 22:37:07 +00:00
Vincent Torri 7c4ab89bc9 XCB used to provide iterators for requests returning
list of values. Recent versions dropped it and return
arrays instead. Adapt code to use arrays unconditionally
(arrays were present in earlier libxcb versions).

Patch by Mikhail Gusarov


SVN revision: 49667
2010-06-14 19:17:49 +00:00
Mikhail Gusarov 99a429aab7 ecore_x/xcb: Fix broken init count in ecore_x_init
SVN revision: 45109
2010-01-14 05:10:26 +00:00
Mikhail Gusarov 513a9dab25 ecore_x/xcb: Do not segfault if unable to connect to display
There is xcb_connection_has_error to check connection errors,
and return value of xcb_connect is always non-NULL.

SVN revision: 45088
2010-01-13 20:24:48 +00:00