Commit Graph

19873 Commits

Author SHA1 Message Date
Mike Blumenkrantz 881e0ab805 move all x11-related randr code into e_comp_x_randr.c 2015-04-22 16:16:05 -04:00
Mike Blumenkrantz 7104e637ef _config_screen_find() -> e_randr2_config_screen_find() 2015-04-22 16:07:58 -04:00
Mike Blumenkrantz b4e65519d1 move acpi lid status tracking from e_randr to e_acpi 2015-04-22 16:05:16 -04:00
Mike Blumenkrantz 853d04592e move e_randr internal screen changing timer -> e_randr2_screen_refresh_queue() 2015-04-22 16:04:36 -04:00
Mike Blumenkrantz 98068e9b9c add e_acpi_lid_is_closed() for returning cached state of computer lid 2015-04-22 15:50:05 -04:00
Mike Blumenkrantz f843b48eb2 update wl shell parent setting code to use clients instead of pixmaps
ref T2354
2015-04-22 14:55:45 -04:00
Chris Michael 57611c6d2f e-comp-wl: Init randr if we are not wayland only
This is needed for the wl-x11 module

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-22 10:46:41 -04:00
Chris Michael 57191576db wl-drm: We need to set the compositor pointer values After wl_comp_data has been created else we crash
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-22 10:42:33 -04:00
Chris Michael 37223908a6 Revert "wl-drm: Set initial compositor pointer values base on ecore_evas_pointer_position"
This reverts commit 16e9126302.

Reverting this due to crash
2015-04-22 10:41:13 -04:00
Chris Michael 16e9126302 wl-drm: Set initial compositor pointer values base on ecore_evas_pointer_position
This addresses the issue of initial compositor pointer values not
being proper. They are 0,0 on startup, however things like ecore_drm
will center the mouse on startup. The e_comp pointer values should
reflect this.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-22 09:41:23 -04:00
Stefan Schmidt c79d0b1f8c module/geolocation: Stop setting gadget icon from start and stop callbacks
We keep track of this now by monitoring the InUse property which works also
if other clients use the service.
2015-04-22 13:54:51 +02:00
Stefan Schmidt da6297cc37 modules/geolocation: Follow InUse property change to give UI indication
The InUse property of the manager object is available in newer GeoClue2
versions. It shows if the service is in use by any application at the
moment. We use this to indicate the usage in the UI.
A blue geolocation icon means the service is in use, the grey icon means
it is inactive.
2015-04-22 13:54:51 +02:00
Stefan Schmidt 0ac7f90aa7 modules/geolocation: Make module work with newer GeoClue2
In newer GeoClue2 version, tested with 2.1.10, we need to set
the DesktopId and AccurancyLevel to get a location object.
2015-04-22 13:54:51 +02:00
Stefan Schmidt e01edf1f59 modules/geolocation: Only display a valid altitude value
If our backends does no know the altitude it sets it to -DBL_MAX as 0
is a valid altitude value. Check for it and  display N/A if it is not valid.
2015-04-22 13:54:51 +02:00
Carsten Haitzler 40a91376c6 e screenlock config diloag - note insecureness for personal pw/pin
these store pin/pw in your user config files - it may be primitively
hashed to obscure it, but it's there. it never pretended to have
secure storage and even saved cleartext until e19. make sure people
are aware
2015-04-22 17:05:01 +09:00
Stefan Schmidt d65ed603ad po: Remove unused e_int_config_randr.c file from POTFILES.in to pass distcheck
This file is still around while not really used. It is also not distributed and
thus fails if po tries to update during distcheck with this file still in list.
2015-04-22 09:43:16 +02:00
Mike Blumenkrantz 0bad7b6025 unadjust frame coords when calculating wl surface placement during commit
ec->y -> unadjust -> ec->client.y
2015-04-21 16:19:30 -04:00
Mike Blumenkrantz f254531182 use pointer hash for wl pixmaps 2015-04-21 15:57:18 -04:00
Mike Blumenkrantz f276023e71 pass surface resource when creating wl surface pixmaps 2015-04-21 15:41:10 -04:00
Mike Blumenkrantz 0bb444bb21 Revert "build: Remove generated eldbus files during normal clean and not only maintainer-clean"
This reverts commit 95d7012077.

