Commit Graph

314 Commits

Author SHA1 Message Date
Carsten Haitzler 368525255b complain if eina_str_convert doesn't work to kelp quaker66 :)
SVN revision: 65514
2011-11-22 11:08:45 +00:00
Mike Blumenkrantz 024161663c my name is Leif Middelschulte and I leave my debug printfs in my code FOREVER
SVN revision: 65387
2011-11-18 18:23:17 +00:00
Carsten Haitzler 7cca8b196c warning--
SVN revision: 65142
2011-11-14 04:33:01 +00:00
Carsten Haitzler d45aa0e846 back to unsigned long. code was actually correct as-is.
SVN revision: 65082
2011-11-12 00:54:22 +00:00
Christopher Michael 5532aafa2c Ecore_X: Fix array problem for 64-bit (unsigned long vs unsigned int).
Thanks vtorri ;)



SVN revision: 65076
2011-11-11 19:43:04 +00:00
Christopher Michael 739751e6c3 Ecore_X: If malloc fails (when trying to get a window property list),
then return -1 to indicate failure. Add some missing parens in the
formatting.



SVN revision: 65074
2011-11-11 19:11:35 +00:00
Carsten Haitzler 4bfa1caf5c add workareas get as requested in ticket #793 but actually support
more than 1 - for multi-screen.



SVN revision: 64804
2011-11-06 09:16:00 +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
Carsten Haitzler 37e2ab21c1 ecrustify on ecore-x.
SVN revision: 64239
2011-10-21 05:40:59 +00:00
Carsten Haitzler d45161691a and now make my modifications to multittouch this morning also work
again with mpx automatically. yay!



SVN revision: 64071
2011-10-14 09:11:49 +00:00
Carsten Haitzler 57e5fd31d1 put in hardcoded bitmask define if headers dont provide it.
SVN revision: 64068
2011-10-14 07:23:09 +00:00
Carsten Haitzler bf1b8531b7 support slave pointer and try not to kill mpx support.
SVN revision: 64056
2011-10-14 02:32:34 +00:00
Cedric BAIL c26c5b6fa2 ecore: define Video XAtoms.
SVN revision: 64041
2011-10-13 07:41:55 +00:00
Carsten Haitzler f543d932c4 segv over there in xlib ecore_x... suddenly... in a test app.
SVN revision: 64012
2011-10-12 09:26:09 +00:00
Carsten Haitzler 8c26779f16 update modifiers on mapping changes too.
SVN revision: 63665
2011-09-29 09:56:07 +00:00
Carsten Haitzler 0849e320a0 fix bug in generic event handling on xlib side of ecore_x
SVN revision: 63475
2011-09-19 10:11:53 +00:00
Christopher Michael 0c3a54457d Ecore_X: Function expects a Eina_Bool return, so let's use those ;)
SVN revision: 63008
2011-08-30 18:38:27 +00:00
ChunEon Park bda5802e9a ecore/ecore_x - modified to support double/triple clicked for multi touch device.
Actually, basic logic is same, 
but added the touch down info structure to store down timestamp (and window, event window...) for each device. 



SVN revision: 62980
2011-08-30 05:15:53 +00:00
Sebastian Dransfeld ea52155aeb ecore: Fix shadow warnings
SVN revision: 62562
2011-08-18 10:59:24 +00:00
Tom Hacohen 6a2929e448 Ecore X: Added Xfixes selection notification support.
Now we can get notifications for changes in X selection. This is very useful
for text editors that want to disable their "paste" button when there's
nothing to paste.

SVN revision: 62205
2011-08-08 14:36:02 +00:00
Christopher Michael 8a63b0c909 Ecore_X: Xlib uses screen number, not screen object. Fix !! Bad DH,
spank spank ;)

Thanks antognolli for the report :)



SVN revision: 61760
2011-07-26 13:17:52 +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 9e994ffdd0 Ecore_X: Add some doxy for newly added functions (to keep Tom happy),
and fix some horrid formatting.



