platform/upstream/efl.git
6 years agoeldbus: check message serial before using
Shinwoo Kim [Mon, 31 Jul 2017 06:50:48 +0000 (15:50 +0900)]
eldbus: check message serial before using

Summary:
Whatever the dbus_connection_send_with_reply returns, the serial value
should be checked, because if the seral value is invalid a process could be aborted.

There is backtrace as below.

The dbus_connection_send_with_reply could return TRUE
even though it has a problem. Please refer to following comment:

   /* Refuse to send fds on a connection that cannot handle
      them. Unfortunately we cannot return a proper error here, so
      the best we can do is return TRUE but leave *pending_return
      as NULL. */

Test Plan:
There is not a exact reproduce step. If the Tizen login manager is relaunched
repeatedly, then the dbus and other service processes are relaunched.
If a service process tries to use dbus when the dbus has problem as above,
then it could be possilbe to get above backtrace.

Reviewers: raster, zehortigoza

Subscribers: cedric, jpeg

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

@fix

6 years ago efl_ui_win: add EFL_UI_WIN_SOCKET_IMAGE type check
Jiyoun Park [Mon, 31 Jul 2017 06:16:38 +0000 (15:16 +0900)]
efl_ui_win: add EFL_UI_WIN_SOCKET_IMAGE type check

    elm_win_socket_listen api only work for EFL_UI_WIN_SOCKET_IMAGE type window.
    So it is better to add type check code.

6 years agoevas - handle devices that on deletion delete other devices on shutdown
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 06:07:28 +0000 (15:07 +0900)]
evas - handle devices that on deletion delete other devices on shutdown

this fixes a whole bunch of warnings that just recently turned up...

6 years agoelocation - fix return of status, address, position to actually ret data
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 03:18:00 +0000 (12:18 +0900)]
elocation - fix return of status, address, position to actually ret data

the data was never returned! fix fix fix.

found by PVS studio

@fix

6 years agoecore x - convert to using unsed instead of dummy state,ents after ret
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 03:12:40 +0000 (12:12 +0900)]
ecore x - convert to using unsed instead of dummy state,ents after ret

found by PVS studio

6 years agoelm code - handle alloc failure for line split
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 03:01:41 +0000 (12:01 +0900)]
elm code - handle alloc failure for line split

this culd optentially use large offsets before accessing the ptr thus
it may not segv inthe first page but actually work if positionoffsets
are large enouh, so handle this case explicitly.

@fix

found by PVS studio

6 years agoelm code - handle alloc failure for line split
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 03:00:45 +0000 (12:00 +0900)]
elm code - handle alloc failure for line split

this culd optentially use large offsets before accessing the ptr thus
it may not segv inthe first page but actually work if positionoffsets
are large enouh, so handle this case explicitly.

@fix

found by PVS studio

6 years agoevas mem - remove redundenty unused evas mem absraction
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 02:53:59 +0000 (11:53 +0900)]
evas mem - remove redundenty unused evas mem absraction

was never used as was not practical to do so so it effectively does
nothing so remove it to reduce analyser warnings

found by PVS studio

6 years agoefreet icon cache creation binary - remove redundent check
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 02:41:10 +0000 (11:41 +0900)]
efreet icon cache creation binary - remove redundent check

found by PVS studio

6 years agoelm theme - remove redundent check
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 02:38:42 +0000 (11:38 +0900)]
elm theme - remove redundent check

found by PVS studio

6 years agoelm config tool - fix redundent check
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 02:38:15 +0000 (11:38 +0900)]
elm config tool - fix redundent check

found by PVS studio

6 years agoevas textblock - remove redundant check
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 02:34:41 +0000 (11:34 +0900)]
evas textblock - remove redundant check

found by PVS studio

6 years agoepp - cpp - fix buffer end/null checks given static buffer paths
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 02:31:04 +0000 (11:31 +0900)]
epp - cpp - fix buffer end/null checks given static buffer paths

this is an ncient bug that's never been triggered... but it's there.
fix and compare to null buffer.

found by PVS studio

@fix

6 years agoepp - remove redundent check for char
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 01:56:41 +0000 (10:56 +0900)]
epp - remove redundent check for char

makes static analyisers happy... not a bug

found by PVS studio

6 years agoevas cache2 - remove excess file and key checks - only check file
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 01:49:27 +0000 (10:49 +0900)]
evas cache2 - remove excess file and key checks - only check file

