Stefan Schmidt
9336d7c372
e_start_main: Close fd only if we actually succeeded opening it.
...
In the error case fd would be -1 here. Closing needs to be handled in the
cases where fd != -1.
CID: 1256492
2014-12-02 10:50:27 +01:00
Chris Michael
c7386d61c9
e-start: Fix 'control reaches end of non-void function'
...
Summary: Seems one of the Daniels did not check their compiler output
;) _e_ptrace_attach function should return an integer value...
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 11:55:32 -05:00
Daniel Kolesa
ef82c30bb4
fix indentation
2014-12-01 16:30:57 +00:00
Daniel Kolesa
715d7f00b4
remove unused variable
2014-12-01 16:28:46 +00:00
Daniel Kolesa
f918476da1
e_start_main: refactor (reduce scope depth, separate ifdefs, cleanup)
...
The main reason for this change is to clean it up for proper non-Linux
platform support, but also to make it cleaner in general.
2014-12-01 16:25:58 +00:00
Mike Blumenkrantz
6be71a64f9
fix efm dnd crash
...
fix T1880
2014-11-29 12:22:25 -05:00
Carsten Haitzler
48023b9ce3
e randr - fix warning (signed vs unsigned cmp)
2014-11-29 16:44:41 +09:00
Carsten Haitzler
70753a7903
e - randr - stop saving config using XID - this is utterly WRONG
...
so e was storing randr config using XIDs to match outputs etc. this is
all kinds of wrong. XIDs are NOT STATIC. they change from xserver to
xserver and from run to run. they MAY be the same. they may not. so
this was just broken.
use output name + edid as a big "string" (name.edid) as a way ofr
identifying config for a specific combination of output plus monitor
and to find/identify the corrent output+monitor to apply it to (of
course missing edid gets replaced with ??? and missing output name is
??? too - i have never seen a missing output name so you get this at
least).
so this FIXES "restore" of screen mode on login for starters. this
does nothing to "fix" the screen setup dialog in any way. there are
separate issues there.
this also breaks e_randr config compat so i bumped epoch so your old
config is rejected. i don't see a sensible way of porting the config
forward.
2014-11-29 10:05:36 +09:00
Mike Blumenkrantz
f4b8e9563c
apply pointer warp effects immediately when instant warping
...
fix T1462
2014-11-28 15:06:47 -05:00
Daniel Kolesa
245d26c7c7
detab e_start_main.c; spank spank spank
2014-11-28 15:08:24 +00:00
Daniel Kolesa
db49bda75d
clean up E ptrace detection and usage
2014-11-28 15:08:00 +00:00
Mike Blumenkrantz
68e0b75929
set skip pager/taskbar hints on parent window instead of client window
...
this is a change in behavior as compared to E17-E18 where any setting of related flags would alter the client hints
ref T1692
2014-11-25 15:02:06 -05:00
Marcel Hollerbach
d0d0554170
e_order: Added a function to check if this Efreet entry allready exists
...
Checks if this Efreet_Desktop entry allready exists in the given
E_Order.
2014-11-25 16:18:06 +01:00
Carsten Haitzler
077474adcb
e - warning fix - fix SVID_SOURCE complaint warning
...
reduces useless warnings so we see the real issues, not noise
2014-11-25 17:24:19 +09:00
Chris Michael
93a125b7a2
e-comp-wl: Don't try to set null data if we don't have a surface
...
Summary: This fixes an issue where calling wl_resource_set_user_data
with an invalid resource would cause an abort in the wayland
libraries, Thus making E crash.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-24 16:01:27 -05:00
Carsten Haitzler
87baecb098
Revert "windows - allow close button to work again in internal wins"
...
This reverts commit 285951c8cb
.
2014-11-23 13:54:14 +09:00
Mike Blumenkrantz
a16206c6f1
only show comp obj during internal win show if win not already visible
...
fix T1863
2014-11-22 12:47:19 -05:00
Mike Blumenkrantz
ce49f2a1f0
only change internal win visibility on comp obj show if win not already visible
2014-11-22 12:46:50 -05:00
Mike Blumenkrantz
de792341fb
don't call elm_shutdown() for now
...
force iterating the main loop when it's expected to have stopped guarantees crashes for most of e
2014-11-22 08:33:48 -05:00
Mike Blumenkrantz
034c05bc0d
remove unnecessary unfocused signal emit on clients
2014-11-22 08:31:59 -05:00
Carsten Haitzler
285951c8cb
windows - allow close button to work again in internal wins
...
since the move to elm_win ... windows don't close with close button in
the titlebar. this fixes that in the simplest way - enabling autodel
on the window.
2014-11-22 18:46:10 +09:00
q66
d12ef91687
rename WEIGHT/ALIGN/EXPAND/FILL to E_WEIGHT/E_ALIGN/E_EXPAND/E_FILL
...
Otherwise there were macro clashes with a systemwide include.
Also remove a leftover E_Hal.h include.
2014-11-21 20:10:46 +00:00
Mike Blumenkrantz
a4b1d63fea
fix internal window closing with frame button
2014-11-21 13:34:32 -05:00
Mike Blumenkrantz
eaa471b418
resolve recent coverity complaints
2014-11-21 10:21:13 -05:00
Daniel Kolesa
bd95c310ec
remove obsolete E_Hal.h include
2014-11-21 14:34:48 +00:00
Mike Blumenkrantz
ce8a4a2b78
remove ec->changes.internal_props
...
this should be set directly on the win using evas/elm apis
2014-11-20 15:26:22 -05:00
Mike Blumenkrantz
a44b172607
minor tweaks to prevent harmless invalid reads during restarts with windows open
2014-11-20 15:26:22 -05:00
Mike Blumenkrantz
462c2ef4aa
rename elm win trap functions for easier namespace debugging
2014-11-20 15:26:22 -05:00
Mike Blumenkrantz
ffa98586a4
add macro wrapper to force elm win accel disabling on internal windows
2014-11-20 15:26:21 -05:00
Mike Blumenkrantz
99589eb5af
remove E_Win+e_canvas, convert all internal wins to use elm_win
...
known issues:
* keybindings for efm windows (eg. ctrl+w) are broken until the rest of the conversion is completed
2014-11-20 15:26:21 -05:00
Sebastian Dransfeld
23ade9f630
randr: fix formatting
...
tab to spaces
2014-11-19 11:58:50 +01:00
Marcel Hollerbach
c2f596a06a
Fix wrong deskshow function
...
Summary:
The loop E_CLIENT_REVERSE_FOREACH was used to iconify and uniconify the
icons. The worked well for uninconify.
But if the first client with the focus gets iconifyed the lower one in
the stack will get the focus and will be raised to the top, but the loop
will continue with the next of the now iconifyed e_client, so this one
will be skipped.
Now the forward loop is used to iconify and the reverse to uniconify the
e_clients.
This fixes T1797
Reviewers: zmike
Reviewed By: zmike
Subscribers: cedric, cippp
Maniphest Tasks: T1797
Differential Revision: https://phab.enlightenment.org/D1655
2014-11-12 20:49:46 +01:00
Chris Michael
69c71a16bb
e-comp-wl: Implement client idler for sending configure during resize.
...
Cleanup surface commit function to work with new pixmap caching code.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-10 11:58:20 -05:00
Chris Michael
4dfdfe2428
Implement caching of pixmap resources for wayland clients.
...
Move sending of frame completion to the image_draw function.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-10 11:55:18 -05:00
Chris Michael
2e0168359e
e-comp: Return proper post value for wayland clients during
...
client_update
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-10 10:20:49 -05:00
Chris Michael
3ef4ca19bc
Fix incorrect return value when creating native surface for wayland
...
clients
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-07 13:15:10 -05:00
kabeer khan
d36166f4af
e_startup: Added dialog to notify user to fix his dbus setup
...
Summary:
Resolved TODO in e_startup, In case of dbus error added dialog
box to notify user to fix his dbus setup
Signed-off-by: kabeer khan <kabeer.khan@samsung.com>
Reviewers: zmike, devilhorns
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D1648
2014-11-07 08:34:00 -05:00
Mike Blumenkrantz
5172b7f3f9
add alignment client menu
...
for everyone with window placement ocd who doesn't tile
2014-11-05 15:04:10 -05:00
Chris Michael
7f8387b4bc
e-comp-wl: Fix keyboard input with wayland clients when running in X11.
...
Don't run client_post_new hook for deleted clients.
Start work on client pre_frame hook.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-05 10:00:06 -05:00
Chris Michael
dcffab5c82
e-comp-wl: Clip shape rectangles to client size
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-05 10:00:06 -05:00
Chris Michael
19df35bdbf
e-comp-wl: Hook into post_new_client event so we can setup hints and
...
export any shape changes
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-05 10:00:06 -05:00
Chris Michael
86617fe717
e-comp-wl: Set e_client properties on subsurface E_Client
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-05 10:00:06 -05:00
Mike Blumenkrantz
f66fd04b82
fix signal emission on selected ilist item icons
2014-11-03 17:07:19 -05:00
Chris Michael
2d7ca6d2eb
e-comp-wl: Implement callback for surface resource destroy
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 15:10:38 -05:00
Chris Michael
9ebf046e41
e-comp-wl: Remove unnecessary todo item
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 14:48:19 -05:00
Chris Michael
8a08e17603
e-comp-wl: Implement subsurface parent commit function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 14:47:14 -05:00
Chris Michael
4de0a40d0c
e-comp-wl: Implement subsurface commit_to_cache and commit_from_cache
...
functions
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 14:47:14 -05:00
Mike Blumenkrantz
a9495340f6
fix internal window border changing
2014-11-03 14:10:17 -05:00
Chris Michael
d3aed14ebc
e-comp-wl: Fix various compile errors
...
Summary: add function prototype for subsurface_parent_commit, fix a
few typos which broke compile
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:50:07 -05:00
Chris Michael
1b3c77bbe9
e-comp-wl: Start on implementing subsurface commit functions
...
NB: Not complete yet
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
41fe2c901a
e-comp-wl: Add internal function prototype for subsurface commit
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
ff77a2fa08
e-comp-wl: Implement subsurface place_below function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
979ba2f467
e-comp-wl: Implement subsurface place_above function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
ee9e9a51ee
e-comp-wl: Implement subsurface desynchronized_set function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
60c967a5ba
e-comp-wl: Implement subsurface synchronized_set function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
393f3c90dd
e-comp-wl: Implement subsurface position set function
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
78fe19065f
e-comp-wl: Implement subsurface destroy callbacks
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
c817d83793
e-comp-wl: Destroy subsurface resource in destroy callback
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
f53fc6648c
e-comp-wl: Start to reimplement subcompositor and subsurface support
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:13 -05:00
Chris Michael
c1c3a90f3c
e-comp-wl: Cleanup wayland compositor header
...
Summary: Changes subsurface data structure name, changes cached
damages to be a list (matching surface data structure).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 12:27:12 -05:00
Carsten Haitzler
3405362b1d
e_auth - null out compilert memset opts like lokker
2014-11-03 18:54:24 +09:00
Chris Michael
103a980adb
e_comp_wl: Remove unused variables
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-31 14:38:29 -04:00
Chris Michael
a716f41327
e_comp_wl: add support for priority raise/normalize during focus events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-31 14:38:24 -04:00
Chris Michael
db795bbb5d
e-comp-wl: Make new compositor functional.
...
- Remove client_window_hash (not needed).
- Add hook for evas resize and update surface (configure_send) during resize.
- Remove old buffer_refenerce mechanism
- Refresh pixmap on surface commit
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-31 12:33:09 -04:00
Chris Michael
770b3e5f26
change comp_wl_data structure to store the wl_resource of the client
...
buffer. No longer dealing with reference buffers.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-31 12:27:41 -04:00
Chris Michael
240d651d2f
send wl_buffer release after we have drawn this pixmap
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-31 12:26:50 -04:00
Chris Michael
c0c911af91
e_comp_wl: Implement surface frame callback support
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
89ae4607c9
e_comp_wl: Add hooks for focus in/out events so we can set wayland focus
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
1bc93687db
e_comp_wl: Cleanup resizing of wayland clients. This hooks into
...
various resize callbacks to set/unset the resize edges and to update
the surface size.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
458ce8e86f
remove call to release compositor buffer reference in e_pixmap. This
...
is handled differently now.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
d2360f569c
e-comp-wl: Remove resize.width & height from structure
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
87d9872b4c
e-comp-wl: Que a buffer release after we have committed the pending buffer
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
4b1e0e589e
e-comp-wl: Comment out EGL include
...
This fixes a build error from evas engine already including EGL headers
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
3cf2088ee7
fix formatting
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
b410042f7f
remove debug messages for mouse in/out
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
e04343eaaa
add checks in client focus/unfocus to test for wayland client
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:08 -04:00
Chris Michael
72dac4e751
add callbacks for client focus/unfocus
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
7ea9df0f53
add evas callback for client resize
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
65b397a84f
add evas callback for color_set
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
59e431d838
add evas callback for ping event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
241ad6a789
add evas callback for kill request
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
36ff31e6b4
add evas callback for delete_request and fix printf warnings for
...
uint64_t
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
438bb71689
add evas callback for key up events
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
c9fe774f23
add evas callback for key down event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
8cf2100e74
add evas callbacks for mouse wheel event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
3b45f205a2
add evas callbacks for mouse up event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
c5d50e050a
add evas callback function for mouse down event
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
5eb9ce9f34
add evas callback for mouse move on a surface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
122d47e6e9
add evas callback for mouse out on a surface
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
2bd389f47c
remove some debug messages
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
2696821734
add callback for mouse in on the client.
...
Fix improper tiler_clear in surface_commit function.
Add fast-path in surface commit to skip processing regions & damage if
the client is not visible.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
7675825f61
add hook for evas callback hide so we can hide any video children
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
f64a570569
add hoook for evas show callback and show any video childs
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
22b793a96f
fetch pixmap id in opaque & input region set functions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
270a394d45
add listener for comp_object_add event so we can setup evas callbacks
...
for a client.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
830239c60f
fix typo
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
c3a9474ae9
update todo
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
128d1f1d05
cleanup any pending input regions when we delete the client
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
6acad9508d
cleanup any pending opaque regions when we delete the client
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00
Chris Michael
9faf1e57d2
cleanup any remaning damage rectangles when we delete the client
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-10-30 10:39:07 -04:00