SVN revision: 61562
2011-07-21 14:05:27 +00:00
Christopher Michael cd65bde09c Ecore_X: Add a couple of missing functions to the xlib engine.
NB: These are mainly for systray module so that it can be engine
independant in that it can just use ecore_x calls now, instead of
specific xlib stuff.



SVN revision: 61555
2011-07-21 12:09:33 +00:00
Christopher Michael 4c5e65e442 Ecore_X: Add missing shift_lock modifier. Remove unused _ecore_x_ic
variable. Add atom for VisualID (for systray module).



SVN revision: 61377
2011-07-14 15:37:04 +00:00
Naruto TAKAHASHI 39164fb44d ecore-x: Remove XIM
Signed-off-by: Naruto TAKAHASHI <tnaruto@gmail.com>

SVN revision: 61257
2011-07-12 02:26:19 +00:00
Christopher Michael 58fad65f2b Ecore: Ecore_X: Add missing EAPI for ecore_x_dnd_source_action_get
function.



SVN revision: 60834
2011-06-29 19:40:20 +00:00
Hannes Janetzek 8d783d1ee8 ecore: fix dnd for 'shaped' windows. added rect offset to 'inside' check
SVN revision: 60409
2011-06-16 21:10:41 +00:00
Daniel Juyung Seo 5724f5b257 ecore ecore_x_test.c: Fixed warnings.
SVN revision: 60396
2011-06-16 15:11:30 +00:00
Cedric BAIL b414ea97fb ecore: fix ecore_x_selection_convert not taking selection length into account.
SVN revision: 60382
2011-06-16 09:16:03 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Carsten Haitzler 724f2a70ef hmm not much testing of these ecore_x calls with backlight... at least
none of ecore_x_randr_window_outputs_get()



SVN revision: 60232
2011-06-12 01:09:09 +00:00
Christopher Michael 29067b799b Ecore_X: Fix building without shape extension (rects was undefined, as
was the variable i).



SVN revision: 59854
2011-05-31 19:28:30 +00:00
Lucas De Marchi 2f4bba5d15 ecore: fix misspellings
Misspellings found by codespell


SVN revision: 59821
2011-05-30 16:17:07 +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
Christopher Michael 0afd034b5c Ecore: Ecore_X: Init 'property' to a default value (removes compiler
warning).



SVN revision: 59611
2011-05-23 07:51:44 +00:00
Carsten Haitzler 480d967c55 fix shape and shape input handling for dnd shadow tree.
SVN revision: 59517
2011-05-18 23:55:21 +00:00
Carsten Haitzler 3e6e8f0f08 oooh evil start on trying to get real vsync interrupts from x!!!! :)
SVN revision: 59376
2011-05-14 04:11:13 +00:00
Carsten Haitzler 043bd2644a fix segv! wow. data was null.
SVN revision: 59144
2011-05-03 09:46:55 +00:00
Daniel Juyung Seo 6ef3841a37 Ecore: Removed trailing whitespaces.
SVN revision: 58753
2011-04-20 14:15:33 +00:00
Carsten Haitzler 351be6f22e fix - shapeinput not shapebounding. copy & paste error
SVN revision: 58723
2011-04-19 01:55:33 +00:00
Doyun Kang 631f94a523 From: Doyun Kang <doyoun.kang@samsung.com>
Add support for shape input setting and modification (with
fixes/modifications and extensions added tomake it more complete).



SVN revision: 58621
2011-04-13 09:06:05 +00:00
Hannes Janetzek 68e332580b ecore: fix removal of windows from ignore_list with ecore_x_window_ignore_set
SVN revision: 58549
2011-04-11 12:10:59 +00:00
Leif Middelschulte f43571de3a From: Leif Middelschulte <leif.middelschulte@gmail.com>
Subject: [E-devel] [PATCH] ecore_x_randr_current_output_get ~>
ecore_x_randr_window_outputs_get

find attached a set of patches that do the following:

State before patches:
ecore_x_randr_current_output_get was unimplemented.

State after patches:
Patch1: ecore_x_randr_window_outputs_get implements functionality of
ecore_x_randr_current_output_get
Patch2: ecore_x_randr_current_output_get is deprecated and redirects
calls to ecore_x_randr_window_outputs_get