no need for key as no key is handled and no file is handled too. cleaner
code.

found by PVS studio

6 years agoelm gesture layer - use fabs not abs when actually comparing floats
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 01:41:39 +0000 (10:41 +0900)]
elm gesture layer - use fabs not abs when actually comparing floats

2 abs uses should have been fabs as they compe a src float with
anot her float.

found by PVS studio

@fix

6 years agoeina debug - set length after freeing/iterating over the keys
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 01:03:59 +0000 (10:03 +0900)]
eina debug - set length after freeing/iterating over the keys

found by PVS studio

6 years agoelm calendar - fix gmtime call to use an actual value
Carsten Haitzler (Rasterman) [Mon, 31 Jul 2017 01:00:00 +0000 (10:00 +0900)]
elm calendar - fix gmtime call to use an actual value

e85c92662bfec6a88bb7d2d091682daa429acba0 added this bug. before it was
always set to 259200 (first sunday after epoch).

found by PVS studio

6 years agoecore_drm2 - fix startup if edid blob is null.. assume all 0's
Carsten Haitzler (Rasterman) [Sun, 30 Jul 2017 14:26:21 +0000 (23:26 +0900)]
ecore_drm2 - fix startup if edid blob is null.. assume all 0's

this causes a crash when no edid is available. survive and dont crash.
this causes e wayland to not work at all on my baytrail laptop.

@fix

6 years agoeldbus lower error print levesl from ER to WRN in get all props
Carsten Haitzler (Rasterman) [Sun, 30 Jul 2017 14:04:35 +0000 (23:04 +0900)]
eldbus lower error print levesl from ER to WRN in get all props

this is generally unnecessary noise as the majority of the time i see
this it's because the message was canceled by the caller... thats not
an error though then... it's intended. less debug noise to sift through.

6 years agoecore_evas_drm: Only check for gpu time offset if env var set
Derek Foreman [Sat, 29 Jul 2017 13:52:16 +0000 (08:52 -0500)]
ecore_evas_drm: Only check for gpu time offset if env var set

Since most systems shouldn't need this, and it's possible
that it's causing trouble for some systems, make it off by
default.

Fix T5806

6 years agotests - make ecore con test suite reliable and work
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 05:56:57 +0000 (14:56 +0900)]
tests - make ecore con test suite reliable and work

basically ecore_con's test suite was broken. ipv6 checks were broken.
you now need to set an env var to get ipv6 tested. using eocre_con to
detetc it didnt init eina or ecore_con and if you do init these then
the other tests that check return values from these fail... so make it
an env var if you want to test ipv6. now it's reliable and works!

6 years agoector software - fix min/max int range for fixedpoint math
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 04:49:33 +0000 (13:49 +0900)]
ector software - fix min/max int range for fixedpoint math

min value bitshifts are negative and thus not portable. just tax max
(as its 1 more than min it if we do -max) as the limit as its within
range. this should fix it

@fix

found by PVS studio

6 years agoevas render - remove obj null check in proxy clip as obj not null
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 03:26:49 +0000 (12:26 +0900)]
evas render - remove obj null check in proxy clip as obj not null

obj is never null. so this check is pointless. not a bug though.

found by PVS studio

6 years agoevas object textblock - fix append if cur node is null
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 03:20:12 +0000 (12:20 +0900)]
evas object textblock - fix append if cur node is null

then it will appeand totally as it should be. small buglet found. fixed

found by PVS studio

@fix

6 years agoevas gl gnenric engine - dont check w and h ptrs - will never be null
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 03:06:20 +0000 (12:06 +0900)]
evas gl gnenric engine - dont check w and h ptrs - will never be null

analyser unhappiness.

found by PVS studio

6 years agoembryo_cc - remove pointless test for null byte and space
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 02:36:33 +0000 (11:36 +0900)]
embryo_cc - remove pointless test for null byte and space

space wins. the nul byte test is pointless. not a bug but pointless code

found by PVS studio

6 years agoecore-x - remove useless extra assignments of value to itself
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 02:22:54 +0000 (11:22 +0900)]
ecore-x - remove useless extra assignments of value to itself

usless code that does nothing - not a bug though

found by PVS studio

6 years agoedje_cc - remove pointless free of null ptr
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 02:13:26 +0000 (11:13 +0900)]
edje_cc - remove pointless free of null ptr

not a bug but not useful code either freeing what is already null

found by PVS studio

