Chris Michael
35c3eb7dcf
fix compile issue due to output change and fixup subsurface creation to match new "state" paradigm
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-26 15:33:40 -05:00
Chris Michael
b6be9efe26
Implement buffer_reference to fix client resizing issue
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-26 15:33:40 -05:00
Chris Michael
88f44e1a1d
adjust wayland compositor scale when we adjust e_scale
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-26 15:33:40 -05:00
Chris Michael
0ac3045827
add a surface_state structure to E_Comp_Wl_Client_Data
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-26 15:33:39 -05:00
Derek Foreman
dd2058d8a6
Don't crash when an error pop-up occurs before the compositor is set up.
...
Reviewers: devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2059
2015-02-26 14:43:10 -05:00
Bryce Harrington
5bebba3036
wayland: Refactor out common mouse handling code
...
Summary:
These two functions are nearly identical so move much of the common code
into a helper function.
Reviewers: cedric, devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2053
2015-02-25 22:00:11 -05:00
Manuel Bachmann
a5a27dee14
build: allow building in pure Wayland mode (no xcb, no ecore-x)
...
Summary:
We should be building Enlightenement with "--enable-wayland-only"
even if xcb, ecore-x... are not present. The Evas wayland-shm
engine will then be a prerequisite, though.
E_Alert being too much X11-oriented, let us disable it completely
before it is ported.
Also, do not require the X11 rendering engines at runtime.
Reviewers: stefan, devilhorns
Reviewed By: devilhorns
Subscribers: stefan_schmidt, stefan
Projects: #enlightenment-git
Differential Revision: https://phab.enlightenment.org/D1986
2015-02-25 09:33:40 +01:00
Carsten Haitzler
6097f06b26
e - menus - fix submenu popup direction when zones are not at 0 y
2015-02-25 15:55:08 +09:00
Carsten Haitzler
03c53655ce
e - menus - fix autoscroll on zones not at 0 y...
2015-02-25 15:31:00 +09:00
Bryce Harrington
89dbb9bd27
cosmetic: Whitespace cleanup of wayland client files
...
Summary:
cosmetic: Cleanup whitespace for wayland compositor
There is excess trailing whitespace in several of the files for the
wayland implementation. These patches attempt to apply the spacing
rules for Enlightenment as documented at:
https://phab.enlightenment.org/w/coding_convention/
The whitespace rules are applied using the following emacs tabbing
settings:
(defun start-efl-c-mode ()
"C mode with adjusted defaults for use with Enlightenment
development."
(interactive)
(c-mode)
(c-set-style "gnu")
(setq tab-width 8)
(setq indent-tabs-mode nil)
(setq c-basic-offset 3)
(setq defun-block-intro 3)
(setq statement-block-intro 3)
(setq case-label 1)
(setq statement-case-intro 3)
)
This patchset also eliminates all tabs in favor of whitespace, as per
the coding style rules.
Reviewers: zmike, cedric, devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2048
2015-02-24 17:34:20 -05:00
Chris Michael
e8d0ac4f2d
append E_Comp_Wl_Output to compositor's output list during output_init
...
call
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-24 15:27:48 -05:00
Chris Michael
e36d2f5235
don't remove E_Comp_Wl_Output on unbind as this Could lead to nasty
...
crashes if a second client tries to bind wl_output
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-24 15:17:07 -05:00
Derek Foreman
1da3aa24dd
Fix wl_output tracking in wayland compositor
...
Summary:
We should keep a list of resources per output to propagate wl_output
changes to each client that bound an output.
The output list now contains all outputs, not just bound ones.
Reviewers: devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2047
2015-02-24 15:10:37 -05:00
Bryce Harrington
40998b8a6e
Code cleanup and check for OOM condition with wl_array_add
...
Summary:
wayland: Check wl_array_add return for OOM condition
cosmetic: Make error return check syntax consistent with rest of code
wayland: Reuse use_adj to track child-forced adjust
wayland: Refactor to collapse if chain
wayland: Refactor _e_comp_wl_client_priority_adjust to collapse if chain
+ This uses early returns to unwrap a couple if clauses to make the code a bit less nesty.
wayland: Refactor if statements for consistency with rest of file
Reviewers: cedric, zmike, devilhorns
Subscribers: devilhorns, cedric
Differential Revision: https://phab.enlightenment.org/D2034
2015-02-24 14:47:56 -05:00
Chris Michael
a8eb773752
Fix T2131 (crash when creating wl_outputs)
...
This fixes the crash and creates outputs based on e_randr
configuration (when in wayland-client mode).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-24 13:25:22 -05:00
Chris Michael
be6c62eb34
add E_Comp_Wl_Output structure and function prototype to create outputs
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-24 13:24:56 -05:00
Carsten Haitzler
c28e58284a
efm - make dir listing far faster - no file magic content and dont sync
...
this speed sup dir listing in efm drastically. first the e fm back end
uses an io thread that just spools through everything fast and sends
it over the mainloop to then send by ipc to e.
and on the e side we no longer use the heavy file internal magic using
api calls that wander all over a file for magic numbers - this is
insanely slow and brings listing to a crawl.
2015-02-24 18:36:31 +09:00
Mike Blumenkrantz
7d5d2c83d1
don't clamp bgpreview vsize if bgpreview is a fullscreen overlay
2015-02-23 17:31:52 -05:00
Mike Blumenkrantz
1a011b0fd5
fix dialog sizing when icon setting fails
2015-02-23 16:48:09 -05:00
Carsten Haitzler
7faf6666e5
e - actions - smart suspend/hibernate - also dont do when on mains power
2015-02-23 12:11:50 +09:00
Carsten Haitzler
e60889981e
randr2 - handle missing clone src and walk back config only structs
2015-02-23 12:11:46 +09:00
Mike Blumenkrantz
9dee41f1a3
do not reapply focus on canvas object ungrab/close for pointer-focus enthusiasts
2015-02-20 09:55:20 -05:00
Chris Michael
8e6d512076
change output_bind function name
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-19 17:02:46 -05:00
Chris Michael
6458ac3f8e
fix some formatting ugliness
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-19 17:02:04 -05:00
Chris Michael
2d4db291d2
fix compiler warning about pointer targets differ in signedness
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-19 17:00:24 -05:00
Derek Foreman
4276b3ac55
Provide wl_output interface to clients
...
Reviewers: devilhorns, zmike
Reviewed By: devilhorns, zmike
Subscribers: cedric
Maniphest Tasks: T2131
Differential Revision: https://phab.enlightenment.org/D2007
2015-02-19 14:49:01 -05:00
Mike Blumenkrantz
23c4d42e4c
rename extremely frustratingly-named E_Screen_Limits enum and members
...
this came in a patch that I take full responsibility for not adequately reviewing at the time.
the names are confusing and counterintuitive, and it does not properly include the client namespace.
2015-02-18 18:34:29 -05:00
Mike Blumenkrantz
1f21efd911
clamp client size to screen when client limit policy does not allow offscreen
...
fix T1779
2015-02-18 18:26:16 -05:00
Mike Blumenkrantz
baa9cfeac1
don't send unfocused signal to override clients
...
fix T2099
2015-02-18 16:35:10 -05:00
Mike Blumenkrantz
7b53d6b19c
use direct path for setting icons in util theme set function when icon is a path
...
fix T1888
2015-02-18 16:14:09 -05:00
Tom Hacohen
86654c86f8
Allow building without ptrace
...
Summary: Building without ptrace (on OSes which do not support it, like OpenBSD) did not work, because the fallback code had small typos.
Reviewers: devilhorns
Projects: #enlightenment-git
Differential Revision: https://phab.enlightenment.org/D1990
2015-02-18 12:36:20 +00:00
Mike Blumenkrantz
fbad4c7fd8
block linear desk flips that would wrap if desk flip wrapping is disabled
...
fix T1948
2015-02-17 18:54:39 -05:00
Mike Blumenkrantz
1a4be248fe
don't revert X focus during nocomp
2015-02-17 18:42:47 -05:00
Mike Blumenkrantz
6e504751b1
revert some comp object debugging bits that snuck into another commit
2015-02-17 17:21:37 -05:00
Chris Michael
0094ba4bf7
enlightenment: Fix building for wayland-only
...
We don't have e_randr2 calls for wayland yet, so ifdef those out if we
are building for wayland only
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-17 10:46:19 -05:00
Vincent Torri
f31ed5bcb1
add MIN define for non-linux systems
2015-02-15 17:54:10 -05:00
Carsten Haitzler
c37a55d573
actions - add smart suspend + hibernate actions for laptop usage
...
this adds 2 actions that only suspend a laptop (or hibernate) if there
are no external screens enabled. if there is no lid screen eg like a
desktop, then it will still go on as usual.
2015-02-15 10:53:54 +09:00
Mike Blumenkrantz
1d069ab3b6
add ctrl+alt+backspace to kill wl-only e
...
#barrel
2015-02-13 16:40:14 -05:00
Mike Blumenkrantz
1301453fa4
only reject client mouse out for X clients
...
not sure this is still applicable since systray xembeds are gone
2015-02-13 16:24:24 -05:00
Mike Blumenkrantz
62328e0c90
remove wl override clients from focus stack
...
no more client cursor clients in winlist hoorayyyyy
2015-02-13 15:48:00 -05:00
Mike Blumenkrantz
e2b02d07d5
add first YOLO: e_client_focus_stack_set()
...
to quote ecore docs:
DO NOT use this function unless you are the person God comes to ask for
advice when He has trouble managing the Universe.
2015-02-13 15:46:52 -05:00
Mike Blumenkrantz
0af86790b4
add YOLO define to throw a compile warning for Extremely Dangerous Functions
...
a deprecated warning isn't ideal, but at least maybe someone will look at why there's a warning
2015-02-13 15:46:04 -05:00
Mike Blumenkrantz
23aad426aa
remove some futile attempts at variable setting in wl client new hook
...
none of these attrs are available at this point so the client attrs can't be set
2015-02-13 15:17:48 -05:00
Mike Blumenkrantz
00475b8be8
prevent client cursor clients from receiving focus
2015-02-13 15:11:43 -05:00
Mike Blumenkrantz
a1af6fbdce
remove unused var
2015-02-13 15:11:33 -05:00
Derek Foreman
4b98489019
Conditionally ignore wayland cursor set events
...
Wayland cursor set events should be ignored if the client sending them
doesn't own the surface the pointer is currently in.
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
2015-02-13 13:47:38 -05:00
Carsten Haitzler
054adb6351
e - randr - handle missing relative display and use priority for zone
...
this makes highest priority screen the lowest (0) zone. this also
handles missing screesn that you are relative "of". missing clones are
not working atm. also zone reconfigure moves windows now too
2015-02-13 19:24:31 +09:00
Mike Blumenkrantz
67bbd1fe03
manage client pointer client hidden states when changing pointer cursor objects
...
fixes sticky cursors
2015-02-12 20:07:35 -05:00
Mike Blumenkrantz
9a6cddf91f
don't clear wl surface input tiler during commit
...
this broke input regions for successive frames
2015-02-12 19:30:21 -05:00
Mike Blumenkrantz
fdeedef7fe
add E_Client->mouse.in for determining mouse-in status
2015-02-12 16:18:46 -05:00
Mike Blumenkrantz
e34548db01
remove unused E_Client->input_object
...
this is a relic from E18
2015-02-12 16:17:50 -05:00
Mike Blumenkrantz
5846e0febe
unset wl client placed value on first commit to force placement
...
many clients still have not had a first commit prior to running new_client placement,
so this will force a second run of that algo to prevent placing as though a client's
size = 1x1
2015-02-11 17:58:27 -05:00
Mike Blumenkrantz
aca462cb8c
don't add wl evas callbacks multiple times
...
#sigh
2015-02-11 17:22:55 -05:00
Mike Blumenkrantz
6bf43fa081
don't use garbage values for new_client wl surface configures
2015-02-11 17:20:03 -05:00
Mike Blumenkrantz
9a82f7bcb0
reapply accurate ec->placed value for wl clients during surface commit configure
...
fixes client placement when client has not been placed prior to first commit
2015-02-11 17:14:28 -05:00
Mike Blumenkrantz
e1e711ce53
use pixmap size for wl subsurface commit configure
2015-02-11 17:08:06 -05:00
Mike Blumenkrantz
491825c05f
move map before configure for wl clients during commit
...
this ensures visibility is set correctly before attempting to set geometry
2015-02-11 17:02:01 -05:00
Mike Blumenkrantz
5ecc0ca0a1
use accurate xy coords for wl surface configures
2015-02-11 17:00:28 -05:00
Mike Blumenkrantz
77da958137
remove nonsensical wl client finding code
...
if the pixmap has no client set, no client exists for the pixmap
2015-02-11 16:23:07 -05:00
Mike Blumenkrantz
9006bb61e5
set wl client keyboard focus on evas focus and commit
...
ensure that focus is applied even if there is no new frame
2015-02-11 11:51:39 -05:00
Carsten Haitzler
adf5b5dc84
e - remove earns from randr2
...
for wahetever reason i dont get warnings from gcc:
-Wno-shadow -Wno-unused-but-set-parameter -Wno-clobbered -W -Wall -Wextra
are the warning flags i get and i simplt dont get a tonne like using
uninitialized var. don't know why.
2015-02-11 21:45:39 +09:00
Carsten Haitzler
da7bb6e9a1
shut up shadow warnings
2015-02-11 12:28:29 +09:00
Carsten Haitzler
956aac9341
e - fix build. build break!
2015-02-11 10:47:02 +09:00
Mike Blumenkrantz
4d80185e69
send wl keyboard enter during commit
...
in some cases this was happening before the kbd resource was available; this guarantees that it will be
2015-02-10 19:17:50 -05:00
Mike Blumenkrantz
c4ba0f5242
setup evas callbacks for wl clients during commit
...
this was happening way too late and breaking some clients
2015-02-10 19:17:11 -05:00
Mike Blumenkrantz
c9a839ad64
unset wl client cursor when no surface resource is passed
...
this is probably not correct, but #barrel
2015-02-10 19:15:53 -05:00
Mike Blumenkrantz
e3efba7ff7
set take_focus more appropriately for wl clients
2015-02-10 19:15:22 -05:00
Mike Blumenkrantz
fff95929c6
apply client focus glow based on opaque region
2015-02-10 18:08:39 -05:00
Mike Blumenkrantz
d97c6b04bb
redo pixmap image border to take xywh instead of lrtb
...
client size is not set by the time opacity is set so it's necessary to store the full rect
2015-02-10 18:07:41 -05:00
Mike Blumenkrantz
090261bc1b
don't add rect for entire screen on wl region create
2015-02-10 17:30:05 -05:00
Mike Blumenkrantz
362a505567
set client image borders even when 0
...
opaque region can be reset to nonexistent
2015-02-10 16:40:12 -05:00
Chris Michael
1c5e71bffc
fix e_pixmap compile for non-wayland usecase
...
pixmap->border is only defined if we have some wayland support. Not
used in X11.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-10 12:41:27 -05:00
Mike Blumenkrantz
7e422ed0c2
remove wl opaque tilers, just set border in opaque callback
2015-02-09 21:27:53 -05:00
Mike Blumenkrantz
ce062750b6
set pixmap image borders for wayland clients
2015-02-09 21:16:40 -05:00
Mike Blumenkrantz
b0ef692817
handle image borders during client rendering
2015-02-09 21:14:18 -05:00
Mike Blumenkrantz
06defb7f94
fix wl input region setting
2015-02-09 21:14:18 -05:00
Mike Blumenkrantz
d54d6640e8
don't set client shape rects based on wl opaque regions
2015-02-09 21:14:18 -05:00
Mike Blumenkrantz
536342c085
add pixmap image border functions
2015-02-09 21:14:15 -05:00
Mike Blumenkrantz
bce8470cef
correctly set/update wl opaque regions
2015-02-09 20:44:01 -05:00
Mike Blumenkrantz
1bf6603baa
force wl client cursor clients to hide when unset from pointer
2015-02-09 14:35:37 -05:00
Mike Blumenkrantz
f39630fc8c
use unixtime instead of loop time for wl frame callback done
2015-02-09 14:17:44 -05:00
Mike Blumenkrantz
ee530798f0
replace all occurrences of cursor setting with calls to pointer util function
2015-02-09 12:24:48 -05:00
Mike Blumenkrantz
2a1525bdb0
add pointer util function for changing cursor object without deleting it
2015-02-09 12:24:48 -05:00
Carsten Haitzler
790183d74a
e - randr - laptop lids - handle plug/unplug and well as lid open/close
...
this fixes some issues in the new randr2 code that made it not work
right with plug/unplug and lid close/open. now it does work right and
plugging/unplugging displays is seamless (if your driver does not give
plug/unplug events bind a key to update screen config acvtion and e
will figure it out when you hit the key).
2015-02-09 18:22:02 +09:00
Chris Michael
3dff7d4dad
enlightenment: Fix 'type' may be used uninitialized message
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-07 11:18:45 -05:00
Carsten Haitzler
7f76e3b9f3
elm accel pref config - fix to use correct api to set accel pref
2015-02-07 13:23:34 +09:00
Carsten Haitzler
413ca8046e
e - fix build when wayland not enabled
2015-02-07 12:30:19 +09:00
Mike Blumenkrantz
903b9beaed
implement wl client cursor support...as clients
...
<zmike> super funny idea: for client cursors, what if we just implement them as an override client with no animations and then hide the canvas cursor while the client is visible?
this started as a joke and it worked mostly fine so I improved it and now it's shipping and whatdoidowithallthesebugs.jpg
2015-02-06 18:32:07 -05:00
Mike Blumenkrantz
8399ec5d6f
configure/show/hide surfaces which lack shells automatically
2015-02-06 18:32:07 -05:00
Mike Blumenkrantz
b720b7c179
use pixmap size for resizes in wl commit
...
the client size should be this anyway, but we just refreshed the pixmap above so this is guaranteed to be accurate
2015-02-06 18:32:07 -05:00
Mike Blumenkrantz
270bc92f81
add wl util function for calculating pixmap id
2015-02-06 18:32:07 -05:00
Carsten Haitzler
5d2426cdda
e - client list update after adding to client list - fix netwm bug
...
this fixes T2029
2015-02-06 17:58:08 +09:00
Carsten Haitzler
6ef73fb3f0
adapt to new win center trap in 1.13 efl
...
also require 1.13 now as we want he win trap h/v info
2015-02-06 11:37:52 +09:00
Mike Blumenkrantz
ea230eeaf5
remove pixmap resource delete cb
...
this was a stupid idea and I'm stupid for having such a stupid iea
2015-02-05 17:13:44 -05:00
Mike Blumenkrantz
e7fcba8e8f
clear wl pixmap cache on client free instead of leaking
2015-02-05 16:32:10 -05:00
Mike Blumenkrantz
a19957d3eb
move wl pixmap stuff to use pixmap functions in compositor instead of in pixmap
2015-02-05 16:32:10 -05:00
Carsten Haitzler
c87ca3e892
maximization bug affecting libreoffice and others - fix
...
the problem is something changes window gravity... what i don't know,
but hey - just forcibly move window to 0,0 which is where we expect it
anyway when resizing.
@fix
2015-02-05 14:41:12 +09:00
Carsten Haitzler
fa4a0ef7cc
xinerama note for multiscreen handling
2015-02-05 12:00:36 +09:00
Carsten Haitzler
91969500de
e - randr2 - handle lid close/open as screen unplug/plug
...
when your laptop lid opens/closes even if we dont get a randr event
with a disconnect, the screen as logically been unplugged (you can't
see it anymore) so we should treat it as if the screen is not
connected. this fixes that.
2015-02-05 12:00:36 +09:00
Chris Michael
931409c687
only send key events to focused clients
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-04 11:59:19 -05:00
Mike Blumenkrantz
7f2b83c8d9
remove unnecessary comp work in wl pixmap functionality
...
these are all basically no-ops anyway
2015-02-03 19:44:06 -05:00
Chris Michael
00b609ac12
cleanup xkb state modifiers and only update state_mask if necessary
...
NB: *These 2 commits fix Mike's modifier issue
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-03 15:37:11 -05:00
Chris Michael
0690b8debe
change keyboard input listeners to Not depend on a client but rather
...
use ecore_event_handlers for key events.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-03 15:37:11 -05:00
Chris Michael
96dd7324f8
add a mod_changed field to compositor data so we can know when
...
modifiers change
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-03 15:37:11 -05:00
Chris Michael
3be57f67ba
quiet compiler warnings when building for wayland-only
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-03 10:58:13 -05:00
Chris Michael
c66f43593d
de-e_comp_get()-ify e_utils
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-03 10:35:08 -05:00
Mike Blumenkrantz
256378577c
Revert "ref/free client pixmaps during hide animations"
...
This reverts commit bbb04ecb32
.
also fixed by deferred resource releasing
2015-02-02 17:40:11 -05:00
Mike Blumenkrantz
bc59464f99
make wl clients use post render canvas cb to clear buffers
2015-02-02 16:45:18 -05:00
Mike Blumenkrantz
66e4c59764
hide wl clients on surface delete
...
surface callbacks may not trigger xdg/shell unmap callbacks before this is called, so this ensures a hide animation
2015-02-02 13:39:32 -05:00
Mike Blumenkrantz
bbb04ecb32
ref/free client pixmaps during hide animations
...
replaces wl client crashing with a garbage frame
2015-02-02 13:38:48 -05:00
Mike Blumenkrantz
1f608490c8
make comp param in e_client_new unused
2015-02-02 12:42:43 -05:00
Mike Blumenkrantz
8d5ab29625
don't create wl clients as re_manage
2015-02-02 12:41:39 -05:00
Chris Michael
b02439c14d
Revert "reset keyboard modifiers when client is deleted"
...
This reverts commit b9f4b257d7
.
Revert this quick fix as apparently it did not actually fix the problem.
2015-02-02 12:31:09 -05:00
Chris Michael
b9f4b257d7
reset keyboard modifiers when client is deleted
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-02 12:27:40 -05:00
Mike Blumenkrantz
44229f20bd
clean up comp object to not use deprecated comp functions
2015-02-02 12:12:12 -05:00
Chris Michael
1e77df57a8
cleanup keymap properly on shutdown(fixes E restart issue).
...
nb: this also adds checking for setting of fd flags when we get the
keymap fd.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-02 12:01:53 -05:00
Mike Blumenkrantz
d9fec13343
don't hide client before delete in win del trap
2015-02-01 19:05:21 -05:00
Mike Blumenkrantz
ae7976bdc8
delete all clients in wl delete request cb
...
this was doing weird stuff for some reason when it should just be deleting all clients
2015-02-01 19:05:21 -05:00
Mike Blumenkrantz
566591581b
don't crash in stupid e_module dialog hack
2015-01-30 15:49:15 -05:00
Mike Blumenkrantz
4aa4c64508
ensure no duplicate XDG paths are prepended during startup
...
the previous patch(es) had a number of issues which made them unsuitable for general use:
* only checking "/usr" and "/usr/local" paths, despite this only being accurate if e was installed into /usr or /usr/local
* only checking if the paths were at the beginning of the string, when it's possible that they could be anywhere
* failure to also check XDG_CONFIG_DIRS
* improper formatting: this is a bit of a nitpick, but there are no correct instances of 'strcmp(a, b) == 0' in the e codebase.
2015-01-29 16:01:25 -05:00
Mike Blumenkrantz
fbde0824d1
Revert "Do not add /usr/share twice for XDG_DATA_DIRS"
...
This reverts commit e3eda1d690
.
hardcoding directory paths is not a solution that I want to see used for this issue.
2015-01-29 12:43:20 -05:00
Mike Blumenkrantz
9f36dc1b43
Revert "Include /usr/local too in the no-duplication of XDG_DATA_DIRS"
...
This reverts commit ae3410a0ba
.
2015-01-29 12:43:14 -05:00
Chris Michael
323f41122e
pass the proper window to ecore_wl functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-29 10:15:36 -05:00
Chris Michael
6f2f7c0e94
fix copy/paste errors
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-29 10:12:08 -05:00
Chris Michael
a889f55c34
start making e_grabinput work for wayland (nb: not finished yet)
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-29 09:54:43 -05:00
Chris Michael
b42e70c73a
fix e_pointer using incorrect comp variable
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-29 09:28:28 -05:00
Thanatermesis
ae3410a0ba
Include /usr/local too in the no-duplication of XDG_DATA_DIRS
...
@fix and improves the previous fix
(cherry picked from commit e0dcab584b
)
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2015-01-29 08:30:14 -04:00
Thanatermesis
e3eda1d690
Do not add /usr/share twice for XDG_DATA_DIRS
...
This commit @fix a duplicated entry in XDG_DATA_DIRS which is also
added prematurely, if eina_prefix_get is already /usr (most of the
times) we dont want to add it here
(cherry picked from commit f42f5f1cfe
)
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2015-01-29 08:30:04 -04:00
Mike Blumenkrantz
1680de7ff2
use new pixmap id for internal wl wins
2015-01-28 17:34:05 -05:00
Mike Blumenkrantz
7a0ea605e6
move wl pixmap creation back to comp
...
after further consideration, this seems much simpler
2015-01-28 17:31:40 -05:00
Mike Blumenkrantz
2a51535fc0
Revert "move wl pixmap creation into shell, fix pixmap id usage"
...
This reverts commit c1a93d893e
.
2015-01-28 17:29:17 -05:00
Mike Blumenkrantz
c1a93d893e
move wl pixmap creation into shell, fix pixmap id usage
...
using raw surface id here guarantees overlap between surfaces for different apps. instead, shift and add app pid to ensure uniqueness
#barrel
2015-01-28 17:04:59 -05:00
Chris Michael
4b992e38fd
de-e_comp_get()-ify e_randr2
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 14:35:45 -05:00
Chris Michael
dea5981c2f
de-e_comp_get()-ify e_zone
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 14:35:19 -05:00
Chris Michael
2cdd022b1b
de-e_comp_get()-ify widget_bgpreview
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 14:34:39 -05:00
Chris Michael
efd406edab
make e_scale get the dpi for wayland also
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 12:53:12 -05:00
Chris Michael
9e2d4c85c3
de-e_comp_get()-ify e_scale
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 12:52:13 -05:00
Chris Michael
cdebd483ef
de-e_comp_get()-ify e_pointer
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 12:51:35 -05:00
Chris Michael
4773f4cd12
de-e_comp_get()-ify e_gadcon_popup
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 12:49:28 -05:00
Chris Michael
0c4f3ff48e
de-e_comp_get()-ify gadcon
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 12:48:50 -05:00
Chris Michael
5ec2c7f7a6
de-e_comp_get()-ify grab dialog
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-27 12:48:15 -05:00
Chris Michael
c024e4bc17
add EINA_UNUSED for unused function paramater
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26 14:54:55 -05:00
Chris Michael
bf8fde1948
make desklock timeouts work in wayland-only. Fixes T1818
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26 14:52:03 -05:00
Chris Michael
e647105421
add function to return input idle time in wayland compositor
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26 14:50:58 -05:00
Chris Michael
c6a5f9448c
add function prototype for getting idle time
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26 14:48:47 -05:00
Chris Michael
3d9e6cd934
remove unused inline function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26 09:28:14 -05:00
Chris Michael
56da400c39
make enlightenment build again for wayland-only
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26 08:54:38 -05:00
Carsten Haitzler
33d4531f1d
e - rewrite randr code entirely. core and dialog. dialog is basic atm
...
the dialog for now is simple and lets you just raw edit the properties
per screen in a dialog. nothing fancy. not user firendly. but it works.
the randr core has been totally rewritten and tested against a range
of drivers and setups before even getting a commit. it works solidly
and configures screens reliably now. drivers tested:
nvidia
intel
radeon
some drivers still are unreliable in terms of delivering plug/unplug
events for outputs (both intel and radeon are flakey - nvidia is solid
and reliable). so to fix this there is now a screen redo action you
can bind to a hotkey or something and have e re-evaluate current
screen setup and apply ny pending config if needed.
also to make reconfiguring prettier the screen is faded to black
first, then configured, then faded back in. some drivers work
flawlessly with this, others still flicker some garbage.
i admit - i haven't tested nouveau, but my general take on this is the
randr code is now in far better shape than where it was (minus pretty
and easy dialog). the dialog can be done next, but i'd like to get the
core in now for more testing.
@fix
2015-01-25 22:50:23 +09:00
Carsten Haitzler
ab975cc349
e - fix e widgets to use evas size hints - this unifies sizing elm vs e
2015-01-25 22:50:23 +09:00
Mike Blumenkrantz
b0a9d64000
allow client pixmap size to be used in place of actual client geom for tiler creation
2015-01-23 17:20:52 -05:00
Mike Blumenkrantz
a5c00bfb2b
defer client frame resizes if client is not protocol-visible
2015-01-23 17:20:14 -05:00
Mike Blumenkrantz
d94a76db15
preserve internal window borderless state when set prior to showing window
2015-01-23 16:22:14 -05:00
Chris Michael
432b76390b
de-e_comp_get()ify e_moveresize
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-23 14:35:37 -05:00
Chris Michael
93ad6ba544
de-e_comp_get()ify e_int_client_menu
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-23 14:33:20 -05:00
Chris Michael
a71e0e3553
de-e_comp_get()ify e_deskmirror
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-23 14:32:41 -05:00
Chris Michael
4814695439
de-e_comp_get()ify e_desk
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-23 14:32:41 -05:00
Chris Michael
4c42448ffa
de-e_comp_get()ify e_actions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-23 14:32:41 -05:00
Mike Blumenkrantz
363a78a260
continue to hide window input regions on desk flip if they are shaded
2015-01-23 14:26:28 -05:00
Mike Blumenkrantz
03c5915245
force server borders on internal wl wins again
...
this goes back to previous behavior before elm win conversion
2015-01-23 14:10:58 -05:00
Mike Blumenkrantz
665a399b14
de-e_comp_get()ify e_win
2015-01-23 14:10:58 -05:00
Stefan Schmidt
baad02c03a
e_screensaver: de-e_comp_get()ify
2015-01-23 13:49:54 +01:00
Stefan Schmidt
38b8ba509b
e_notification: de-e_comp_get()ify
2015-01-23 13:49:09 +01:00
Stefan Schmidt
56de1002ec
e_mouse: de-e_comp_get()ify
2015-01-23 13:44:43 +01:00
Stefan Schmidt
c66b402322
e_module: de-e_comp_get()ify
2015-01-23 13:43:40 +01:00
Stefan Schmidt
eccf163aa8
e_main: de-e_comp_get()ify
2015-01-23 13:43:07 +01:00
Stefan Schmidt
fe024b561b
e_dpms: de-e_comp_get()ify
2015-01-23 13:42:01 +01:00
Stefan Schmidt
c100027f20
e_configure: de-e_comp_get()ify
2015-01-23 13:40:45 +01:00
Stefan Schmidt
8c60f2e02c
e_bindings: de-e_comp_get()ify
2015-01-23 13:38:28 +01:00
Stefan Schmidt
f64b07bb8e
e_backlight: de-e_comp_get()ify
2015-01-23 13:37:59 +01:00
Stefan Schmidt
1997034465
e_sys: Make sure we return false if systemd does not support various suspend modes
...
Since this was introduced this callback always returned 1 no matter if systemd
said it does support the mode or not.
CID: 1261291
2015-01-23 13:22:59 +01:00
Mike Blumenkrantz
30f17c5680
remove no longer necessary setting of changes.size on client resize
...
this is unnecessary since we resize on every necessary frame anyway
2015-01-22 23:03:38 -05:00
Mike Blumenkrantz
847ce5b0d5
never uncenter a centered internal window
...
a window which has received a call to elm_win_center() can now never auto-uncenter in either axis
ref T2031
2015-01-22 22:39:46 -05:00
Mike Blumenkrantz
b89868cc65
fix comp cfdlg sizing and centering
2015-01-22 22:39:27 -05:00
Mike Blumenkrantz
3e5b2ba96a
move more grabinput code to not fail in wl
...
#barrel
2015-01-22 15:45:16 -05:00
Mike Blumenkrantz
5e5a533a6d
move grabinput focus fix timer to be X-only
2015-01-22 15:30:25 -05:00
Mike Blumenkrantz
ba684aacd3
de-e_comp_get()ify e_dnd
2015-01-22 14:59:25 -05:00
kabeer khan
7bfef8a6f5
Release list of touch resources when input is shutdown
...
Summary:
Resolved TODO to release list of touch resources in e_comp_wl_input_shutdown
Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1884
2015-01-22 09:15:07 -05:00
Mike Blumenkrantz
0d82fcf71c
remove e_comp_get() use in grabinput
2015-01-20 19:20:07 -05:00
Mike Blumenkrantz
f8d846e0c9
set client frame geometry for new internal wins based on ee geometry
2015-01-20 19:20:07 -05:00
Mike Blumenkrantz
f691a8fa18
fix elm box parenting
2015-01-20 19:20:04 -05:00
Mike Blumenkrantz
017c2f4d45
reenable elm log domain
2015-01-20 19:19:57 -05:00
Chris Michael
3520cd5803
add fixme note about desklock timeouts not working in wayland
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-16 14:44:23 -05:00
Carsten Haitzler
fe892a3ce0
comp base - make base black. makes for better screenshots of blank areas
2015-01-16 17:50:34 +09:00
Mike Blumenkrantz
39d59f5295
don't set deskmirror scale for non-mb objects
2015-01-15 17:17:39 -05:00
Mike Blumenkrantz
aa2c7709ec
fix edje usage in e_dialog
2015-01-15 17:08:50 -05:00
Mike Blumenkrantz
3cad1466d2
convert e_dialog text object to elm_layout
2015-01-15 17:08:41 -05:00
Mike Blumenkrantz
45900d1b43
give csel entries 3 columns to force visibility
2015-01-15 16:48:19 -05:00
Mike Blumenkrantz
bd536e6e99
use changed,user entry scb for widget change to prevent infinite looping
...
fix T2004
2015-01-15 16:48:19 -05:00
Mike Blumenkrantz
0d2b7197e0
fix edje usage in frametable
2015-01-15 16:48:19 -05:00
Mike Blumenkrantz
1024480bad
improve gadcon popup sizing/positioning
2015-01-15 12:06:08 -05:00
Carsten Haitzler
ee40261cf7
e - gadcon popup - handle delection of content object properly
...
this fixes a popup crash nicely
2015-01-15 21:09:01 +09:00
Mike Blumenkrantz
74bc0435b6
remove unnecessary filepreview size hinting
2015-01-15 03:05:20 -05:00
Mike Blumenkrantz
3fe721b521
enforce min width for filepreview attr entries
2015-01-15 03:05:20 -05:00
Mike Blumenkrantz
aee82c9123
e_dialog -> elm_layout for bg_object
...
sizing++
2015-01-15 03:05:20 -05:00
Mike Blumenkrantz
f6fa99eb5f
only set internal win name/class if not already set
2015-01-15 03:05:20 -05:00
Mike Blumenkrantz
f43819c49b
remove widget subobj delete callback on widget delete
2015-01-15 03:05:20 -05:00
Mike Blumenkrantz
b98c1a44f2
don't update widget size hints on resize add if hints already exist
2015-01-15 03:05:20 -05:00
Mike Blumenkrantz
3fc96af2dd
Revert "revert all the ui breakes in e - going the wrong direction in the"
...
This reverts commit 3ea6a3569d
.
2015-01-15 03:04:42 -05:00
Carsten Haitzler
3ea6a3569d
revert all the ui breakes in e - going the wrong direction in the
...
first place anyway. shoudl replace the entire dialgo one at a time by
an elm version not try and stuff elm widgets into where e widgets used
to be. this doesnt improve e's config dialogs, just makes them buggy
as all hell in the name of a move to elm.
Revert "e_widget_button -> elm_button conversion"
This reverts commit b1c976d80d
.
Revert "update widget size hints when setting a resize object"
This reverts commit fdab0218b2
.
Revert "remove no-longer-necessary size hinting in list widgets"
This reverts commit 21479f5019
.
Revert "e_widget_textblock -> elm_entry conversion"
This reverts commit 8fe2f00f75
.
Revert "e frame -> elm_frame conversion"
This reverts commit e9da6a02fc
.
Revert "remove unnecessary size hinting"
This reverts commit b596623efd
.
Revert "e_label -> elm_label conversion"
This reverts commit 049b318679
.
Revert "set evas size hint min in widget min size"
This reverts commit 2f09aa2fda
.
Revert "e_table -> elm_table conversion"
This reverts commit 6434012982
.
Revert "remove unused vars"
This reverts commit b19e706b23
.
2015-01-15 12:13:53 +09:00
Mike Blumenkrantz
c8d58b30f3
de-e_comp_get()ify e_menu
2015-01-14 20:48:29 -05:00