(also i fixed the function to handle realloc errors and not fail, as
well as properly do rectangle intersects based on ROOT relative coords
which is what you wanted to start with as this would have only worked
right on immediate children of root)



SVN revision: 58513
2011-04-09 03:21:49 +00:00
Christopher Michael 41fd4b1c4f Ecore_X: Randr: Fixup formatting.
SVN revision: 58399
2011-04-06 23:49:14 +00:00
Christopher Michael cad16fd3cd Ecore_X: XLib: Add missing 'void' in dpms functions.
SVN revision: 58366
2011-04-05 17:35:18 +00:00
Leif Middelschulte 6755f0c4c6 From: Leif Middelschulte <leif.middelschulte@gmail.com>
Subject: [E-devel] [PATCH] EDID decoding functionality

find attached a patch for EDID data extraction. My display's
manufacturer didn't comply with the standard too much, so I can't test
it entirely. But it should work.

... with modifications to make it actually compile and api be cleaner,
code more robust etc.



SVN revision: 58348
2011-04-05 08:31:42 +00:00
Christopher Michael 7adaac4b7e Ecore_X: XLib: Add missing EAPI in front of
ecore_x_dnd_source_action_set function.



SVN revision: 58340
2011-04-04 22:54:42 +00:00
Christopher Michael 2455a97245 Ecore: Ecore_X: Xlib: Fix memory leak.
When handling xdnd_enter event(s), if we do not support the dnd target
version, then we issue a warning and return from the handling
function. If we are going to return (and not issue the ecore_x_event),
then free the allocated memory of the ecore_x_event_xdnd_enter
structure that we previously allocated.



SVN revision: 58337
2011-04-04 17:06:40 +00:00
Christopher Michael 73e540f6d6 Ecore_X: Xlib - Set correct doxy group for function.
SVN revision: 58304
2011-04-03 16:06:37 +00:00
Carsten Haitzler 25a08dfc52 ahem! who put unused there? who? screen *IS* used!
SVN revision: 58224
2011-03-31 10:36:20 +00:00
Carsten Haitzler 4155a7df00 add new version of efl sync proto between comp and client.
SVN revision: 58220
2011-03-31 08:13:14 +00:00
Carsten Haitzler 1588a92819 ecore-evas: feature++ : support netm sync protocol for clients
SVN revision: 58198
2011-03-30 10:10:04 +00:00
Christopher Michael a57f001e62 Ecore_X:Xlib - No need for a return at the end of a function.
SVN revision: 57937
2011-03-21 17:53:34 +00:00
Christopher Michael 6c286d5c52 Ecore/Xlib: Remove unused variable.
NB: _ecore_x_mouse_up_count appears to not be used. It was used in one
code block only and appears to serve no real purpose. Both variable
and code block are now commented out without any ill effects.



SVN revision: 57933
2011-03-21 14:43:21 +00:00
Mathieu Taillefumier 95ea487188 From: Mathieu Taillefumier <mathieu.taillefumier@free.fr>
Subject: Re: [E-devel] [PATCH][Ecore] second version of the backlight
functions

Add backlight support impl - thanks mathieu



SVN revision: 57158
2011-02-19 12:27:48 +00:00
Christopher Michael 8d02656dc5 Ecore_X_Image: Add missing LOGFN for ecore_x_image_put.
SVN revision: 57134
2011-02-17 20:11:20 +00:00
Christopher Michael d2dc1f438b Ecore_X_Image: Add trap for potential missing XImage.
if Ecore_X_Image-->XImage does not exist, we call
_ecore_x_image_shm_create to create it via shm, BUT that function
can return a NULL XImage if shm is not supported, so we need to check
the return of that, else we are calling XShmPutImage with no XImage.

(NB: This should probably be backported to 1.0...if someone could
handle that please ?)



SVN revision: 57130
2011-02-17 18:38:56 +00:00
Vincent Torri 6ef596d4d5 Use memcpy instead of strndup() as we know the length of the string.
Also fixes compilation on Mac OS X where strndup() is not defined.