6 years agoefl ui text - remove useless else + free
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 02:11:21 +0000 (11:11 +0900)]
efl ui text - remove useless else + free

string is null so no need to free. not a bug but cleaner and analysers
dont like it.

found by PVS studio

6 years agoedje entry - remove extra else and free as sdtring is null there
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 02:08:46 +0000 (11:08 +0900)]
edje entry - remove extra else and free as sdtring is null there

string is null so no need to free. not a bug but cleaner and analysers
dont like it.

found by PVS studio

6 years agoeina simple xml parser - remove pointless memcmp of 0 bytes
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 02:03:01 +0000 (11:03 +0900)]
eina simple xml parser - remove pointless memcmp of 0 bytes

no point - all we are doing is having a final fallback of any tag that
starts with ! that isnt a special one like !DOCTYPE, !-- comment and
![CDATA stuff... analysers dont like these pointless calls.

found by PVS studio

6 years agoels box - remove rudundant double check
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:52:29 +0000 (10:52 +0900)]
els box - remove rudundant double check

not a bug but checking something twice in a row isn't too useful

found by PVS studio

6 years agoelm code - remove unneded extra check from copy and pasta it seems
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:48:06 +0000 (10:48 +0900)]
elm code - remove unneded extra check from copy and pasta it seems

extra check already done in if above - no need. looks like copy &
paste of the checks from above thus why it's there, but not needed.
not a bug, byt analysers dont like it so remove

found by PVS studio

6 years agoemotion gst1 module - remove extra unneded if's
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:46:25 +0000 (10:46 +0900)]
emotion gst1 module - remove extra unneded if's

not a bug, but don't need these

found by PVS studio

6 years agoeeze_disk - remove redundant if check already done
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:40:33 +0000 (10:40 +0900)]
eeze_disk - remove redundant if check already done

removes redundant fi check. not a bug but analysers dont like it and
it is redundant

found by PVS studio

6 years agoefl net - fix ipv6 getsockname to use the proper struct to do it
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:35:39 +0000 (10:35 +0900)]
efl net - fix ipv6 getsockname to use the proper struct to do it

      struct sockaddr_storage *addr;

AS the actual storage ( a ptr to store the whole data). kind of...
wrong. it should be:

      struct sockaddr_storage addr;

see examples of this kind of usage of getsockname:

http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch04lev1sec10.html

found by PVS studio

@fix

6 years agoeeze disk - remove uneeded extra check for test var
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:18:55 +0000 (10:18 +0900)]
eeze disk - remove uneeded extra check for test var

test for non null already done above, so test must obviously be null
here so no need to check. analysers dont like this but it's not a bug.
make them happy thought

found by PVS studio

6 years agoevas psd loader - remove unneeded extra check in if
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 01:15:19 +0000 (10:15 +0900)]
evas psd loader - remove unneeded extra check in if

one if condition is always true by virtual of previous if statements
and drop-through so can remove. not actually any bug but analysers
don't like it

found by PVS studio

6 years agoeina debug - if calloc for session struct failed - return NULL
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 00:59:59 +0000 (09:59 +0900)]
eina debug - if calloc for session struct failed - return NULL

makes analysers happy but really doesnt change anything - moves the
abort/crash/exit somewhere else.

found by PVS studio

6 years agoedje_cc - make list free simpler to make analysers happy
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 00:44:54 +0000 (09:44 +0900)]
edje_cc - make list free simpler to make analysers happy

analysers like PVS studio dont know the eina_list_free returning NULL
design pattern for consistency and so dislike the var being set twice
in a row. this will make them happy without any skin off our backs.
not a bug at all.

found by PVS studio

6 years agoevas git loader - move findo reset inside else as only that changes it
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 00:41:55 +0000 (09:41 +0900)]
evas git loader - move findo reset inside else as only that changes it

only the else changes finfo so reset inside there. not really any bug
at all byt style-wise a bit better and analysers don't like it

found by PVS studio

6 years agoelm list - remove harmless extra null set to keep analysers happy
Carsten Haitzler (Rasterman) [Sat, 29 Jul 2017 00:35:46 +0000 (09:35 +0900)]
elm list - remove harmless extra null set to keep analysers happy

this was totally harmless and not an actual bug but it keeps analysers
happy.

found by PVS studio

6 years agoelm dayselector - remove double set of content var
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 16:06:17 +0000 (01:06 +0900)]
elm dayselector - remove double set of content var

