Mike Blumenkrantz
e717a2e107
fix nocomp popping on comp input ungrabbing
...
regression from e24666b929
2015-05-18 13:20:35 -04:00
Boram Park
5c46de06c6
e_comp_wl: fix not sending a mouse enter event to client.
...
Summary:
First of all, currently cdata->ptr.x,y contains e_client related pos.
But, cdata is owned by e_comp, not per e_client. So cdata->ptr.x,y should contain
absolute pos.
And, when a pointer resource is created, enter event should be sent to client.
Change-Id: I21cb031e293fe281e35ba89f3a96116a28a48856
Signed-off-by: Boram Park <boram1288.park@samsung.com>
Test Plan:
1. run e as wayland server
2. move cursor to around 50,50
3. run elementary_test
4. click the mouse left button on slide toggle widget.
(Don't move a cursor out of elementary_test. If you do, you can't find bug)
Reviewers: gwanglim, raster, devilhorns, ManMower, zmike
Reviewed By: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2330
2015-05-18 11:53:05 -04:00
Chris Michael
a2d22437fd
fix call to e_comp_wl_input_keymap_set for building with
...
wayland-client support
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 11:48:31 -04:00
Chris Michael
77d5882aa8
remove cpp warning
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 11:42:51 -04:00
Chris Michael
41a120eafe
ELM_WIN_DIALOG_BASIC is broken in wl right now, so for wl create
...
normal elm windows for now.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 11:32:09 -04:00
Chris Michael
59c737dd28
remove unused variable
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 09:24:01 -04:00
Chris Michael
ea26fc1f87
add missing EINA_UNUSED for function paramater
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 09:22:39 -04:00
Chris Michael
379ea5b2f0
Fix call to e_comp_wl_input_keymap_set
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 09:21:03 -04:00
Chris Michael
646db93b53
add missing EINA_UNUSED for function paramater
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-18 09:20:16 -04:00
Derek Foreman
7f6f4b6966
wayland: Remove a lot of E_Comp_Data pointers
...
Summary: We should just use e_comp->wl_comp_data everywhere we can.
Reviewers: devilhorns, zmike
Reviewed By: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2507
2015-05-18 09:08:52 -04:00
MinJeong Kim
20871a1e8f
e_menu: remove an unnecessary comparison
...
Summary:
Remove an unnecessary comparison.
It fixes coverity CID 1291841 Same on both sides.
@fix
Reviewers: raster, devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2523
2015-05-18 08:36:09 -04:00
Derek Foreman
e1c9bfa619
wayland-compositor: Set server mode
...
Summary:
If we don't set server mode we can deadlock when trying to use functions
that way for server mode to become set.
This can currently cause a startup freeze in e_scale_init().
Reviewers: zmike, devilhorns
Reviewed By: devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2520
2015-05-15 14:44:21 -04:00
Nicolas Marcotte
3e3dc6dcc5
added a macro and a fucntion to switch to desktop D on screen S as specified in https://phab.enlightenment.org/T2218
...
Summary: Merge branch 'master' of https://git.enlightenment.org/core/enlightenment initnal implementation of https://phab.enlightenment.org/T2218
Reviewers: raster
Subscribers: raster, cedric
Differential Revision: https://phab.enlightenment.org/D2231
Fixed:
Modified patch to use existing macros for walking all screens.
2015-05-15 16:13:13 +09:00
Chris Michael
40b877f527
wl-drm: Don't enable/disable an output until after we have set the current mode
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-14 08:38:13 -04:00
Chris Michael
fd2e05f715
drm randr: More work on getting RandR functional in E-Wl. This adds a
...
function to remove an output from e_comp_wl also.
NB: Not entirely complete yet
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13 14:50:40 -04:00
Chris Michael
baac769b0f
conf_randr: Reduce debug output noise
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13 14:50:40 -04:00
Chris Michael
829c9ffc73
wl-desktop-shell: Quiet debug output
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13 14:50:40 -04:00
Chris Michael
ab9abcb598
remove unused 'serial' variable in mulit-move callback
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13 13:20:33 -04:00
Chris Michael
3a15df2454
fix numerous compile errors from D2482
...
NB: Mental Note: COMPILE BEFORE PUSH !!
# butts
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13 12:26:07 -04:00
jhyuni.kang
c59595e964
Support wl_touch and send wl_touch events to client
...
Summary:
Currently enlightenment-wayland support pointer and keyboard events.(in input)
So I added EVAS_CALLBACK_MULTI_* event handler and hanling functions for wl_touch interface.
This code send wl_touch events to client like a pointer event.
Test Plan:
In wayland + enlightenment environment, generate multi touch events.
The enlightenment will be send wl_touch events to client.
Reviewers: raster, devilhorns, zmike
Reviewed By: devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2482
2015-05-13 12:05:57 -04:00
Chris Michael
57fdd5613d
send screen paramaters in proper order to e_comp_wl_output_init
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-13 12:05:17 -04:00
Boram Park
7a078ba99b
e_comp_wl: fix segfault in case parent's surface is destroyed before subsurface is destroyed
...
Summary:
A parent surface can be destroyed. In this case, ec->comp_data->sub.data->parent has
a wrong address which has already destroyed. Then, it occurs segmentation fault.
To avoid segfault, ec->comp_data->sub.data->parent should be NULL when a parent surface
is destroyed.
Signed-off-by: Boram Park <boram1288.park@samsung.com>
Test Plan: Run attached test program(subsurface)
Reviewers: gwanglim, cedric, devilhorns, zmike
Reviewed By: devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2484
2015-05-12 14:43:00 -04:00
Daniel Kolesa
82116f63ab
remove str(n)dupa usages
...
str(n)dupa are GNU extensions that duplicate a string, using an alloca'd
buffer. This patch removes their definitions from e.h (which should only
contain E's own API, without fallback definitions for libc functions)
which were wrong anyway (they failed in cases where str(n)dupa was an
actual function, not a macro).
Instead, we replace them depending on context with alloca+memcpy+strlen
or a static buffer (used in contexts where we are sure that the buffer
will contain the string entirely)
@fix
2015-05-11 16:45:30 +01:00
Yomi
413463d2cd
Fix misspelling in e_client.h
...
Summary: Fix misspelling in e_client.h
Reviewers: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2477
2015-05-07 19:01:05 -04:00
Yomi
aa56794304
Fix misspelling in e_randr2.c
...
Summary: Fix misspelling in e_randr2.c
Reviewers: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2476
2015-05-07 18:41:11 -04:00
Chris Michael
6d2c8c46da
wl-drm: Start on making the RandR config dialog usable in drm
...
NB: 'Apply' does not function yet, needs another API or 2 in ecore_drm
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:44:50 -04:00
Chris Michael
8039ecb9b7
make e_acpi_lid_is_closed function callable from wl_drm module
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:44:22 -04:00
Chris Michael
0a94e8ba71
enlightenment: Make E build again with EFL from git
...
sed -i 's/EAPI/E_API/g'
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-07 15:13:10 -04:00
Chris Michael
93971bb6fc
Fix T2385 : internal windows not showing resize cursor
...
If we are going to set the internal elm windows to borderless and
handle frames inside E, then we need to also unset any existing
pointer objects which may be on the wayland Ecore_Evas.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-05-04 12:40:06 -04:00
Yomi
96ba030edb
Correct misspelling.
...
Summary:
Correct misspelling.
Changes: Fix misspelling in e_desk.c
src/bin/e_desk.c
Reviewers: zmike, raster
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2466
2015-05-03 17:45:17 -04:00
Jean Guyomarc'h
385a06bd02
e_ipc: fix creation of IPC server when $DISPLAY is a path
...
Summary:
Some implementations of the X server (e.g. Xquartz) define their $DISPLAY
as a path. Since ecore_ipc_server_add() does not create non-existant
directories, and since it may not worth to hide the socket in a complex
path, this patch aims at reducing the $DISPLAY by only keeping its basename.
Reviewers: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2465
2015-05-02 10:05:00 -04:00
Mike Blumenkrantz
e9420be020
fix infinite loop when changing ibar sources
...
fix T1951
2015-04-30 17:04:47 -04:00
Mike Blumenkrantz
038df92cdd
only apply fwin focus to main efm object if no icon is editing
2015-04-30 16:06:09 -04:00
Mike Blumenkrantz
9976e1610a
add efm function for getting an editing icon
2015-04-30 16:05:55 -04:00
Mike Blumenkrantz
4dee742079
don't destroy efm icon entry on client focus-in if icon's client is being focused
2015-04-30 16:05:21 -04:00
Mike Blumenkrantz
e24666b929
fix comp input ungrabbing to read more clearly and not pop nocomp wrongly
2015-04-30 14:50:20 -04:00
Mike Blumenkrantz
e1063c196b
prune module config list when loading a module
...
it's somehow possible to get multiple instances of a module in the config.
since I don't know whether this is a current or past problem, prune the list
on every module load to remove subsequent instances of the module
fix T2181
2015-04-30 14:39:28 -04:00
Mike Blumenkrantz
1f9ec6a710
fix notification text to conform to spec and libnotify implementation
...
fix T2053
fix T2187
2015-04-30 14:11:06 -04:00
Mike Blumenkrantz
9887db64e8
try hicolor icon theme as fallback for fdo icon setting if user's theme fails
...
fix T2142
2015-04-30 12:32:31 -04:00
Mike Blumenkrantz
b4e41d52c5
force visibility on clients before attempting to hide them
...
this ensures that edje visibility states get reset in the event of toggling
visibility extremely quickly
probably fixes T2260
2015-04-29 17:21:14 -04:00
Mike Blumenkrantz
719b2baeba
only apply mouse down focus events if a binding did not run on the same event
...
fixes the case of enabling "raise on click" and also having a mouse binding
for "lower on click" active
fix T2364
2015-04-29 17:15:43 -04:00
Mike Blumenkrantz
cb9ab4e1f4
freeze evas events on clients during keyboard move/resize actions
...
fix T2112
2015-04-29 17:02:36 -04:00
Mike Blumenkrantz
a41aa387f3
rename client menu move/resize items to indicate real function
...
ref T2112
2015-04-29 17:02:16 -04:00
Mike Blumenkrantz
2e0bb7dc36
freeze comp object edjes while not hidden
...
requested by cedric
2015-04-29 12:55:42 -04:00
Carsten Haitzler
27cf0d873c
e_place - dont need extrra zone check here anymore
2015-04-28 07:51:35 +09:00
Carsten Haitzler
871fed7493
e_shelf - check visiblity with zone and desk FIRST not later
...
es->cfg->desk_show_mode if false (default) implies a shelf is always
visible - true, as it's sticky (visible on all desktops). but this
didn't check zone. check zone first THEN this.
2015-04-28 07:51:35 +09:00
Mike Blumenkrantz
5db35cd85a
add focus callback to override elm_win being stupid
...
plz elm_win, you can't focus yourself. you aren't a real widget.
2015-04-27 16:03:42 -04:00
Mike Blumenkrantz
505b4551bb
bump modapi version
...
lots of changes lately, may as well force rebuilds
2015-04-27 15:42:28 -04:00
Mike Blumenkrantz
5ae00e6525
redo drop handlers to take an E_Object and Evas_Object
...
temp change to fix crashing when closing fwins with ctrl+w
2015-04-27 15:39:43 -04:00
Mike Blumenkrantz
7c661b54a9
fix evry mouse event detection on wayland
2015-04-27 14:36:42 -04:00
Mike Blumenkrantz
b632afa546
more accurately determine whether a mouse grab is active in some parts of e
2015-04-27 14:32:19 -04:00
Mike Blumenkrantz
0c7ff0b0e9
add comp mouse grab detection function
2015-04-27 14:32:05 -04:00
Mike Blumenkrantz
76eec883b7
add e_grabinput_mouse_win_get()
2015-04-27 14:31:52 -04:00
Mike Blumenkrantz
1d6749e210
only allow efm key actions if key grab does not exist
2015-04-27 14:26:33 -04:00
Mike Blumenkrantz
c7bdf6d992
add comp util function for determining whether the keyboard has been grabbed
2015-04-27 14:21:33 -04:00
Mike Blumenkrantz
ff5b06b79d
fix MANAGER context keybinds to work with rootless compositors
2015-04-27 14:11:05 -04:00
Mike Blumenkrantz
e4298517dd
add internal win trap to set override property on windows
2015-04-27 13:56:56 -04:00
Mike Blumenkrantz
59ea27e819
set internal win icccm name/class/title during win trap show
...
wl clients have no concept of icccm name, so this is the only way to set it
also, setting it here makes it available sooner for other functionalities
2015-04-27 13:55:47 -04:00
Mike Blumenkrantz
0d439345c1
set focus on comp autoclose objects
...
fix T2114
2015-04-27 13:20:52 -04:00
Mike Blumenkrantz
b9c4171ab1
do not pass key events through autoclose handler
2015-04-27 13:04:53 -04:00
Mike Blumenkrantz
ee44d29ebc
ensure client max w/h props are set before applying them to client geom
2015-04-27 12:30:29 -04:00
Carsten Haitzler
969541a93c
e auto-placement - don't include shelves from other screens
...
unbeknownst to anyone e was placing around shelvs on OTHER screens...
this ended up with some .. odd results every now and again.
@fix
2015-04-27 16:54:15 +09:00
Mike Blumenkrantz
bfca0f908c
ensure evry key events do not get erroneously rejected in grab mode
...
ref T2030
2015-04-24 14:58:00 -04:00
Mike Blumenkrantz
fd558491fd
don't set e_comp->root for wl compositors
...
root is the root window. wl compositors do not have root windows.
2015-04-24 14:57:05 -04:00
Mike Blumenkrantz
d0f48e6441
fix comp init failure case
2015-04-24 14:12:51 -04:00
Mike Blumenkrantz
3e50235e5b
fix comp fake layer init for wl compositors
...
fix T2363
2015-04-24 14:12:44 -04:00
Mike Blumenkrantz
a080769d5a
remove rest of ecore-drm usage from wl-drm randr info grabbing
...
this was not an optimal solution since only connected outputs are
tracked/available to ecore-drm, so now the module uses libdrm for everything
2015-04-23 13:47:05 -04:00
Mike Blumenkrantz
1f199f940e
fix wl-drm install rule
2015-04-23 13:37:11 -04:00
Mike Blumenkrantz
9c573a49ac
fix internal win pixmap id int size in show trap
2015-04-23 12:35:22 -04:00
Mike Blumenkrantz
b526ee200e
fix tasks gadget parenting
...
gc->o_container is NULL for desktop gadgets
ref T2336
2015-04-23 08:42:09 -04:00
Mike Blumenkrantz
97a1642222
fix typo when setting event state in e_randr2_screen_refresh_queue()
...
a non-event should not unset this variable
2015-04-23 08:33:20 -04:00
Mike Blumenkrantz
4afb4b8fe9
simplify comp_x screen setup
...
we only care about the first root now, no point getting all the roots
2015-04-23 08:27:45 -04:00
Mike Blumenkrantz
0c0d481e4e
check module name existence before reading from it
...
CID 1295427
2015-04-23 08:23:13 -04:00
Mike Blumenkrantz
2894bae445
add read-only randr iface for wl drm output module
...
mostly just reads stuff right out of libdrm for now. seems to display mostly as expected.
no applying yet, and only connected+active monitors will display since that's all ecore-drm
tracks for now
try using ecore-drm, they said. it'll be easier than using libdrm, they said.
2015-04-22 21:21:58 -04:00
Mike Blumenkrantz
e1697892bc
add wl drm module phony make targets
2015-04-22 21:20:58 -04:00
Mike Blumenkrantz
a86fe60d3a
use const lists for drm devices in signal handlers
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
1eb6bb20b3
move canvas init after wl init in output modules
...
ensure that randr screens have been created
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
a452baafca
move comp_x screen setup code into e_randr
...
this was not x-specific, so move it for use in wl compositors
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
e64998b042
resize comp canvas on e_comp_canvas_init()
...
remove unnecessary call in wl drm output module
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
05d87a9b30
fix module blocking for wl modules
...
these should never be saved to or loaded from the config
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
e7219bab37
remove dead conf_randr files
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
4b1925dadf
init randr during wayland init...always
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
18c34ed151
change comp type check at start of e_comp_wl_init()
...
at present, this value will be set to either TYPE_NONE if no valid
compositor has been created or TYPE_X if running a wl compositor inside
an x11 compositor
2015-04-22 21:20:57 -04:00
Mike Blumenkrantz
15540c01e4
use randr for screen setup in wl-x11 output module
...
enabling this module requires that e is linked against ecore-x to
allow screen management
2015-04-22 21:20:53 -04:00
Mike Blumenkrantz
89ae59b407
always add e_randr2.c to e build
...
randr no longer requires x11
2015-04-22 21:19:00 -04:00
Mike Blumenkrantz
a4ea6e7f23
add a small screen management interface to E_Comp, remove hardcoded x11 randr calls
...
this interface is extremely basic and should allow easy additions for other display
backends
2015-04-22 21:19:00 -04:00
Mike Blumenkrantz
c9ff3b1434
create wl-x11 canvas using comp_x canvas creation method
2015-04-22 21:19:00 -04:00
Mike Blumenkrantz
8c6ec83e43
break out comp_x gl/sw canvas creation into external function
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz
36ea1ba372
move comp_x randr init to screen init function
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz
3ac3e9bc71
ensure valid strings are send when sending wl output geometry
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz
df4ada7e75
fix ecore-x cflags/libs inclusion for e binary
...
these variables will always exist
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz
e383b5b55a
always register E_EVENT_RANDR_CHANGE
...
failing to register this will cause event handlers for it to fail
on creation
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz
e1181c4d03
create e_comp during e_comp_init, set comp_type automatically
...
this simplifies comp creation slightly
2015-04-22 21:18:53 -04:00
Mike Blumenkrantz
de0b1b2d39
add E_PIXMAP_TYPE_NONE
...
null type currently only used during comp init
2015-04-22 21:18:42 -04:00
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