SVN revision: 56341
2011-01-28 09:17:54 +00:00
Carsten Haitzler cf7eca75f8 fix oh so many warnings and potential errors - scan report.
SVN revision: 56104
2011-01-14 07:03:33 +00:00
Carsten Haitzler 267968f64a fix possible ptr deref bug waiting to happen if crtc_info is null.
SVN revision: 56091
2011-01-14 05:47:38 +00:00
Mike Blumenkrantz fe6de9181b remove redundant line
SVN revision: 56085
2011-01-14 02:57:52 +00:00
Mike Blumenkrantz 6a9d1ed0c8 avoid null deref
SVN revision: 56084
2011-01-14 02:57:07 +00:00
Carsten Haitzler 5844d77a0a geez! i used the wrong atom for pixmap prop! fix fix fix! it worked
only because copy and paste had get AND set use the same atom!



SVN revision: 56041
2011-01-11 06:14:04 +00:00
Carsten Haitzler e8056f8f83 just in case - check if malloc fails.
SVN revision: 55837
2011-01-04 06:10:31 +00:00
Carsten Haitzler 039fe1e4bf wtf? why a ! ... ??? that was wrong-ish.
SVN revision: 55802
2011-01-03 01:29:37 +00:00
Cedric BAIL 692f308955 * ecore: fix build on Mac OS X.
SVN revision: 55221
2010-12-03 18:40:30 +00:00
Gustavo Sverzut Barbieri dd19bf1205 fix screensaver events, /me spanks raster (r53942)
SVN revision: 54791
2010-11-22 14:27:43 +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
Carsten Haitzler 9817dfe5a5 note -= we may leak display struct here...
SVN revision: 53668
2010-10-20 14:10:55 +00:00
Christopher Michael 50101673d4 Attempting to track a bug in ecore_x_randr_12 where we get a segfault
when trying to free the mode_info. Not much functional difference with
this commit except that we do not call strndup if the nameLength is
<= 0.



SVN revision: 53477
2010-10-15 23:19:45 +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 a77152c531 fix double/triple click
SVN revision: 53010
2010-10-04 07:58:06 +00:00
Carsten Haitzler 201b13a221 NOOOOOOOOOOO spank disco-stu! spank. dont just dumbly shut warnings
up. read the code. its only because you HAPPEN to not have screensaver
support enabled that you happen to get the warning.



SVN revision: 52981
2010-10-02 09:32:45 +00:00
Mike Blumenkrantz 38f1d822a0 __UNUSED__
SVN revision: 52980
2010-10-02 09:15:22 +00:00
Carsten Haitzler a1cc721153 implement ecore_x_image to finish - put and convert done. actually no
need for convert from argb as that requires what evas already does
argb-> screen depth. use evas for that.



SVN revision: 52950
2010-10-01 12:31:22 +00:00
Iván Briano e6aa360c21 As requested by T_UNIX, remove the mention of any git hash in the comment, as it doesn't seem to be valid for upstream.
SVN revision: 52908
2010-09-29 22:34:02 +00:00
Gustavo Sverzut Barbieri ea831b3738 ecore_x: fix key-up events!
Bad cedric, no cookie for you! While merging r39505 introducing
Ecore_Input you had all the code to go through Xutf8LookupString(),
but its documentation says (man Xutf8LookupString):

{{{
                                        Note

            ®To ensure proper input processing, it is essential that the
            client pass only KeyPress events to XmbLookupString,
            XwcLookupString and Xutf8LookupString.  Their behavior when a
            client passes a KeyRelease event is undefined.
}}}

Yeah, Xlib is quite stupid and this makes no sense.

As this just happens for UP events, it was unnoticed for a long time
(19 months) as most apps just handle DOWN events, as it gets X
keyboard repetition and all.

Thanks to Otavio Pontes that spotted this bug while doing some code
for EPhoto (that for some weird reason uses UP instead of DOWN
events).




SVN revision: 52786
2010-09-26 19:41:02 +00:00
Christopher Michael da426bec51 Fix a couple of ecore_x_e_illume functions ... these Should be int.
SVN revision: 52785
2010-09-26 17:58:44 +00:00
Vincent Torri 29ec0433ab int --> bool
Please review it. i don't have the courage to read
everything again