this looks like a leftover from legacy to eo porting. it was harmless
but analysis hates it

found by PVS studio

6 years agoelm code - remove double set of textlen
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 16:04:01 +0000 (01:04 +0900)]
elm code - remove double set of textlen

analysis doesnt like it, but not a bug

found by PVS studio

6 years agoedje edit - remove pointless setting attr_mount to 0
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 15:59:09 +0000 (00:59 +0900)]
edje edit - remove pointless setting attr_mount to 0

static analysers dont like it bug not a bug at all

found by PVS studio

6 years agoevas pmap loader - remove pointless extra assign of end of string to 0
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 15:52:28 +0000 (00:52 +0900)]
evas pmap loader - remove pointless extra assign of end of string to 0

not an actual bug - just analysis impacting

found by PVS studio

6 years agoeldbus parser - remove duplicate tag handler thats already handled
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 15:47:08 +0000 (00:47 +0900)]
eldbus parser - remove duplicate tag handler thats already handled

confusing and dead code as it's already handled. not an actual bug but
analysis impacting

found by PVS studio

6 years agoevas events - remove set of list to null then back to value - confusing
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 15:46:01 +0000 (00:46 +0900)]
evas events - remove set of list to null then back to value - confusing

eina_list_free always returns NULL. it's meant as a design pattern to
follow like the append/prepend that ensures a freed list is NULL, but
it can be confusing to analysers so remove the assing. not a bug
actually.

found by PVS studio

6 years agoeina evlog debugging - when freeing debug buf with mmap 0 size after
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 12:12:57 +0000 (21:12 +0900)]
eina evlog debugging - when freeing debug buf with mmap 0 size after

munmap would not munmap the memory with  a size of 0... so zero the
size after the munmap.

found by PVS studio

@fix

6 years agoevas obj smart - remove pointless if
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 12:07:39 +0000 (21:07 +0900)]
evas obj smart - remove pointless if

s is already checked for null... so no need to check again

found by PVS studio

@fix

6 years agoedje edit - when adding size class set max width and height to -1
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 11:54:41 +0000 (20:54 +0900)]
edje edit - when adding size class set max width and height to -1

since we're not using size class yet.. we hvent had to debug this...
but it is a bug.

fond by PVS studio

@fix

6 years agoefl net ssl constructor - remove double set of same var
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 11:52:44 +0000 (20:52 +0900)]
efl net ssl constructor - remove double set of same var

all struct vars are set... one 2x. not a bug but pointless code in the
src

found by PVS studio

6 years agoevas bmp loader - fix warnings about same type handled twice
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 11:39:44 +0000 (20:39 +0900)]
evas bmp loader - fix warnings about same type handled twice

so a type we handle earlir inan if we re-handle as invalid later. this
wouldnt lead to a crash or bugs as the if's would ned to be evaluated
in order normally, but it's good to get it right.

found by PVS studio

6 years agoetc to rgba conversion - dont read stack garbage into the est imgs
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 11:30:43 +0000 (20:30 +0900)]
etc to rgba conversion - dont read stack garbage into the est imgs

surprising this wasn't caught when testing fallbacks. etc2 is used
hyper-rarely but still... basically it'd skip pixels and read stack
junk (which really would not crash but we'd have junk in image data).
or should.

found by PVS studio

@fix

6 years agoephysics - fix stacking comparsion correctly if 1 smaller than 1
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 11:12:33 +0000 (20:12 +0900)]
ephysics - fix stacking comparsion correctly if 1 smaller than 1

this fixes a pretty trivial comparison issue..

found by PVS studio

@fix

6 years agoevas legacy event mask - cast to unit64_t before bitshift
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 11:08:21 +0000 (20:08 +0900)]
evas legacy event mask - cast to unit64_t before bitshift

this fixes a bit wraparound in the shift as the 1 is an int (32bit)
type that then gets shifted .. then after that cast to 64bit.

found by PVS studio

@fix

6 years agoeina inarray accessor - use right type in parameter
Carsten Haitzler (Rasterman) [Fri, 28 Jul 2017 10:54:13 +0000 (19:54 +0900)]
eina inarray accessor - use right type in parameter

this actually wasn't a bug that would cause a crash. cloning an array
access would fail as the magic check would find its an accessor not an
array. indeed a bug... but we never used this anywhere i can find.

this was cast to the correct func ptr callabck in the accessor struct
as the clone method though.. thus everyhting was happy with it
seemingly.