do want in tree
2015-04-21 15:35:10 -04:00
Mike Blumenkrantz c398dbce21 add explicit includes for elm color class header in colorclass cfd 2015-04-21 15:34:56 -04:00
Mike Blumenkrantz e869cb9649 disable client color editor for non-X clients for now 2015-04-21 15:21:19 -04:00
Mike Blumenkrantz 96f07bff8a wl client pixmaps now use a different method for creating the pixmap id 2015-04-21 15:19:20 -04:00
Mike Blumenkrantz 6e222cede8 add wl client event callbacks at lower priority
this ensures that bindings will activate before events are passed to clients
2015-04-21 15:17:56 -04:00
Mike Blumenkrantz b825af34cf use client geom for comp object centering functions if ec->new_client is set 2015-04-21 15:05:25 -04:00
Chris Michael 9b7358aa32 e-comp-wl: Don't crash if we fail to create a new e_client
This "should" fix T2344 crashing, however I suppose a better question
is ... why is e_client_new returning NULL when it Does find the client
already in the hash...

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-21 09:38:00 -04:00
Conrad Meyer 90fe5a4d0d e_auth: Add suid helper for lokker own-pw checking on FreeBSD
Summary:
PAM on FreeBSD, unlike on Linux, does not allow users to check their own
password. Instead, we need a suid helper to do it for us. Add such a
helper on FreeBSD.

For now, it is limited to checking users in the local password database
(traditional Unix passwd file). This could and should be extended to use
PAM in a later patch.

Test Plan:
Tested empty pw, wrong pw, correct pw at lock screen; observed correct behavior
in each instance.

Reviewers: q66, zmike

Reviewed By: q66, zmike

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D2355
2015-04-21 13:11:56 +01:00
Tom Hacohen 99b8d84485 Auth: try harder when clearing passwords.
Based on http://www.daemonology.net/blog/2014-09-04-how-to-zero-a-buffer.html

Thanks again to Matthew Garrett, for pointing this out on twitter.
2015-04-21 10:45:01 +01:00
Tom Hacohen 599eda1a65 Module teamwork: Stop using a deprecated function. 2015-04-21 10:29:58 +01:00
Tom Hacohen acfdda6c7f E auth: improve clearing out passwords from memory.
Optimising compilers (like gcc/clang with -O1 or above) were optimising
out the memset(). Until link time optimisations are good enough, this
will prevent them from doing so. The best solution would be to use
memset_s() (c11), though it's not readily available yet. This is the
first step towards using memset_s() with a fallback for systems who
don't have it. A better solution, is to put it in Eina, to prevent LTO
completely. This will have to be done after the EFL release.
Even this is not entirely safe though, but at least it protects us from
some memory disclosure issues.

This doesn't solve the fact that we may store a copy of the password in
other places, like the input system. We need to address that too.

Thanks to Matthew Garrett for pointing this out or Twitter.
2015-04-21 10:19:48 +01:00
Carsten Haitzler 9eaac75ae2 e - e_client - fix added printf
665caad451 fix added a printf i didn't
notice - fix.
2015-04-21 11:00:24 +09:00
Carsten Haitzler 665caad451 e client - desk wait - ref it properly and clean up delfn
delfn's on desks being referred to as profile.wait_desk were never
cleared when client was freed. als the desk itself never got an obj
reference - fix that and ref/unref it.
2015-04-21 09:36:33 +09:00
Carsten Haitzler c746beb202 e - xsettings - calloc buffer since we leave 3 of 4 bytes unset
the first 4 bytes is a msb/lsb thing for xsetttings - we ignore 3 of
the 4 bytes. thus we should just calloc the whole buffer to ensure its 0
2015-04-21 08:52:19 +09:00
Derek Foreman 1fb1f17db0 Fix wayland compositor on 32 bit systems
Summary:
_e_elm_win_trap_show() treats Ecore_Window as a 64bit data type when
it's actually the same size as the system's pointer type.

 #24HourFullPowerNoToiletNoShower

