Commit Graph

22110 Commits

Author SHA1 Message Date
Marcel Hollerbach 95b4f4b180 alsa: try to figure out if a device can handle volume by asking for its
range

there are some buggy devices that are just return false for the has
function but actually have a min and max on those devices,so we use that
to check if its sink/source capable.
2017-02-04 23:00:23 +01:00
Al Poole 55a7d4feed Fixes issues w/battery and batman living together
Summary:
The problems were that both sysctl implementations defined public accessable fields named bat.

The static definition moves into the file scopes.

The E_FREE calls are fixing a use after free.

Reviewers: zmike!, bu5hm4n

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4629
2017-01-29 12:47:15 +01:00
Davide Andreoli abd60cca9a mem gadget: implemented a new info popup
It now show lots more usefull information.
The actual values still need to be adjusted, the goal is to show the exact same values of the "free" command
2017-01-29 10:35:19 +01:00
Marcel Hollerbach b0271f3a2b cpuclock: NULL status if its freed
This fixes a lot of valgrind warnings when using the editors.
2017-01-29 00:27:26 +01:00
Marcel Hollerbach 2dc5981034 gadgets: free that data when notify and main is done
otherwise one of the two callbacks will use possible freed memory.
2017-01-29 00:27:17 +01:00
Marcel Hollerbach 738f6d8f6b e_gadget: fix destroying of drop_objects
keys of pointer hashes are represent as void** so you just get a pointer
to where the pointer can be found. This now dereferences the pointer so
the correct value is used.

This fixes T5136.
2017-01-28 23:02:40 +01:00
Davide Andreoli adc5fa6c8b mem gadget: pass the new fetched info to the theme
in case a themer want to show more info inside the gadget
2017-01-28 20:49:05 +01:00
Davide Andreoli 921af28813 mem gadget cleanup: rename vars
no functional changes
2017-01-28 19:18:08 +01:00
Davide Andreoli d1cb369623 mem gadget: formatting, fit into 80 cols
no functional changes
2017-01-28 18:02:58 +01:00
Davide Andreoli 1c8ca780da mem gadget: improve proc info fetching
* collect more info than just 2 percentage
* improve performance by parsing proc only onece every loop
* use active memory to calc percentage, now the value is near the other mem tools I have
2017-01-28 17:52:56 +01:00
Carsten Haitzler b55ce098bf e thumb - support signal emits and desk pan msgs for thumbs
this in theory allows pan desk thumbs to work... but hey ... they are
broken anyway... :)

@fix
2017-01-28 16:08:46 +09:00
Carsten Haitzler 1caf626322 e_thumb header - remove tabs 2017-01-28 12:59:33 +09:00
Al 'netstar' Poole 2f218a1694 Enlightenment - BSD - Fix typos in battery sysctl float compares. 2017-01-27 19:08:14 -06:00
Al 'netstar' Poole 82af16c32b Enlightenment - BSD - Cleanup sysctl code for batteries. 2017-01-27 18:28:19 -06:00
Stephen 'Okra' Houston d55164d0e0 Enlightenment - Sysinfo Gadget - Add some safety fallbacks for thermal - Fixes a dnd crash. 2017-01-27 18:16:32 -06:00
Stephen 'Okra' Houston d99e88b78c Enlightenment - Sysinfo Gadget - Size all sysinfo gadgets by aspect - should allow for proper theming. 2017-01-27 14:55:24 -06:00
Stephen 'Okra' Houston 1547ac080c Enlightenment: Sysinfo Gadget - Base size on edje extends calcs. 2017-01-27 13:49:04 -06:00
Mike Blumenkrantz 1861f474e4 remove gadget drop object event callbacks during object deletion
ensure that no callbacks reference gadget internals after they have been
deleted
2017-01-27 10:51:21 -05:00
Carsten Haitzler acf8988c40 e widget bgpreview - use e thumb to get quality back and speed too
this should keep the perfromance of the prior commit
f80f73a7c9 and now get quality back by
generating thumbnails at higher resolution then scaling down from there.

