Commit Graph

21948 Commits

Author SHA1 Message Date
Carsten Haitzler 3c1bf5cc68 appmenu - make appmenu work with click+release and not hide on focus out
appmenu is annoying in that is hides on focus out whish is what
happens when a menu is popped up! fix this and make a qhick
click+release work as well! if we are going to have a global app menu
then let's make it vaguely decent... :)

also get menu positioning right with item geometry itself for the menu
not pointer position AND get menu pop direction correct based on
gadcon orientation.

@fix
2017-02-03 10:36:01 -05:00
Carsten Haitzler 99ecc6ad3d e bindings - fix warnings about possible use of undefined var 2017-02-03 10:35:03 -05:00
Carsten Haitzler 56789ef809 efm - fix ifs to be ifdef as they should be 2017-02-03 10:34:55 -05:00
Carsten Haitzler 2b5ea65981 efm - warning - change invalid #if toe #ifdef as this is right 2017-02-03 10:33:45 -05:00
Carsten Haitzler fa580ee748 tasks - calculate min width properly given a known height of a gadget
this also should apply to calculating height correctly given a known
width - ie horiz or vert taskbar in a shelf. without this you can't
calc min size correctly from the theme.

@fix
2017-02-03 10:33:35 -05:00
Andreas Metzler b6852b2120 10_typo_restore_LDFLAGS.diff: Fix typo in configure.ac (upstream), causing empty LDFLAGS.
Summary: typo spotted while packaging E 0.21.5 for Debian experimental

Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4507
2017-02-03 10:33:18 -05:00
Mike Blumenkrantz 83f64194ba remove extra SLEEP prints during startup on non-release builds
this was useful for startup profiling, but there are better methods available now

partially reverts 2850c28167
2017-02-03 10:32:46 -05:00
Derek Foreman 4b29b6aff1 Use a monotonic clock for frame callback times 2017-02-03 10:32:17 -05:00
Mike Blumenkrantz 08d96c67de plug iterator leak in e_comp_object_render()
==13307== 96 bytes in 1 blocks are definitely lost in loss record 6,598 of 11,698
==13307==    at 0x4C2DA60: calloc (vg_replace_malloc.c:711)
==13307==    by 0xCECA287: eina_tiler_iterator_new (eina_tiler.c:1299)
==13307==    by 0x46D13D: e_comp_object_render (e_comp_object.c:3966)
==13307==    by 0x46DB42: e_comp_object_dirty (e_comp_object.c:3923)
==13307==    by 0x46017D: _e_comp_client_update (e_comp.c:343)
==13307==    by 0x46017D: _e_comp_cb_update (e_comp.c:400)
==13307==    by 0xB34D4BA: _ecore_job_event_handler (ecore_job.c:98)
==13307==    by 0xB34909C: _ecore_call_handler_cb (ecore_private.h:317)
==13307==    by 0xB34909C: _ecore_event_call (ecore_events.c:518)
==13307==    by 0xB350527: _ecore_main_loop_iterate_internal (ecore_main.c:2359)
==13307==    by 0xB3508A6: ecore_main_loop_begin (ecore_main.c:1287)
==13307==    by 0x43C88A: main (e_main.c:1093)
2017-02-03 10:31:58 -05:00
Derek Foreman 84da1d45c7 Fix wayland frame callback times
ecore_time_unix_get() * 1000 is too big to fit in a uint32, so take the
time we instantiate the wayland pixmap hash and use that as a base.
2017-02-03 10:31:44 -05:00
Mike Blumenkrantz d5aceefc91 correctly set E_POINTER_RESIZE_BR mode for client keyboard resizing
typo from when this was refactored

fix T2452, T2579
2017-02-03 10:31:36 -05:00
Simon Lees caade0432a Merge branch 'enlightenment-0.21' of git+ssh://git.enlightenment.org/core/enlightenment into enlightenment-0.21 2016-12-12 08:00:11 +10:30
Mike Blumenkrantz f6292eb235 null out animator pointers in efx stop() operations 2016-12-08 11:21:21 -05:00
Simon Lees bad8619798
21.5 NEWS Updates 2016-12-08 11:33:33 +10:30
Simon Lees 06d7531019
21.5 Release 2016-12-08 11:22:18 +10:30
Derek Foreman a73d38dfc0 test dmabuf pixmaps properly
If we can't handle a dmabuf format we now properly tell the client instead
of accepting it anyway and falling apart later.
2016-12-07 11:18:28 -05:00
Mike Blumenkrantz 187076a0dd maintain "empty" object's size hints when ibar/ibox resizes
the sizing issue in all of these tickets was caused by the "empty" object
being deleted, thus allowing the box to reset to 0x0 size hints and
returning this value as the overall size during recalc; the result is that
all icons would be sized at 0x0 instead of using the preserved orient size
as expected