Reviewers: devilhorns, zmike

Subscribers: cedric

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

fix T2194
2015-04-20 18:18:20 -04:00
Mike Blumenkrantz 12d6cf8f3b fix submenu visibility during scroll
sometimes while quickly moving the cursor through menu items with submenus
the visibility flag would toggle more quickly than the menu object's visibility.
this is no longer the case
2015-04-20 18:08:07 -04:00
Mike Blumenkrantz 87bed22bf5 attempt to decode notification image uris with efreet before showing them
fix T1939
2015-04-20 17:24:48 -04:00
Jean Guyomarc'h ba975e702f e_backlight_main: fix compiling when not having Eeze
Summary:
EINA_UNUSED is defined in Eina. Since we are not using the program at all,
let's void main()'s arguments instead of trying to ignore them.

Test Plan: tested only on OSX, unbreaks the build.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2387
2015-04-20 17:03:22 -04:00
Mike Blumenkrantz ea7ec93af8 clear app menu cache any time a desktop is edited internally
ref T2271
2015-04-20 16:04:48 -04:00
Mike Blumenkrantz 3eaf4e8638 add function for clearing app menu cache
ref T2271
2015-04-20 16:04:31 -04:00
Mike Blumenkrantz 15f161d542 swap key -> keyname when attempting to bind lparen/rparen keys
this is impossible to grab on X, so ensure the generated binding is usable

fix T2059
2015-04-20 15:31:41 -04:00
Mike Blumenkrantz b842855391 fix clock popup widget parenting 2015-04-20 15:17:05 -04:00
Mike Blumenkrantz 934d541795 use client geometry for starting unmaximize calculations
the resize operations in this function operate off client geometry, so
stop using frame geometry

fix T2170
2015-04-20 14:32:21 -04:00
Chris Michael 51290c273c wl-drm: Use ecore_evas_new with an engine name rather than direct ecore_evas_drm_new calls
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-04-20 11:45:20 -04:00
maxerba 6604268f2d Make some randr messages translatable 2015-04-20 16:23:33 +02:00
Simon Lees 943d919db5 Wizard: Update icon theme search list
Summary:
@fix The list of icon themes in the search list is quite out of date
it doesn't include the icon themes used by gnome3 or kde4/5 this means
for a lot of users at first boot e has alot of missing icons.

The Icon sets that have been added are as follows
      "Oxygen",            /* KDE 4 */
      "Adwaita",           /* Gnome 3 */
      "Breeze",            /* KDE 5 */
      "HighContrast"

This change will cause T1732 and T1923 to not occur for almost all users
but it does not fix them properly the code should be modified to fall back
to pick up icons from fallback locations such as the hicolor theme if no
icon theme is set.

It would be nice if someone could backport this to e19 I don't know how to

Reviewers: bu5hm4n, zmike, raster

Reviewed By: raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2377
2015-04-20 13:53:00 +09:00
Jean-Philippe ANDRE 215b3b3474 PackageKit: Fix a crash properly
This reverts and tries to actually fix:

commit b30892056e
Author: Jean-Philippe Andre <jp.andre@samsung.com>
Date:   Fri Apr 17 10:30:06 2015 +0900

    PackageKit: Fix crash on error

    Sometimes a "normal" error occurs and then the callback is
    called with no context data. Then crash boom sigsegv happens.
2015-04-18 17:19:00 +09:00
Mike Blumenkrantz 8f4a018e18 remove support for wayland builds on 32bit
this doesn't work for some reason and there are no plans to fix it anytime soon.

ref some infinite number of tickets
2015-04-17 14:15:06 -04:00
Jean-Philippe Andre b30892056e PackageKit: Fix crash on error
Sometimes a "normal" error occurs and then the callback is
called with no context data. Then crash boom sigsegv happens.
2015-04-17 10:31:14 +09:00
Mike Blumenkrantz 45f26f5205 fix unoptimized stringshare usage in keybindings cfd 2015-04-16 16:02:29 -04:00
Mike Blumenkrantz 5995b13b14 prune no_display desktops from evry apps plugin
probably fix T2256
2015-04-16 15:16:50 -04:00