Mike Blumenkrantz
052fc85cd3
okay, bring back xrandr < 1.4 compat for ecore_x_randr_output_name_get
...
apparently I read the commit order wrong and this fix went in for 1.4.0, not 1.3.2, which means anyone who has 1.3.2 has been having lots of fun crashes for the past 24 hours
2014-01-21 16:07:38 -05:00
Mike Blumenkrantz
8cbd7c1622
nul terminate string from ecore_x_randr_output_name_get
2014-01-21 14:58:31 -05:00
Mike Blumenkrantz
1feed7a1ae
ecore_x_randr_output_name_get fixme removed
...
this was a fixme which was likely written sometime before July 2010 when the bug was fixed, just prior to the 1.3.1 release. I think it's probably okay to require that release since it's been 3+ years.
2014-01-20 22:16:18 -05:00
Jihoon Kim
8fcedfc017
fix 'found unknown command' warning in generating doxygen
2014-01-06 14:01:15 +09:00
Sebastian Dransfeld
31fde249d4
ecore_x: Also check for !prop here
...
We check if prop is NULL after first property check, do it here too.
Fixes CID 1039429
2013-12-07 21:11:33 +01:00
Sebastian Dransfeld
3dc5eb16cc
ecore_x: accept -1 as valid mm size for no change
...
If we pass in w_mm = h_mm = -1 we want no change if w == cw and h == ch,
as we calculate w_mm and h_mm based on these later.
2013-11-07 09:18:16 +01:00
Sebastian Dransfeld
144d124445
ecore_x: store atoms internally
...
No need to request them every time.
2013-11-07 09:18:16 +01:00
Sebastian Dransfeld
a7382dacfa
ecore_x: get correct property
...
Since the function is ecore_x_randr_output_connector_type_get, I guess
we want RR_PROPERTY_CONNECTOR_TYPE, not RR_PROPERTY_CONNECTOR_NUMBER.
2013-11-07 09:18:16 +01:00
Chris Michael
3cc4efaf50
Fix doxy typo/grammar
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-26 12:16:10 +01:00
Chris Michael
aa75297381
Add #ifdef ECORE_XRANDR around the edid functions.
...
NB: Cannot really happen for 1.8 (as --disable-ecore-x-randr has no
effect), but really these should have been ifdef'd from the start.
NB: IMO, Don't think a ChangeLog is really needed for this....
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-01 15:18:01 +01:00
Chris Michael
55094c9eb0
Set Crtc info->outputs and info->possible to NULL initially.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-26 07:06:58 +01:00
Chris Michael
3e9edcd539
Fix typo
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-25 13:32:06 +01:00
Chris Michael
551610fa41
Guard against allocating 0 outputs and 0 possible outputs.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-25 13:09:34 +01:00
Chris Michael
8aef3fa98a
Guard against trying to allocate 0 outputs.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-25 13:08:18 +01:00
Chris Michael
f287fd33a7
Trap for number of crtcs < 1 so we do not try to allocate space for
...
zero crtcs.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-25 12:32:49 +01:00
Carsten Haitzler
e945f0d196
ecore-x: fix randr query when noutputs is 0.
2013-07-24 19:22:31 +09:00
Chris Michael
207ad636fe
Avoid potential divide by zero error.
...
NB: Fixes Coverity CID1039437and CID1039438
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-07-08 14:55:14 +01:00
Chris Michael
d263e31c7f
When getting crtc info, fill in missing "rotations" field so that the
...
value is initialized.
NB: Spank Spank whoever did this ... oh wait, that was me :( Ouch !!
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-06-27 10:46:34 +01:00
Chris Michael
1d58f5ff1d
Don't allocate space for a mode name unless the nameLength is greater
...
than 0.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-05-24 18:25:53 +01:00
Chris Michael
afff55eec5
Fix memleak in ecore_x_randr_crtc_settings_set.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-21 14:32:25 +01:00
Chris Michael
bc31a55bda
Add ecore_x_randr_config_timestamp_get to return config timestamp that
...
XRandr has currently.
NB: needed for some updates/fixes to randr dialog.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-05-11 16:30:38 +01:00
Henrique Dante de Almeida
ca8fc827a3
efl: Fixes to support compiling with CFLAGS=-Werror
...
This allows compiling with gcc 4.7.2 without errors (using the
default configuration).
2013-02-26 10:55:04 -03:00
Carsten Haitzler
c5ade50c9f
Fix ecore-x edid fetch to ftech 128, not 100 bytes.
2013-02-20 17:16:54 +09:00
Carsten Haitzler
afd8a714f4
devilhorns: ummmm lets not segv and run allover the stack shall we? memset the
...
size of memory we ALLOCATED!
SVN revision: 83757
2013-02-08 03:35:11 +00:00
Christopher Michael
37749b3d3e
Add ecore_x_randr_crtc_info_free function.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83739
2013-02-07 12:43:55 +00:00
Christopher Michael
2fe1fa053f
Fix crtc_info_get function (memcpy fails here in some cases, so
...
manually allocate and copy things over).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83737
2013-02-07 12:43:46 +00:00
Christopher Michael
20d1df8a23
Add ecore_x_randr_crtc_info_get function.
...
NB: This will save us Many X round-trips in the new randr dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83728
2013-02-07 09:32:24 +00:00
Christopher Michael
562b278b52
Be a lot more pedantic and add some more safety checks about xrandr
...
return values (ie: if xrandr returns 0 crtcs, then we don't need to
allocate anything, etc, etc, etc).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83624
2013-02-05 11:55:51 +00:00
Christopher Michael
0c76117e1e
Be a bit more pedantic when getting outputs for a crtc, in that if
...
xrandr returns 0 outputs, then free resources and return null quickly.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83623
2013-02-05 10:51:57 +00:00
Christopher Michael
f317906408
Set number of returned modes early in the process.
...
Let's be a bit pedantic here, if the number of returned modes is Zero,
then just free resources and get out.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83617
2013-02-05 08:53:18 +00:00
Christopher Michael
cdb82dc2df
Tell X to create the edid atom if it is missing so we can return valid
...
edid information.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83556
2013-02-01 12:06:55 +00:00
Christopher Michael
e6be42978b
Length is optional here when getting edid from output.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83554
2013-02-01 11:50:59 +00:00
Christopher Michael
ea30a66335
Since we actually support RandR 1.4 now, lets increment the minor
...
version number.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83484
2013-01-30 15:12:22 +00:00
Christopher Michael
afcc2c64c7
Actually Implement RandR 1.4 functions (with code) ;)
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83471
2013-01-30 10:18:44 +00:00
Christopher Michael
1330412be7
Deprecate old ecore_x_randr_crtc_gamma functions.
...
Add new ecore_x_randr_crtc_gamma functions that use the proper
structure.
Add some missing UNUSED for function params.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83465
2013-01-30 09:32:52 +00:00
Christopher Michael
390c54eda3
Add missing UNUSED to some function parameters.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83458
2013-01-30 07:25:43 +00:00
Boris Faure
d9e05b1b40
ecore_x: randr: don't crash when launching e without second screen
...
SVN revision: 83449
2013-01-29 19:55:42 +00:00
Christopher Michael
8e62eb9519
Implement & fix ecore_x_randr code.
...
NB: All functions which are in the Ecore_X header have now been
implemented except for 2.
NB: No support yet for the RandR 1.4 functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83439
2013-01-29 14:48:14 +00:00
Christopher Michael
3888089a7f
Remove old randr code.
...
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83437
2013-01-29 14:48:08 +00:00
Vincent Torri
7d6010b12c
merge: add escape ecore, fix several bugs
...
SVN revision: 79995
2012-12-02 22:35:45 +00:00