Chris Michael
42aa6be359
e ibar - fix "old man" fat finger typo ;)
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-25 09:27:52 -04:00
Carsten Haitzler
504706d45a
e ibar - fix devilhorns fix to use the right widght and hight for separator
2016-07-25 22:21:47 +09:00
Chris Michael
b1f608c5e6
use proper variables to set size_hint_max on ibar
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-25 09:05:40 -04:00
Chris Michael
b107dc1cdc
remove unused variables from _ibar_resize_handle
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-25 08:44:12 -04:00
Carsten Haitzler
3fc195cd9f
e ibar/ibox port to elm box - fix assumption on resize
...
so... when ibar/ibox were ported to elm box they assumed elm box would
resize itself. this was wrong as it only should have set min size
hints. this has been fixed by 96fbea9daecf7040ac63203c4823722fa6d5d73f
and this addresses T3031. this requires we fix enlightenment too.
@fix
2016-07-25 19:13:29 +09:00
Chidambar Zinnoury
9849855e18
e fm: Don’t check every other line whether the location is writable when creating menu.
2016-07-23 12:51:03 +02:00
Chidambar Zinnoury
1e78015385
e fm: Add a separator only if there is something before.
...
Currently, the context menu will show a separator before the background and overlay items even if there is nothing before, such as on the favourites pane.
@fix
2016-07-23 12:27:17 +02:00
Chidambar Zinnoury
06f26a9c73
e: Don’t show two consecutive menu separators if there is no need in client menu.
...
This would happen if we don’t show some stacking settings.
@fix
2016-07-23 12:27:11 +02:00
Derek Foreman
926d9ab6d8
Fix test for object visibility when deleting wayland clients
...
In the very last commit I got the visibility check wrong.
ref 0680250d72
2016-07-21 14:29:20 -05:00
Derek Foreman
0680250d72
Fix wayland clients not deleting when they're hidden
...
We kept an extra reference for wayland clients and dropped it on their final
render to stop crashes. However, if they're not on screen at the time of
their deletion this reference still needed to be dropped.
Fixes clients remaining on the deskmirror after dying on another desktop.
2016-07-21 13:11:37 -05:00
Carsten Haitzler
1a982fd72a
e - fix dnd problems coming from getting top object in comp canvas
...
so getting top object was broken. it didnt account for repeat event
objects that would be included. so get the full l,ist and walk them
top to bottom for the first one thats a client. THAT is the correct
thing to do. this would affect both x11 and wayland.
@fix
2016-07-21 17:01:21 +09:00
Carsten Haitzler
bd43f07046
e temp module - kill tempget process not terminate to ensure death
...
it seems on openbsd sigterm doesnt kill things... sigkill does so move
to that. fixes T4121
@fix
2016-07-20 18:12:04 +09:00
Mike Blumenkrantz
54fa1a0ca4
adjust xdg-shell window menu coords by client's coords
...
the coords passed in this method are relative to the window geometry
2016-07-19 14:15:21 -04:00
Chris Michael
3c8ab9f175
add missing EINA_UNUSED for unused function params
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-19 13:57:34 -04:00
Mike Blumenkrantz
5f9cbb1446
set/unset smart parent as e_widget when adding sub-objects
...
in the case where there is no smart parent, this fixes the object tree
and resolves some stacking issues. if there is a parent or a parent is added
later, nothing is changed
fixes eg. screenshot preview visibility in wayland
2016-07-19 13:43:59 -04:00
Cedric Bail
3e74bcb3d3
filepreview: avoid race condition when destroying txt file preview with slow hard drive.
...
@fix T4119
2016-07-18 16:45:49 -07:00
Carsten Haitzler
c72113eca8
e ibar/ibox fix starrting/started signal emittion
...
i found this didn't emit signals correctly and multiple times when not
needed. this fixes that.
@fix
2016-07-18 15:50:23 +09:00
Al Poole
382fe30688
fwin: prevent segv when the vaarg abi messup with unused parameter.
...
Quite a hack overall, but if you don't need those parameter, just put
nothing and it will work.
@fix T4112
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-07-15 09:17:44 -07:00
Derek Foreman
248fa6d1e6
Fix xdg_shell focus logic
...
Moves and resizes tripped up the new xdg focus logic, so test if the
focus is leaving the client entirely before trying to determine if it's
leaving into a parent surface.
2016-07-13 16:03:55 -05:00
Derek Foreman
e32db0e7e3
Make sure the same keyboard resource doesn't end up on the focus list twice
...
This stops recent xdg_popup focus tracking changes from causing multiple
key events to be sent to the focused client.
2016-07-13 16:01:51 -05:00
Marcel Hollerbach
fde72ce193
e_comp_data: NULL out source once it is freed
...
Otherwise the pointer is removed when the next drag starts, so this
makes debugging dnd problems easier.
2016-07-13 18:09:34 +02:00
Mike Blumenkrantz
5546c2a425
set unmax flag for xdg shell unmaximize
...
ref b5576dbb8c
2016-07-13 11:26:16 -04:00
Mike Blumenkrantz
4773dd7039
match wl_wl output sizing in wl_x11 when running in an existing wm session
...
global sizing policy++
2016-07-12 12:51:00 -04:00
Mike Blumenkrantz
c6ef590e9e
set x11 randr iface for wl_x11 based on wm presence, not composited state
...
fixes usage in non-composited x11 environments (eg. openbox)
2016-07-12 12:51:00 -04:00
Mike Blumenkrantz
08aaeffade
handle e_comp_x init failure more effectively and perform cleanups
...
fixes autodetection for x11 wayland output without setting E_WL_FORCE
2016-07-12 12:51:00 -04:00
Chris Michael
f3371ff04c
'cur_group' variable is unused here if we are not building for wayland
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2016-07-11 12:11:00 -04:00
Derek Foreman
963afc8fea
Properly send kbd focus to xdg_shell popups
...
Oops, a client can have multiple top level windows.
ref f391a0fb67
2016-07-08 16:12:43 -05:00
Chidambar Zinnoury
b80f0bfef7
e desks config: Group all flip-related settings to their own tab.
2016-07-05 22:15:57 +02:00
Chidambar Zinnoury
5eb12b6972
e desks config: Bring some flip settings back.
...
These were inadvertently removed by e1369a24bd
.
@fix
2016-07-05 22:15:57 +02:00
Mariusz Bialonczyk
5dd4a7eddf
modules/temperature: cosmetics: typo fix (celcius -> celsius)
...
Reviewers: zmike!
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D4129
2016-07-05 11:45:00 -04:00
Andy Williams
67463782a8
Fix compiling with WL off
2016-06-30 23:27:14 +01:00
Marcel Hollerbach
30b22f30af
e_xkb: use the new e_comp_wl_input_index_set api
...
For now the setting of a new layout does not mean the complete file
needs to be recompiled.
2016-06-30 20:35:58 +02:00
Marcel Hollerbach
d1e700cb68
e_comp_wl: introduce api to set index of keymap
...
this commit introduces the setting of the index. Setting the index here
means that the layout with the id 0..n, out of the compiled keymap file
will be used. After a new index is set the modifiers are updated, that
the client are aware of the new resulting group.
If the api is called before the compositor is inited (this can happen
in e_xkb, so the drm can use the keymap at startup) then the index is
saved in between and will be flushed once the compositor does the init.
2016-06-30 20:19:33 +02:00
Derek Foreman
f391a0fb67
Fix xdg_shell keyboard enter/leave events
...
On xdg_shell we should only ever send enter/leave to top level surfaces
or GTK becomes sad.
2016-06-29 16:23:41 -05:00
Derek Foreman
ada8e2deac
Don't send keyboard leaves to unmapped wayland surfaces
...
There are actually toolkits that create surfaces, do nothing with them,
and destroy them. Sending keyboard leave events for this causes problems.
Fixes a bug in handling of some GTK popups.
2016-06-29 16:21:49 -05:00
Derek Foreman
1f44a593c2
Track whether a surface is an xdg one
2016-06-29 16:19:20 -05:00
Derek Foreman
7b470c402e
Set up attributes properly for wl_shell transient windows
...
This fixes Qt sub-windows.
2016-06-29 13:20:45 -05:00
Derek Foreman
27e9845abd
Only unignore a client on the first commit with a buffer
...
Otherwise, if a wayland client does its first commit without a buffer
attached it will confuse our focus logic.
2016-06-29 13:20:37 -05:00
Mike Blumenkrantz
033217c8e1
destroy evry's focus-out timer if focus-in occurs before timer triggers
...
fixes dismissal during comp input regrabs
2016-06-29 10:02:47 -04:00
Derek Foreman
124e59df6f
Add a pixel get callback for mirrors
...
Mirrors can be rendered independently of what they're mirroring,
which (at least under wayland) can result in a situation where the
mirror is rendered before the parent sets up their image pointers
properly.
We give mirrors their own callback to prevent that from causing a
crash.
2016-06-28 15:44:00 -05:00
Derek Foreman
a04ee8e253
Revert "Always clear the mirror image data pointer"
...
This reverts commit 326d638ba2
.
This, for some reason, resulted in client surfaces being blacked out,
despite only ever changing mirror surfaces.
2016-06-28 15:43:54 -05:00
Derek Foreman
ab5879b926
Fix wayland pixmap ids again
...
Wayland pixmap ids are a different data type for internal and
external windows. cast them both to 64-bits so they're the same
size regardless of arch.
ref d3ba524a62
2016-06-28 15:43:45 -05:00
Marcel Hollerbach
4f0e3bce84
emix: update sink of sink_input when changed
...
this fixes none changing sinks in the app.
2016-06-25 17:12:35 +02:00
Marcel Hollerbach
afeb588632
e_comp: silence warning, this time really
...
as said on the ML
2016-06-25 16:00:30 +02:00
Marcel Hollerbach
a80bc13336
e_comp: silence warning
...
after talking to zmike, this is by intend.
2016-06-25 15:29:45 +02:00
Marcel Hollerbach
9c8b6a1c5d
e_xkb: eval group before setted to wl
...
otherwise we are going to set 0 as default group.
This commit refactors out _eval_cur_group from the init timer, since wl
does not need a init timer.
2016-06-25 15:01:44 +02:00
Marcel Hollerbach
4bc61cfbd3
music-player: add spotify
2016-06-25 01:11:57 +02:00
Derek Foreman
c22c140c2f
Fix zone setup for wayland compositor on X
...
Both the X and WL code try to set up the output pointer for the
zone. Make the WL output take precedence, since it's actually
used for events.
2016-06-24 14:19:36 -05:00
Mike Blumenkrantz
cefcc5248f
add some hacks to route mouse events to wl popups correctly while mouse is down
...
in a choice between fixing a corner case popup behavior and breaking dnd
or having functional dnd and adding hacks to fix corner case popup behavior,
adding more hacks was the obvious correct solution
ref 03a4ecbdb0
2016-06-24 11:31:02 -04:00
Mike Blumenkrantz
4852a6903b
remove unused event info from _e_comp_wl_mouse_out()
2016-06-24 11:31:02 -04:00
Derek Foreman
eb94710146
Don't try to send surface presence events for zones with no wayland output
...
Avoid that NULL pointer deref.
2016-06-24 10:05:18 -05:00
Mike Blumenkrantz
191e5180b5
Revert "set NOGRAB pointer mode on comp object event objects"
...
This reverts commit 03a4ecbdb0
.
this should be correct, and yet it crashes xwayland and breaks dnd
2016-06-23 18:06:22 -04:00
Mike Blumenkrantz
03a4ecbdb0
set NOGRAB pointer mode on comp object event objects
...
fixes dragging off surfaces in wayland
2016-06-23 17:16:03 -04:00
Derek Foreman
bdf1017f90
Don't send configure to wl_shell popups
...
This confuses Qt badly, and rightly so, because we shouldn't be
doing it.
2016-06-23 11:26:57 -05:00
Derek Foreman
453e6adc33
Use e_client_util_is_popup for checking wayland clients
...
All the different popup types are tested by the helper function,
the current wayland tests were missing some.
2016-06-23 11:22:47 -05:00
Mike Blumenkrantz
9a50f6b218
disallow pager window drags for popups and ignored windows
2016-06-23 12:13:24 -04:00
Mike Blumenkrantz
22aa63c4a3
Revert "do not change E_Client->saved values during maximize if need_maximize is set"
...
This reverts commit 9a9c09f514
.
a better solution should be found at some point since this is broken in x11 too
2016-06-22 13:31:50 -04:00
Mike Blumenkrantz
99e4f8452b
don't set need_maximize during wl commit maximize
...
this breaks the maximize!
partially reverts b5576dbb8c
2016-06-22 12:30:01 -04:00
Mike Blumenkrantz
da7e7d19fb
freeze events on comp object input rects during deletion
...
prevents some event propagation which would cause flickering
2016-06-22 12:28:48 -04:00
Derek Foreman
326d638ba2
Always clear the mirror image data pointer
...
Under wayland evas will sometimes use the old one, I have no idea why.
Fixes a crash bug when mousing out of menus in a GTK app under wayland.
fix T3576
2016-06-21 17:53:16 -05:00
Marcel Hollerbach
a45bbe3d35
e_xkb: init the keyboard on init
...
we need to flush in the first group here. For wayland currently each
keyboard configuration needs to be flushed each time.
2016-06-21 21:43:57 +02:00
Derek Foreman
11796c8b88
Update some wl_shell window handling logic
...
Our xdg_shell implementation has received some fixes that are also
applicable to wl_shell. Qt still uses wl_shell, so we do have a test
case, and do need to keep it up to date.
This copies some window attributes, clamping logic, and diagnostic prints
from the xdg_shell implementation.
2016-06-21 12:33:49 -05:00
Derek Foreman
19817b47de
Send wayland surface enter and leave events
...
These events are supposed to be sent to clients that have bound wl_output
and manipulate surfaces.
2016-06-21 12:33:49 -05:00
Derek Foreman
11cb74a288
Track X outputs for zones
...
We needed this for wayland, so we add the same tracking for X to be
consistent - though we have no users yet.
2016-06-21 12:33:49 -05:00
Derek Foreman
3ff5e8dff4
Track wayland outputs for zones
2016-06-21 12:33:49 -05:00
Derek Foreman
fc37423c2e
Add new API for finding a zone by its id string
2016-06-21 12:33:49 -05:00
Mike Blumenkrantz
36c486906d
apply client size for session recovery remember
...
fixes maximize restoring
2016-06-20 16:04:11 -04:00
Mike Blumenkrantz
b5576dbb8c
use separate flag for pending wl client unmaximize
...
also set flag to prevent saved geometry from being overwritten
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
9a9c09f514
do not change E_Client->saved values during maximize if need_maximize is set
...
this is indicative of a deferred maximize, so don't re-set it and screw up
previously-set values
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
b5ef8766f4
store maximize property from E_Remember to disk
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
c5266515ba
set need_maximize flag on remembered client when applying maximize
...
causes maximize to be applied
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
0f022976e0
use pending wl maximize value to determine maximize flag in xdg configure
...
fixes some cases where fast configures would break maximizing
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
12bcf7ecea
match deskmirror client opacity with original object
...
fix T3911
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
10eb06b377
update secondary remembers when a session recovery remember is updated
...
the session recovery remember may block updates for the user-created
remember, creating continuity issues when a new instance is launched
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
e8e6ada2e1
prevent E_Remember->used_count from going negative
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
890008cdf2
prevent editing of session recovery remembers
...
find/create new ones in this case
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
a93aadfe01
replace wireless connection error #warning with notification
...
this needs a more robust infrastructure than I'm prepared to write at
the moment, but errors do need to be seen
2016-06-20 12:37:28 -04:00
Mike Blumenkrantz
aa1768a9d9
enforce mouse grabs and block client/compositor event propagation while active
...
fixes cases where mouse events could filter to objects and cause unwanted effects,
such as evry hiding randomly under wayland
2016-06-18 10:56:14 -04:00
Derek Foreman
4bd97bfd5c
Fix eo object use after deletion in evry
...
On window hide the focus out callback is triggering and causing a new
timer to be set up. This timer fires when the window no longer exists.
Remove the focus_out callback when we hide the window.
2016-06-17 16:40:20 -05:00
Mike Blumenkrantz
6fd2d4487f
force unset override and do reshadow on evry when switching to normal win mode
...
fixes window movement and close animations
2016-06-17 17:19:02 -04:00
Derek Foreman
b6819e5a77
Fix wl_shell popup livelock
...
Trying to put wl_shell popups in the popup layer results in stacking
problems later and a never ending loop.
Just don't.
fix T3433
2016-06-16 14:37:15 -05:00
Mike Blumenkrantz
6b081d1d44
do not mouse-out of clients on focus out when focusing a popup
...
popups are transient in nature and do not interfere with mouse-based focus
policies
ref 3e6d6b348f
2016-06-16 14:48:51 -04:00
Derek Foreman
4f8dd3f1e5
Fix wl_shell clamping rules
...
The current clamping logic clamps submenus so that they're contained
within their parent instead of adjacent to them.
2016-06-15 16:39:08 -05:00
Derek Foreman
2463ce8b43
Fix crash in wl_shell surface destroy
...
wl_shell doesn't set up shell.data, but this destructor is shared
with xdg_shell which does.
2016-06-15 15:19:32 -05:00
Mike Blumenkrantz
771f71e6a9
add separate mouse in/out handlers for internal wins
...
internal wayland windows are windows with ssd, meaning they can only receive
pointer events on the contents of the window and not the entire window including
decoration regions
ref T3819
2016-06-13 12:00:09 -04:00
Mike Blumenkrantz
a6bed1841a
use focused client for window actions if passed object is not a client object
...
in the case where an action is triggered from the compositor or manager contexts
the passed object will not be a client, causing actions to fail when they should
succeed
fix T3854
2016-06-09 11:26:17 -04:00
Al Poole
4f1f29ae35
fix openbsd battery calc on amd64
2016-06-09 11:15:09 -04:00
Mike Blumenkrantz
0e416648df
optimize e_client_res_change_geometry_restore()
...
performing the entire unfullscreen/unmaximize routine causes a significant
amount of overhead, and it also breaks window geometries in wayland due to
synchronization
2016-06-07 11:24:27 -04:00
Derek Foreman
573df39c17
Allow pixmap argb state to override window state for wayland clients
...
Wayland argb state depends entirely on the attached buffer, so we
should use that for determining object argb state on wayland.
ref 6d397e313b
ref 60da58d8ad
2016-06-06 14:06:00 -05:00
Mike Blumenkrantz
e95098fedb
add tooltip for unloadable teamwork links, make ctrl suppress tw activation
...
fix T2995
2016-06-02 13:08:52 -04:00
Mike Blumenkrantz
07ed7a1433
force mouse-in again during comp ungrab if client previously had mouse-in
...
unfocus performs a mouse-out, so this is necessary in order to allow events
to reach the client again after a grab ends
2016-06-01 13:11:20 -04:00
Mike Blumenkrantz
492f9bcf4e
unset comp_grabbed flag before action client compositor ungrab
...
this flag was blocking accurate event propagation in some cases
2016-06-01 13:11:20 -04:00
Mike Blumenkrantz
48ee824c63
only block mouse-out callback for wl action clients if the mouse is grabbed
2016-06-01 13:11:20 -04:00
Mike Blumenkrantz
3c9013eeb0
protect against crash when deleting wl session recovery remember
2016-06-01 13:11:19 -04:00
Mike Blumenkrantz
ffbf4235dd
Revert "eo_del -> eo_unref in xwayland"
...
This reverts commit 1eddd375d8
.
2016-06-01 09:57:17 -04:00
Mike Blumenkrantz
859b1b989f
handle shaded state when receiving x11 configure requests
...
previously this would resize the window without unshading it, leading to
a confusing state for the window and the user
2016-05-31 12:31:50 -04:00
Mike Blumenkrantz
68c93a1adf
use current zone when activating a client's menu with the mouse
...
the mouse defines position of a mouse-activated menu
fix T3701
2016-05-31 12:23:50 -04:00
Mike Blumenkrantz
1fef7d04dc
delete x11 mouse-in job when hiding the job's client
...
spurious x11 mouse events will be received when activating a mouse binding which
flips the active desk
fix T3716
2016-05-31 12:21:09 -04:00
Hannes Janetzek
b3561d7641
just a small patch to make sure evry_hide does not get called synchronously from an Evry_Action
2016-05-31 11:42:27 -04:00
Mike Blumenkrantz
3e7f8284cd
set x11 maximized window hint correctly on resize end
...
fix T3702
2016-05-27 12:15:26 -04:00
Chris Michael
0d2b6b047c
port enlightenment to use drm2
...
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-27 09:53:41 -04:00
Chris Michael
c21bced4f8
change 'if' clause to make gcc-6 happy
...
Gcc 6 was spitting a nasty little compiler warning here:
src/bin/e_fm.c: In function ‘e_fm2_icon_geometry_get’:
src/bin/e_fm.c:2354:4: warning: this ‘if’ clause does not guard...
[-Wmisleading-indentation]
if (x) *x = 0; if (y) *y = 0; if (w) *w = 0; if (h) *h = 0;
^~
src/bin/e_fm.c:2354:19: note: ...this statement, but the
latter is misleadingly indented as if it is guarded by the ‘if’
if (x) *x = 0; if (y) *y = 0; if (w) *w = 0; if (h) *h = 0;
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-24 15:48:18 -04:00
Mike Blumenkrantz
b40857b9f0
use current zone for shelf config dialog
...
fix T3683
2016-05-24 11:59:56 -04:00
Mike Blumenkrantz
c58a3919e9
update client remember on opacity change
...
fix T3681
2016-05-24 11:52:31 -04:00
Mike Blumenkrantz
b6b89256e1
use correct indexing for x11 teamwork server atom array
...
CID 1355933
2016-05-23 11:34:32 -04:00
Mike Blumenkrantz
361bcd9bcd
upgrade teamwork module to use teamwork v2: teamwork++
...
use display protocol and add wayland support
2016-05-20 15:06:09 -04:00
Davide Andreoli
107872af91
enlightenment_open: correctly return the exist status code of the executed command
...
@fix and close T3555
2016-05-20 19:25:42 +02:00
Derek Foreman
e5e875ded8
Fix dmabuf breakage of non wayland builds.
...
#IWearTheHatOfShame
2016-05-19 10:23:22 -05:00
Chris Michael
bd1847162e
remove unused variables in _dmabuf_add function
...
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-19 08:57:43 -04:00
Mike Blumenkrantz
c53a6efc8d
add client util function for detecting popups, block popups in ibar/tasks
...
mainly a wayland issue where popup menus would cause the tasks gadget to
grow and shrink uncontrollably
2016-05-18 14:43:21 -04:00
Derek Foreman
402c56e1f2
clean up warnings in dmabuf code
2016-05-18 12:34:23 -05:00
Mike Blumenkrantz
1eddd375d8
eo_del -> eo_unref in xwayland
2016-05-18 13:26:59 -04:00
Derek Foreman
2d1802375d
Add DMABuf support for wayland
...
This adds compositor handling of DMABuf buffers. DMAbuf capabilities
are advertised for the drm back-ends, and DMAbuf buffers are handled
as native surfaces.
2016-05-18 12:05:34 -05:00
Derek Foreman
da23b852e7
Disable wayland dmabuf for the X11 backend
...
This is just too hard to get right and nobody will notice its
absence, so let's not bother for now (or ever, I hope)
2016-05-18 12:05:34 -05:00
Derek Foreman
6b0c55dd96
Track parent compositor dmabuf capabilities on wayland on wayland
...
When running as a wayland compositor connected to another wayland
compositor, we don't want to advertise dmabuf capabilities if the
parent compositor doesn't support them.
If it does, we'll want to proxy dmabuf requests to it instead of handling
them ourselves.
Expose this as new bools in e_comp_wl.
2016-05-18 12:05:34 -05:00
Derek Foreman
f6d99980ba
Remove GL presence test from native surface set on dirty objects
...
This test has been pushed into e_comp_object_native_surface_set() and
will be done as appropriate.
Upcoming wayland DMAbuf buffers need native surfaces even if GL isn't
present.
2016-05-18 12:05:34 -05:00
Derek Foreman
50a3f84191
Move the test for resetting no native surface to after caps checks
...
This is supposed to be functionally equivalent, but is a little tricky to
prove.
The benefit of this is a simplification to the callers, which no longer
have to consider gl capabilities in the call, as that is now tested for
internally.
2016-05-18 12:05:33 -05:00
Derek Foreman
57f0150b73
Break native surface test criteria into explicit wayland and X cases
...
Until now it's been reasonable to consider these together as the
criteria have been similar. With the upcoming introduction of wayland
DMAbuf buffers, they diverge.
We don't need to test for GL in the wayland case because we don't
advertise GL capabilities to clients when we don't support it, so they
can't create GL buffers unless we can display them.
2016-05-18 12:05:33 -05:00
Derek Foreman
1774b59923
Add e_pixmap API for testing if a pixmap is a native surface
...
DMAbuf for wayland will complicate determining whether a pixmap can use
a native surface or not, so we add an API here to check this.
Note that this doesn't take compositor capabilities into account - for
example, X pixmaps need GL enabled to use native surfaces. This is
already tested elsewhere.
2016-05-18 12:05:33 -05:00
Mike Blumenkrantz
91d16899b1
fix e_place_zone_region_smart_cleanup()
...
this function was adding the same client multiple times, failing to cleanup
windows effectively, and misusing the skiplist functionality of e_place functions
fix T3654
2016-05-18 12:32:27 -04:00
Mike Blumenkrantz
366193f2d2
remove pulse sinks/sources from list before running cbs which access the list
...
this guarantees a crash any time the default sink gets removed since it will
always re-set the about-to-be-deleted default sink as the default sink
fix T3277 probably
2016-05-17 15:05:18 -04:00
Carsten Haitzler
62bcd72eef
e - suspend.hibernat intelligently - dont account for ac power
...
this means only lid/screen status affects intelligent suspending. it's
not what people expect and doesnt rely on ecore getting mains power
stuff right too.
2016-05-17 00:33:47 +09:00
Chris Michael
b5e47665bb
stop filling logs with buffer transform/scale spam
...
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-15 10:47:53 -04:00
Carsten Haitzler
59e2eb40f8
warnings - silence some theoreitcal wranings in build
...
a bunch of "potentially uninitialized variable" warnings fixed.
2016-05-15 23:14:15 +09:00
Mike Blumenkrantz
ec9a888fcf
more tweaks for manual window placement in client eval
2016-05-13 11:38:17 -04:00
Mike Blumenkrantz
685aafcd41
prevent double emission of E_EVENT_CLIENT_SHOW
2016-05-13 11:28:27 -04:00
Mike Blumenkrantz
030d083c73
ensure that client eval correctly handles retries on visibility-pending clients
...
ref 2854352bc8
fix T3636
2016-05-13 11:24:08 -04:00
Marcel Hollerbach
1aea5ab079
e_xkb: reconfig when we have set a new set of layouts
...
When in the config dialog a new set of layouts is created, this set has
to be told to the displayserver. Like at the startup of e, so calling
e_xkb_reconfig().
fix T3072
2016-05-12 21:02:40 +02:00
Marcel Hollerbach
ce6d2285f1
e_xkb: split up e_xkb_update
...
before the function had the semantics that -1 flushes the set of layouts
back to the displayservice. Now its done with e_xkb_reconfig.
2016-05-12 20:54:22 +02:00
Mike Blumenkrantz
189dce81f9
force cursor placement to obey useful zone geometry
2016-05-12 12:10:48 -04:00
Mike Blumenkrantz
2854352bc8
adjust some client eval parts to make manual placement work again
...
activating the window_move action doesn't require the client to successfully
be shown, and failing this check would cause the window_move action to be
deleted until the next restart
2016-05-12 12:05:59 -04:00
Mike Blumenkrantz
55c83134c1
use parent windows for x11 binding grabs
...
ensure that internal windows do not receive mouse events before the compositor
fix T3347
2016-05-12 11:23:20 -04:00
Mike Blumenkrantz
60da58d8ad
only check pixmap argb state for non-X11 clients
...
non-argb windows can have argb pixmaps.
ref 6d397e313b
2016-05-11 18:34:49 -04:00
Mike Blumenkrantz
ada13539bf
avoid infinitely looping when applying x11 window grouping
...
#ThatTimeKainXFoundABug
2016-05-11 18:29:38 -04:00
Mike Blumenkrantz
d3ba524a62
use window id for internal window pixmaps again on wayland
...
this was breaking internal windows when more than one was open, and
especially if any were open which had a parent-child relationship, by
using the same id for all internal window pixmaps
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
45e872ddf1
set E_Client->override flag for internal wins as needed
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
8d4a75575c
remove some cruft from _e_comp_wl_client_cb_new()
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
2d85b8f111
ensure int64_t is used in all cases for wl pixmap ids
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
4a47f74b3a
enforce setting alpha on comp objects only after image data has been set
...
setting alpha can trigger a render sync, crashing if the old data is no
longer valid
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
6d397e313b
also check pixmap argb state when setting comp object alpha
...
more accurate for wayland
2016-05-11 15:40:09 -04:00
Mike Blumenkrantz
5d300bcb46
fix usage of e_object_unref in xkbswitch when managing new kbd dialog
...
probably harmless?
2016-05-11 15:40:09 -04:00
Mike Blumenkrantz
f25b2ab434
toggle compositor canvas focus during init
...
this sets the toplevel focus flag in elm, allowing widgets on the compositor
canvas to receive focus in wayland compositors
2016-05-11 13:33:31 -04:00
Mike Blumenkrantz
89deb898ad
change efm icon entry to only toggle focus in x11 compositors (runtime)
2016-05-11 13:32:52 -04:00
Mike Blumenkrantz
280a29cc95
Revert "add SA_NOCLDWAIT to SIGCHLD flags when xwayland module loads"
...
This reverts commit 66a3fcb013
.
fix T3599
2016-05-11 12:49:53 -04:00
Mike Blumenkrantz
f2ad686fc3
handle positioning of x11 overrides with csd accurately
...
when first applying the csd region to this type of window the coords must
be adjusted in order to account for the shadow
fix T2934, T2931
2016-05-10 16:04:57 -04:00
Mike Blumenkrantz
e2390bebff
only load wayland-specific modules on startup if they have been built
2016-05-10 14:18:09 -04:00
Mike Blumenkrantz
e4f3179731
block keyboard sending for wl clients if a compositor grab is active
...
fix T3599
2016-05-10 13:00:01 -04:00
Mike Blumenkrantz
f37590209d
disable focus effects for windows with csd
...
fix T3408
2016-05-10 12:35:06 -04:00
Mike Blumenkrantz
16797009c0
ensure child windows are placed on screen
...
when centering a child over its parent, checks were not made to ensure that
by centering the child it had not gone offscreen
2016-05-10 12:13:12 -04:00
Mike Blumenkrantz
ac86429a2c
manage pending state list more effectively in wl shell
...
fix T3433
2016-05-10 11:34:48 -04:00