found by PVS studio

@fix

7 years agoelput: Fix synthetic relative motion events based on abs events
Derek Foreman [Fri, 28 Jul 2017 21:48:38 +0000 (16:48 -0500)]
elput: Fix synthetic relative motion events based on abs events

libinput won't actually give us this info, and logs an error instead.
We can't synthesize based on pointer position due to pointer
warping.

So we must track abs reports and use previous abs reports to
synthesize rel events.

7 years agoecore_evas_drm: Calculate gpu blank time offset once at startup
Derek Foreman [Fri, 28 Jul 2017 20:24:30 +0000 (15:24 -0500)]
ecore_evas_drm: Calculate gpu blank time offset once at startup

So vmware's graphics driver reports the MONOTONIC drm cap, yet uses
CLOCK_REALTIME instead.  This leaves us with a gigantic offset between the
gpu timestamp and the times ecore_time_get() gets from CLOCK_MONOTONIC.

Since ticking screws directly with loop time this results in some long
distance clock jumping.

This commit fixes drm/gl_drm operation under vmware.

7 years agoecore_drm2: Add a fallback method for vblank waiting
Derek Foreman [Fri, 28 Jul 2017 20:25:25 +0000 (15:25 -0500)]
ecore_drm2: Add a fallback method for vblank waiting

We can't depend on vblank waits being implemented by the driver, but we
can count on page flips functioning, so add a fallback that does a page
flip and waits for it.

7 years agoecore-wl2: implement support for aux hints
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
ecore-wl2: implement support for aux hints

this is a direct copy of a feature from tizen git with no modifications other
than what was required for compilation and functionality

https://review.tizen.org/git/?p=platform/upstream/efl.git;a=commitdiff_plain;h=01e72b7e3484ece4b589f95315990ba2c366c231
https://review.tizen.org/git/?p=platform/upstream/efl.git;a=commitdiff;h=670d84b579f248ae0e3df48e9953fe8128da9468

fix T5780

@feature

7 years agoRevert "evas: Fix use of invalid EO object"
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
Revert "evas: Fix use of invalid EO object"

This reverts commit 9b1e785f8ebba618016dd217aa18835b4fb675b7.

this breaks devices with vt switching under drm

7 years agoelput: fix seat cleanup
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
elput: fix seat cleanup

ensure seat deletion does not conflict with elput shutdown

@fix

7 years agoelput: unref devices in post event cb
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
elput: unref devices in post event cb

@fix

7 years agoelm_table: do not propagate max size
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
elm_table: do not propagate max size

evas table does not set max size, propagating this triggers unnecessary
callbacks

@fix

7 years agoelm_box: use correct aspect ratio for HORIZONTAL layout
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
elm_box: use correct aspect ratio for HORIZONTAL layout

ratio should be flipped in this case

@fix

7 years agoelm_box: use homogeneous layout if only one child exists
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
elm_box: use homogeneous layout if only one child exists

this should be a small speedup for a corner case of box use

7 years agoelm_win: do not implement aspect_get()
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
elm_win: do not implement aspect_get()

this breaks aspect hints.

@fix

7 years agoefl-wl: escape command args from test
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
efl-wl: escape command args from test

7 years agoefl-wl: hide popup surface before unsetting attrs during destructor
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
efl-wl: hide popup surface before unsetting attrs during destructor

ensure focus remains with the popup parent

7 years agoefl-wl: simplify refocus on popup hide
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
efl-wl: simplify refocus on popup hide

7 years agoefl-wl: use correct window when requesting x11 clipboard selection
Mike Blumenkrantz [Fri, 28 Jul 2017 19:44:43 +0000 (15:44 -0400)]
efl-wl: use correct window when requesting x11 clipboard selection

7 years agoEcore_Con: Fix wrong comparison.
Guilherme Iscaro [Fri, 28 Jul 2017 18:22:07 +0000 (15:22 -0300)]
Ecore_Con: Fix wrong comparison.

Otherwise it will always evaluate to false.

7 years agoEcore_Conn: Set EOS only if the connection is not closed.#algo.
Guilherme Iscaro [Fri, 28 Jul 2017 14:04:23 +0000 (11:04 -0300)]
Ecore_Conn: Set EOS only if the connection is not closed.#algo.

This check prevents that EOS is set on a closed connection.

Fixes T5180