fix T4509, T4647, T4830, T4733, T4524
2016-12-07 11:18:25 -05:00
Mike Blumenkrantz b586409543 revert all sizing commits to ibar/ibox for the past year
the assumption that this code was making assumptions about elm_box
internals based on a shallow reading of the code was incorrect, and
the resulting "fix" (and subsequent attempts to bandaid it) has left these
gadgets in an unusable state for the past half year.

disappoint.jpg

this reverts the following commits:

f97f8f61ac
ebfa4a97cd
50030dc693
42aa6be359
504706d45a
b1f608c5e6
b107dc1cdc
3fc195cd9f
2016-12-07 11:18:23 -05:00
Mike Blumenkrantz 923f2e900f use better check for getting wl surface alpha from cursor pixmaps
ref 6ba85cf864
2016-12-07 11:18:17 -05:00
Mike Blumenkrantz 35530a546e fix internal wl windows to exit when border X is clicked 2016-12-07 11:18:03 -05:00
Mike Blumenkrantz 6aba66cee8 attempt to re-set wl surface pointer when popping back to "default" pointer type
this automatically handles the case where enlightenment has commandeered the
cursor temporarily and the active client has not unset+set a new cursor in the
meantime
2016-12-07 11:17:21 -05:00
Mike Blumenkrantz 28160ad450 set wl pointer surfaces to E_LAYER_CLIENT_PRIO during setup
these later get overridden onto the pointer layer, but setting a layer
here ensures that the pointer surface will always be the client
returned by e_client_top_get()
2016-12-07 11:17:09 -05:00
Mike Blumenkrantz 8d7cb8201e do not pop pointer types on client hide events if the client is pass_events
these clients cannot receive events and thus have no pointer to pop
2016-12-07 11:17:03 -05:00
Chris Michael 1942f89bf4 remove unused variables in e_comp_wl
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-12-07 11:16:26 -05:00
Derek Foreman e1120051d0 Stop sending key up/down events on focus change under wayland
We shouldn't be doing this, but there's a collective memory that
this was put in place to fix stuck modifier bugs.

If we run into stuck modifiers again because of this patch, then we
should be fixing them in a different way.

If anyone bisects to this point, I apologize - assign me a ticket.
2016-12-07 11:15:30 -05:00
Carsten Haitzler 6cd108513b e_util_defer_object_del - ensure order of deferred deletions are right
so since e_util_defer_object_del used a before idler this would
reverse deletion order vs the order submitted. this may cause issues.
not sure. chasing netstar's "animator stops" issue, but if defered
deletion if disabled seems to stop it from happening.

at least fix order if multiple deferred deletions are queued

@fix
2016-12-07 11:15:13 -05:00
Derek Foreman 51b25ecad4 More aggressively prune keyboard focus list
Even if a client is deleted we still need to get its resources off the
keyboard focus list.
2016-12-07 11:15:06 -05:00
Derek Foreman ea3afd11c1 Fix crash when exiting an xdg shell application
The focus in timer has been firing for deleted clients, this causes a
NULL pointer dereference.

Then again, maybe the timer should've been disabled by now...
2016-12-07 11:14:48 -05:00
Derek Foreman e2eec45e3b Fix keyboard tracking when leaving an xdg shell window
_parent_client_contains_pointer() shouldn't return true if there is no
parent client.  This could result in leaving stale resources in the
keyboard focus list and crash the compositor.
2016-12-07 11:14:34 -05:00
Mike Blumenkrantz a61f64f150 use more accurate determination for applying xdg-shell (un)maximize operations
fixes maximizing again
2016-12-07 11:13:11 -05:00
Mike Blumenkrantz 0eb453f39c stack subsurfaces above their parents upon creation
handles the case where no explicit stacking is set on the subsurface
2016-12-07 11:10:33 -05:00
Mike Blumenkrantz 7b7ba99c4d handle xdg-shell maximize/unmaximize calls correctly 2016-12-07 11:10:16 -05:00
Simon Lees 43b9258376
21.4 NEWS Updates 2016-11-29 11:39:15 +10:30
Simon Lees 39e6605bf1
21.4 Release 2016-11-29 11:29:54 +10:30
Al Poole 617ef1887e Add temperature support for DragonFly BSD.
Reviewers: zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4432
2016-11-28 10:59:50 -05:00
Romain Naour 157ab70673 E: fix Wayland without xwayland build
When building enlightement without xwayland, we need to provide
MESA_EGL_NO_X11_HEADERS in the CFLAGS to avoid including X11/Xlib.h.