@fix
2017-01-27 23:44:02 +09:00
Carsten Haitzler bcbc263710 Revert "e widget bgpreview - stop using livethumb as it cuases performance issues"
This reverts commit f80f73a7c9.
2017-01-27 23:24:12 +09:00
Carsten Haitzler f80f73a7c9 e widget bgpreview - stop using livethumb as it cuases performance issues
bgp[review uses livethumb. livethumb by definition uses an image
canvas with a sw engine and thus not only renders the bg with another
engine, it also is causing continual texture uploads thanks to the
pager and this shows clearly on slow systems. this causes memory
duplication for the same wallpaper as ever bg has its own canvas and
buffer etc.

this does come with a quality drop though and that's up for debate. we
COULD use something else like a proxy or map in between to force a
higher "virtual" res vs output. but for now at least this solves both
a memory bloat issue and a performance problem.

@fix
2017-01-27 21:50:39 +09:00
Stephen 'Okra' Houston c06e36fa2a Enlightenment: Sysinfo Gadget - Show real time data in popups and fix sizing of memusage and cpumonitor. 2017-01-26 14:06:56 -06:00
Stephen 'Okra' Houston f1b0cfcdea Enlightenment - Sysinfo Netstatus Gadget - Use proper data passed to callback to avoid crash. 2017-01-26 09:09:48 -06:00
Stephen 'Okra' Houston 35e9501637 Enlightenment: Whitelist and autoload the sysinfo gadgets. 2017-01-25 16:24:53 -06:00
Stephen Houston 422499e512 Enlightenment - Luncher Grid Gadget - Do not double-free lists during empty.
This fix matches 39476fad32
2017-01-23 21:28:00 -06:00
Mike Blumenkrantz 39476fad32 do not double-free lists during luncher bar empty
==15191== Invalid read of size 8
==15191==    at 0x2B6328A7: eina_list_next (eina_inline_list.x:32)
==15191==    by 0x2B637520: _bar_empty (bar.c:1405)
==15191==    by 0x2B639301: _bar_recalculate_job (bar.c:1958)
==15191==    by 0xDBDA800: _ecore_job_event_handler (ecore_job.c:98)
==15191==    by 0xDBD3AC6: _ecore_call_handler_cb (ecore_private.h:317)
==15191==    by 0xDBD4A55: _ecore_event_call (ecore_events.c:518)
==15191==    by 0xDBDDABF: _ecore_main_loop_iterate_internal (ecore_main.c:2380)
==15191==    by 0xDBDB86D: ecore_main_loop_begin (ecore_main.c:1290)
==15191==    by 0x441A94: main (e_main.c:1093)
==15191==  Address 0x1ff97dc8 is 6,520 bytes inside a recently re-allocated block of size 8,192 alloc'd
2017-01-20 11:52:27 -05:00
Mike Blumenkrantz 75224784bd reset demo gadget id before deleting gadget object during drop operation
ensure that the gadget is marked as usable so that the config isn't deleted
2017-01-20 11:52:24 -05:00
Stephen 'Okra' Houston 6ebb68777c Enlightenment - Sysinfo Gadget - Allow configuring of max speeds for netstatus gadget. 2017-01-19 14:18:36 -06:00
Chris Michael ba7e910f9c re-enable getting and setting output rotations in wl_drm
Small patch to re-enable the ability to query and set the rotation of
an output.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 11:30:30 -05:00
Chris Michael 307072fc43 remove old ecore_drm1 code from wl_drm module
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 09:03:20 -05:00
Carsten Haitzler 3f2ea65112 e window stakcs - fix bugs with stacks by doing stack stuff in idle eval
this moves ensuring windows are centered on their parent even when
moved etc. for stack (and move the whole stack not just the specific
window) in the idle enterer int he pahse before all the client evals
take place. much cleaner!
2017-01-18 18:51:30 +09:00
Chris Michael 1974f5da2d Revert "send wl_touch events when we handle mouse buttons"
Reverting this as it ends up causing multiple events being handled
(touch and pointer) inside various clients if you have both touch and
pointer enabled. Will need a different fix here....

This reverts commit 7906537c02.
2017-01-17 13:28:05 -05:00
Chris Michael 7906537c02 send wl_touch events when we handle mouse buttons
Small patch to enable sending wl_touch down/up events when pointer
mouse button events are handled. This is needed in the case where we
do Not have any mouse pointer at all, but we do have touch support.

ref T5094

NB: This allows weston-simple-touch client to operate in Enlightenment
now. There is still something strange happening with EFL clients in E
wrt touch events tho...

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-17 11:31:48 -05:00
Chris Michael d01509cf26 fix formatting
NB: No functional changes, just cleanup formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-17 08:43:21 -05:00
Chris Michael 1e37dd65fd update touch enabled/disabled based on seat capabilities
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-17 08:42:53 -05:00
Stephen 'Okra' Houston 638d5d502f Enlightenment: - Sysinfo gadget - Calculate net percentages correctly. 2017-01-15 13:34:04 -06:00
Davide Andreoli 0caaf5fabe net gadget: those signals are not used/needed anymore
all the needed values are already pased in the theme using an edje message
2017-01-15 16:08:03 +01:00
Davide Andreoli f14124583f net gadget: fix 2 obvious cnp errors
note that the max/percent calculation are still wrong.
Seems the first cur calc give a huge value, that go into max and prevent any other perc calc to be correct.
2017-01-15 15:57:40 +01:00
Carsten Haitzler cd3490f35c e - wl mode - stop consuming 100 percent cpu
so on 1 intel laptop and my rpi i'm seeing 100% cpu usage in wayland
mode. it seems something is resizing to 0x0 and then causing a size
change which causes a property change which causes... another request
to 0x0 and repeat. dont set tyhe size changed flags if size actually
didnt change and this fixes that.
2017-01-15 14:16:31 +09:00
Mike Blumenkrantz 0c56e19a64 validate xdg-shell move/resize requests against latest button serial
these are supposed to match in order to initiate the corresponding action
2017-01-13 11:35:20 -05:00
Mike Blumenkrantz 7716f58b5d throw xdg6 errors for unconfigured buffers as spec requires 2017-01-13 11:35:20 -05:00
Mike Blumenkrantz aba6687b30 handle pixmap_refresh() failure cases more accurately under wayland
non-usable pixmaps here are still valid in some cases, such as when
no buffer is attached
2017-01-13 11:35:20 -05:00
Mike Blumenkrantz 27091c510c ensure that gadget internal del callbacks are handled before other callbacks 2017-01-13 11:35:20 -05:00
Mike Blumenkrantz fe2c390861 use geometry from comp object input rect when determining if coords intersect
the rect geometry may be clipped, so use whatever the current geom is
2017-01-13 11:35:20 -05:00
Mike Blumenkrantz 0fbef3b74e use persistent clipping for comp object input rects
it's technically legal to set an input region larger than a surface,
then later expand the surface and expect that the input region will
also expand
2017-01-13 11:35:20 -05:00
Mike Blumenkrantz df414cef65 do not perform frame coord adjustments for re_manage wayland clients
prevent mismatch of positions between restarts
2017-01-13 11:35:20 -05:00
Mike Blumenkrantz e4e8db74d9 do not return sr window remembers if not looking for sr remembers 2017-01-13 11:35:20 -05:00
Mike Blumenkrantz 3af7affa02 free configs for demo gadgets on object free
these are purely for demo purposes and should never be retained

I think this is right...
2017-01-13 11:35:20 -05:00
Mike Blumenkrantz 5aadf3b3ff implement xdg-foreign v1
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
2017-01-13 11:34:50 -05:00
Mike Blumenkrantz d1bb23954f break out code to set clients as transients for a parent 2017-01-13 11:33:36 -05:00