It should compile on linux (committed from windows, but
corrected at the same time on linux. Thank you, VirtualBox
devs !)

SVN revision: 52784
2010-09-26 17:49:05 +00:00
Mike Blumenkrantz e56789f77e This is the Doxygen Police! If you committed any of these lines, accept your public shaming!
SVN revision: 52513
2010-09-20 20:52:15 +00:00
Mike Blumenkrantz 720fe88aef T_UNIX I AM GUESSING THIS WAS YOU!
@Brief != @brief!!!


SVN revision: 52510
2010-09-20 20:18:26 +00:00
Mike Blumenkrantz 2733968495 fix unused warns
SVN revision: 52470
2010-09-19 19:41:06 +00:00
Carsten Haitzler 9a977e2262 warning--
SVN revision: 52458
2010-09-19 03:44:42 +00:00
Carsten Haitzler c1ea3349ac warning--
SVN revision: 52457
2010-09-19 03:29:30 +00:00
Brett Nash 5ea066ec74 Deniggle and rename the exore_x_dndn_callback_pos_update_set call.
SVN revision: 52183
2010-09-13 09:15:57 +00:00
Brett Nash ba4ae189ea Use -1.
SVN revision: 52182
2010-09-13 09:15:53 +00:00
Brett Nash e36847a0ab Xdnd callback (API Addition): Rationale below.
Essentially the problem is this: For drag and drop Ecore currently handles the
position update calls.  But usually the application wants to display some user
feedback - a window to display the drag selection for instance.

Now the way e17 does it is grab the mouse cursor movements and track them
itself.  However ecore is already doing this, it's already walking window
trees, calculating real positions, _and_ sending them in an X client message.
So it seems rather silly to duplicate the code in the user app to get the same
info.

We could possibly have added a new event, but then we need to deal the fact
the position update may arrive _After_ the item has been dropped.  Hilarity
ensures[1].

This callback is meant for purely the selection owner of the drag to use, so
it is a callback set, not an add.

[1] Segfaults probably.  Nothing funnier.

SVN revision: 52181
2010-09-13 09:15:50 +00:00
Brett Nash 310ee61355 Always return an x rander version (unset in this case).
SVN revision: 52180
2010-09-13 09:15:45 +00:00
Carsten Haitzler fae947f8ea do extra composite checks - need to do the lot to be useful.
SVN revision: 52121
2010-09-10 06:57:21 +00:00
Lucas De Marchi be1b6d32ef Fix common misspellings
Following misspellings were fixed:

alledgedly->allegedly
cant->can't
carefull->careful
consistant->consistent
currenly->currently
dependancy->dependency
descripters->descriptors
doesnt->doesn't
dosen't->doesn't
existant->existent
exmaple->example
inbetween->between
independant->independent
isnt->isn't
mroe->more
neccessary->necessary
occured->occurred
occurence->occurrence
parrallel->parallel
particualr->particular
preceeding->preceding
recieved->received
recieves->receives
seperate->separate
substraction->subtraction
succesfully->successfully
successfull->successful
sucess->success
supress->suppress
usefull->useful
witht->with



SVN revision: 51986
2010-09-08 11:23:42 +00:00
Brett Nash 4bf9ee3df3 Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Carsten Haitzler 46a62d5460 leak--
SVN revision: 51702
2010-08-28 15:07:45 +00:00
Carsten Haitzler be93013208 technically xerrorhandlers have a return of an int - but its ignored
by xlib (explicitly in docs).



SVN revision: 51693
2010-08-28 04:28:15 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Carsten Haitzler 3df7e6ebfc fix randr bug! -> tunix!
SVN revision: 51475
2010-08-21 02:37:20 +00:00
Christopher Michael f8d86f6d7c Remove blank line & fix formatting of function params.
SVN revision: 51397
2010-08-19 14:41:24 +00:00
Christopher Michael 3e61872e46 Add missing UNUSED.
SVN revision: 51396
2010-08-19 14:33:49 +00:00