This define is provided by WAYLAND_EGL_CFLAGS, so add it for E modules
and e_fm build.

Fixes:
In file included from /usr/include/EGL/egl.h:39:0,
                 from ./src/bin/e.h:108,
                 from src/modules/mixer/lib/backends/pulseaudio/pulse.c:1:
/usr/include/EGL/eglplatform.h:119:22: erreur fatale : X11/Xlib.h

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2016-11-28 10:59:49 -05:00
Mike Blumenkrantz 1e85ec4174 prevent divide by zero when calculating gadget aspect sizing 2016-11-28 10:59:48 -05:00
Mike Blumenkrantz e6efe45227 revise internal window session recovery blocking to compile with older efl
this is an important fix which should be active where available

ref 9673df56ee
2016-11-28 10:59:01 -05:00
Mike Blumenkrantz 37eb433a41 make fake mouse-out upon focus-out conditional on pending pointer warp
in the case where warping would not occur and a mouse-based focus policy was
not in use, this would break mouse eventing on wayland when a window lost focus
but the cursor remained inside the window

ref 3e6d6b348f
2016-11-22 11:33:50 -05:00
Mike Blumenkrantz 7c38e4edb4 clarify some wl surface checks to require elm wins
these should not apply to role-less surfaces
2016-11-22 11:33:40 -05:00
Mike Blumenkrantz a95d5ebd40 require an elm win to apply auto-visibility for internal wins in wl surface commit
other internal surfaces could be things like cursors, and these should not be made visible
before setting a role
2016-11-22 11:33:08 -05:00
Mike Blumenkrantz b4a3dc1f88 make confirm dialogs autoselect the confirm option
esc is already used for cancel, having an easier confirm makes sense (tm)
2016-11-18 11:46:37 -05:00
Mike Blumenkrantz 084aeebaa7 reject non-printable characters from lokker entry
previously characters such as tab would be injected into the entry when pressed.
this is the same check which is used in various other places in efl for string
validation
2016-11-18 11:46:35 -05:00
Mike Blumenkrantz 2c7e448fb2 disable bindings during desklock
hopefully nobody noticed this before now...
2016-11-18 11:46:32 -05:00
Chris Michael bd66d3e1bb fix missing definition of DRM_FORMAT_XRGB8888
As we do not compile-time link with libdrm inside Ecore_Drm2 anymore,
we need to include relivant bits of drm_fourcc header here in order to
define DRM_FORMAT_XRGB8888 else we fail to compile Enlightenment Wayland

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-11-18 11:46:27 -05:00
Carsten Haitzler 117e30310d wizard - do not set scale to 1.2 forcibly. use dpi as the def prof says
the default profiel is configureed to use dpi to scale. if dpi goes up
so does wizard scaling. setitng to 1.2 forcibly is just wrong. imagine
a uhd screen thats 13" or imagine an 8k display... at least if dpi can
be read correctly things work out find. think the base dpi of 90 is
too high - then adjust that in profile... but not in wizard code.

this has been here a while and i always thought this scaling bumping
was a dpi effect. it wasnt. it was hardcoded. bad bad.

@fix.
2016-11-18 11:46:23 -05:00
Mike Blumenkrantz c4339eb273 focus confirmation option in efm delete dialog
fix T4797
2016-11-18 11:46:19 -05:00
Mike Blumenkrantz 1c27386047 only unset cur_mouse_action on client menu delete for the right action
ref 50198ecdde

this still needs improving....
2016-11-18 11:46:14 -05:00
Mike Blumenkrantz 25ae14416c send orientation signal to bryce scroller theme 2016-11-18 11:46:05 -05:00
Mike Blumenkrantz d0419e937c unset cur_mouse_action upon deleting client menu
fix T4522
2016-11-18 11:46:01 -05:00