7 years agoEcore_Con: Fix CLOEXEC documentation.
Guilherme Iscaro [Fri, 28 Jul 2017 14:02:42 +0000 (11:02 -0300)]
Ecore_Con: Fix CLOEXEC documentation.

The socket attributes are inherited by the child.

7 years agoecore_drm2: Allow picking a sequence number for blanktime_get
Derek Foreman [Fri, 28 Jul 2017 14:40:40 +0000 (09:40 -0500)]
ecore_drm2: Allow picking a sequence number for blanktime_get

This lets us do a blocking wait for a vsync.  Something we should try to
do as infrequently as possible, but in some cases we need it one time at
startup to catch graphics driver bugs.

7 years agoElm entry: fix call to set text via entry_set
Daniel Hirt [Fri, 28 Jul 2017 09:33:55 +0000 (12:33 +0300)]
Elm entry: fix call to set text via entry_set

Accidentally called the super here, so did not get routed to
'_elm_entry_text_set'.

Fixes T5803.

7 years agoelm test: img.zoomable: allow top rect to pass events
Amitesh Singh [Fri, 28 Jul 2017 07:07:21 +0000 (16:07 +0900)]
elm test: img.zoomable: allow top rect to pass events

7 years agoeo-cxx: Add overload for Eina_Bool inout handling interoperability
Felipe Magno de Almeida [Thu, 27 Jul 2017 16:19:49 +0000 (13:19 -0300)]
eo-cxx: Add overload for Eina_Bool inout handling interoperability

Add convert_inout_impl overload to handle bool/Eina_Bool conversion in inout direction.

7 years agoEcore_Conn: Enable CLOEXEC by default.
Guilherme Iscaro [Wed, 26 Jul 2017 21:48:45 +0000 (18:48 -0300)]
Ecore_Conn: Enable CLOEXEC by default.

This flag should be enabled by default in order to avoid socket leaks.

7 years agoEcore_IPC: Preserve Ecore_Con legacy behaviour.
Guilherme Iscaro [Wed, 26 Jul 2017 15:11:29 +0000 (12:11 -0300)]
Ecore_IPC: Preserve Ecore_Con legacy behaviour.

This patch sets some Ecore_Con flags that were missing after
the EO migration. These flags must be set in order
maintain the Ecore_IPC behaviour before Ecore_Con EO was implemented.

Fixes T5722

7 years agoefl.ui.image.zoomable: Add missing edje.group_size_min/max_get
Amitesh Singh [Thu, 27 Jul 2017 10:03:51 +0000 (19:03 +0900)]
efl.ui.image.zoomable: Add missing edje.group_size_min/max_get

This supresses the warnings when photocam is used as
an external edje object.

7 years agoevas: Always call show/hide intercept
Jean-Philippe Andre [Thu, 27 Jul 2017 06:45:37 +0000 (15:45 +0900)]
evas: Always call show/hide intercept

Ref T5370

7 years agoelm_widget: change to @inout
Marcel Hollerbach [Wed, 26 Jul 2017 16:56:59 +0000 (18:56 +0200)]
elm_widget: change to @inout

according to q66 this is correcter than ptr(..).

Anyhow this still leads to a bug in cxx that crashes compilation in cxx
examples, people are notified!

7 years agoelm_widget: fix warning
Marcel Hollerbach [Wed, 26 Jul 2017 13:52:12 +0000 (15:52 +0200)]
elm_widget: fix warning

7 years agoecore_events: inarray should be flushed before return
WooHyun Jung [Wed, 26 Jul 2017 09:57:37 +0000 (18:57 +0900)]
ecore_events: inarray should be flushed before return

@fix

7 years ago ecore_evas_wayland: fix bug ecore_evas cannot update the evas when rotation
Jiyoun Park [Wed, 26 Jul 2017 06:28:02 +0000 (15:28 +0900)]
ecore_evas_wayland: fix bug ecore_evas cannot update the evas when rotation

    usecase:
    show -> rotation -> hide -> show
    ecore_evas_wayland didn't check the rotation.
    when ee is landscapemode, it cannot update the right area of evas.

7 years agoelm_code: Fix missing middle button selection paste
Andy Williams [Tue, 25 Jul 2017 22:54:21 +0000 (23:54 +0100)]
elm_code: Fix missing middle button selection paste

Resolves task T5520
@fix

7 years agoelput: Close fds when asked to
Derek Foreman [Tue, 25 Jul 2017 21:51:21 +0000 (16:51 -0500)]
elput: Close fds when asked to

Our close callback tells logind we're done with a device, but it should
also actually close the fd it's passed, or we end up leaking piles of
fds on VC switch.

see weston commit 8f5acc2f3a29c3831af4ddd6bed57f703c98dc77
and subsequent regression in commit 72dea06d7952e3ce8dd8057f7106186da4fa2678
and pending fix in https://patchwork.freedesktop.org/patch/168992/

7 years agoedje_cc: fix wrong comment about lazEDC norequired.
Sungtaek Hong [Tue, 25 Jul 2017 05:44:39 +0000 (14:44 +0900)]
edje_cc: fix wrong comment about lazEDC norequired.

Summary: - norequired; stands for required: 0

Reviewers: conr2d, jpeg

Reviewed By: jpeg

Subscribers: cedric

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

7 years agoelm: Move calls to efl_destructor(efl_super()) to the end
Jean-Philippe Andre [Thu, 20 Jul 2017 09:00:15 +0000 (18:00 +0900)]
elm: Move calls to efl_destructor(efl_super()) to the end

When destroying any object, its parent class destructor should
be called after the subclass destructor has been called. Only
some extremely limited work may be done after the super call.

This commit makes sure that all efl_destructor() overrides in
elementary are doing operations in the right order.

Also, remove a return void.

7 years agoelm_widget: only emit events when there is really a changed manager
Marcel Hollerbach [Mon, 24 Jul 2017 21:35:26 +0000 (23:35 +0200)]
elm_widget: only emit events when there is really a changed manager

A manager change to NULL is to be used as "this object is not registered
anymore" call, which will happen quite regular during shutdown.

7 years agoelm_widget: call the events after eval outself with new manager/parent
Marcel Hollerbach [Mon, 24 Jul 2017 15:58:13 +0000 (17:58 +0200)]
elm_widget: call the events after eval outself with new manager/parent

otherwise we might end up with a node_get error, since the widget where
the event is called on is still registered in the wrong manager

7 years agoelm_widget: only set focus.manager if we are really registering
Marcel Hollerbach [Mon, 24 Jul 2017 15:54:31 +0000 (17:54 +0200)]
elm_widget: only set focus.manager if we are really registering

otherwise we might set focus.manager even if we are not registered

7 years agoelm_widget: give feedback if registration was successfull or not
Marcel Hollerbach [Thu, 20 Jul 2017 15:37:03 +0000 (17:37 +0200)]
elm_widget: give feedback if registration was successfull or not

with this we can whipe out the focus.manager field in elm.widget so for
the case that something goes wrong we only get the error message where
actually something went wrong, and not the whole bunch of follow ups
where the code assumes its registered but it isnt.

7 years agoelput: Fix multiple open/close of drm devices
Derek Foreman [Mon, 24 Jul 2017 21:03:10 +0000 (16:03 -0500)]
elput: Fix multiple open/close of drm devices

When I added the code to probe drm devices to ensure they're
modeset capable (ref 414d406b3b442216543cdaef112787696ae09898)
I didn't realize elput didn't allow us to open and close more than
one drm device at startup without blowing up libinput.

This is a somewhat dirty hack to rough that in.

The problem is that open/close the device during startup will
result in an async "gone" callback from logind, which then kicks
off an input shutdown.  We need to try harder to only do that
shutdown when it makes sense.

7 years agoecore-wl2: handle null offer drags more effectively
Mike Blumenkrantz [Mon, 24 Jul 2017 12:28:39 +0000 (08:28 -0400)]
ecore-wl2: handle null offer drags more effectively

this is valid and refers to an offer with no types; a leave event
with no enter is a protocol error, however

fix T5770

@fix

7 years agoRevert "ecore wl2 - dnd - handle NULL drags... shouldnt happen but does"
Mike Blumenkrantz [Mon, 24 Jul 2017 12:28:39 +0000 (08:28 -0400)]
Revert "ecore wl2 - dnd - handle NULL drags... shouldnt happen but does"

This reverts commit 85e585846600742a7f395751816f348b4152269f.

please do not randomly add null checks for the purpose of quickly closing tickets.

7 years agoecore wl2 - dnd - handle NULL drags... shouldnt happen but does
Carsten Haitzler (Rasterman) [Mon, 24 Jul 2017 09:53:33 +0000 (18:53 +0900)]
ecore wl2 - dnd - handle NULL drags... shouldnt happen but does

this should fix T5770

@fix