Commit Graph

180 Commits

Author SHA1 Message Date
Cedric BAIL 46e8efcd8c Let me introduce you to Ecore_Input. The idea is to share as much as possible event
between all ecore graphic engine to ease porting of application and reduce the amount of
specific code per engine. This patch does just that.
	All your application should continu to work has previously, if it's not the case
please report any new behaviour regarding mouse and keyboard.


SVN revision: 39505
2009-03-16 16:24:43 +00:00
Sebastian Dransfeld 92ff3dab37 Fix callback for list sorting.
SVN revision: 37202
2008-10-27 07:33:21 +00:00
Cedric BAIL 1087de2397 Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already
big enough.



SVN revision: 36962
2008-10-22 11:49:33 +00:00
Carsten Haitzler 0b0dfa93a7 and - that vlc fullscreen bug. found. fixed. but vlc's x11 code is really
nasty. does some utterly evil things. should i send off some suggestions to
them? (like 1. dont reparent the window in xcommon.c line 217, dont play with
wm focus policies in xcommon.c line 2269 - just dont send the
_NET_ACTIVE_WINDOW, you shouldnt' need to (wm should make the focus be
correct itself and wm's that don't should get a freindly reminder from users
when they dont remain consistent with focus policy), and then... xcommon.c
2317 remove the do {} while loop - i can think of many reasons the wm may
choose not to map your client window (yet - or ever), so this will never work
"reliably" always. just put in an XSync(p_vout->p_sys->p_display, False);
instead to force the x pipe to flush and do everything you asked before
returning control to the code and thus avoiding any badaccess stuff from x).



SVN revision: 36093
2008-09-19 09:44:07 +00:00
Gustavo Sverzut Barbieri ba3e4fc00d Move and Resize using keyboard.
These new shortcuts will trigger move and resize modes that are
interactive using keyboard. Use arrows to move or resize (left/top =
shrink, right/bottom = enlarge), presse Escape to abort, Return or
mouse click or timeout to confirm.

This should work like WindowMaker or Kwin.

TODO:
 - add customizable thresholds.
 - figure out what to do with the old action "Move" and "Resize",
   they're really useless for keyboard, just works with mouse.




SVN revision: 36010
2008-09-16 00:11:26 +00:00
Carsten Haitzler 46675b10c1 use ecore_x vkbd wrappers now.
SVN revision: 35209
2008-07-25 02:09:28 +00:00
Carsten Haitzler 77e26d9daa add a way to force e to not remember a window of its own .
SVN revision: 35139
2008-07-17 14:01:36 +00:00
Carsten Haitzler 51c5110b2c vkbd hints...
SVN revision: 35127
2008-07-16 17:06:23 +00:00
Miculcy Brian f977c5fd12 Better sorted border menu.
SVN revision: 34635
2008-05-21 22:37:00 +00:00
Carsten Haitzler 1cf57c6566 support qtopia hint flags and also multiple netwm types
SVN revision: 33952
2008-03-07 11:51:31 +00:00
Carsten Haitzler 5551c78397 revert patch. never tested by submiter.
SVN revision: 33950
2008-03-07 10:35:58 +00:00
Carsten Haitzler b70f5a0ecc e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
Sebastian Dransfeld e9e513b86b Fix fullscreen on desktop change (patch by Hannes Janetzek).
SVN revision: 33066
2007-12-09 15:40:14 +00:00
Miculcy Brian 55760113f6 This patch fixes a few sloppy focus problems (mouse was over a window which doesn't have the focus,...). See bug #210.
Great work sECuRE!


SVN revision: 32892
2007-11-26 21:33:23 +00:00
Sebastian Dransfeld dece2dc171 Reuse event struct
SVN revision: 32572
2007-11-11 11:48:40 +00:00
Carsten Haitzler 8b7a332c73 this is ugly - but it reduces trails from dropshadow or desktop redraws on
slow boxes. i had to
1. use bg pixmaps
2. defer window moves until idle enterer that runs AFTER the rendering
3. simple resizes from top-left are handled, but if top-left of frame needs
to mvoe all bets are off and its not deferred anymore.


SVN revision: 31945
2007-10-03 07:13:02 +00:00
Carsten Haitzler ea0b0dd7d8 winlist -> module!
SVN revision: 31178
2007-08-05 04:41:55 +00:00
Eric Schuele 79b8cf455c Fix typo of mine. Fix some whitespace. Allow appropriate icons to be viewed in "Border Icons" border menu.
SVN revision: 30821
2007-07-15 13:25:56 +00:00
Carsten Haitzler 2e875d3805 various patches from the devel mailing list in - and fixed where needed.
SVN revision: 30818
2007-07-15 08:28:11 +00:00
Carsten Haitzler 5af386933f add hook to borders to allow layout to b adjusted by modules
add a layout module - good proof of concept


SVN revision: 30517
2007-07-01 15:59:39 +00:00
Carsten Haitzler 1c05002461 fullscreen/maximuze UNmax/full to the current zone if the zone moved while
max/full.


SVN revision: 30294
2007-06-10 04:21:05 +00:00
Carsten Haitzler 1995d88b51 fwin windows have icon right now... :)
SVN revision: 30253
2007-06-05 13:58:05 +00:00
Viktor Kojouharov 1157a68929 add an option to automatically re-maximize windows on shelf hide/show, and move away windows that are on top of the shelf away while the shelf is visible.
add more options to fine-tune the autohide in the shelf's config dialog. it needs some UI love though.


SVN revision: 29472
2007-04-11 15:37:04 +00:00
Sebastian Dransfeld 47ad22217e Convert borders to efreet.
SVN revision: 29131
2007-03-25 17:23:49 +00:00
Carsten Haitzler b2a0abb8eb a lot of patches - also my work on moving the IO stuff in e_fm to a slave
process to stop e from ever "locking up". this unfortunately breaks the other
source stuff and thus breaks the app editor config dialogs and anything using
fm2 for .desktop stuff from the e applications/all repo. i am doing this as i
expect this to go away with efreet anyway so not too much of an issue. not
all fm operatiosn work currently - note. so beware. it can view files though :)


SVN revision: 28528
2007-03-02 17:00:20 +00:00
Christopher Michael a1a0a7aaa5 Ravenlock's pin-cleanup and pin-action patches to address concerns about a
new border property versus reusing what exists. This now eliminates using a
new border property in favor of re-using the 3 properties that exist and
also adds a key/mouse binding.

Some formatting issues I found in e_border and e_action while
looking/testing this.


SVN revision: 28496
2007-02-27 16:16:03 +00:00
Christopher Michael 0c3d47d779 Ravenlock's "Pin to desktop" patch which adds a menu item to the border menu
for "pinning" an app to the desktop.


SVN revision: 28433
2007-02-22 05:17:44 +00:00
Christopher Michael 1de8f1f01d Remove an unused variable from the border structure.
SVN revision: 27295
2006-11-30 17:42:41 +00:00
Christopher Michael 3ef6ab6b4c Close the Window Properties dialog if the app closes.
SVN revision: 27289
2006-11-30 10:42:14 +00:00
Viktor Kojouharov d2515a119e the pager and iconbox now emit a signal when a border changes state from urgent
to normal and the other way around.

for the themers: the iconbox icon, the pager window and the pager desk, receive
 the signals e,state,urgent and e,state,not_urgent, so you can do something nice
 with those.


SVN revision: 26772
2006-10-24 14:32:22 +00:00
Carsten Haitzler 818e75fb00 1. fix perf dialog - to actually change fps
2. save icon theme config
3. add config for desk flip animation modes etc. etc.
4. desk flip animation!!! 2 main modes. might restructure this a bit tho
(separate out on/off from the mode as there may be many more modes later)


SVN revision: 25299
2006-09-01 15:37:23 +00:00
Carsten Haitzler 109157dc27 was hacking a bit with borders and desktops - just ignore that codee. it's
unused - at the moment.


SVN revision: 25210
2006-08-30 13:37:35 +00:00
Carsten Haitzler 0a5e26b82b jamse brown ... errr... gadman is dead.
basically if moduels wish to put objects on a desktop - they now will have to
DIY and look after themselves. until we have gadcons with "free" layout that
do similar stuff - but this simply means module authors need to d a bit more
work. gadman code is unmaintained and a burden - thus removed.

also borders and e_win's have their own pointers now - this should nuke the
stuck pointer bug... :)


SVN revision: 24925
2006-08-20 04:48:27 +00:00
Carsten Haitzler 9266f27f0f aaah....
first a few patches - authors mailed.

then - bg selector work. and a few sample bg's. system bg's dir and user bg
dir - new bg dialog should also handle multihead simply too. picture select
button does work - but its only as smart as the old one (the code was built
off the old one). that needs a little work, but now the bg selector is fast
and slick - comes up instantly. resiable too.


SVN revision: 24443
2006-08-07 20:25:34 +00:00
sebastid 065745cc6e Remember user set bordertype in own variable, and prefer it on border
change.


SVN revision: 23994
2006-07-17 19:04:01 +00:00
sebastid 2c792f6446 Correct fix for fullscreen border.
On fullscreen set window size to fullscreen and trigger border change. The
border change will remove the border on fullscreen and reset to the correct
border on unfullscreen, whilst keeping the correct border size and border
inset.

A similar change should also be done for maximized borders.


SVN revision: 23991
2006-07-17 18:46:05 +00:00
Christopher Michael 73a7ba6011 As per HandyAndE request, this patch gives ability for modules config
dialogs to show their icon in their config dialog by passing in the
module_eap path to the config_dialog_new function as the icon parameter ie:

e_config_dialog_new(con, module_name, eap_path, 0, v, data);

Update E core modules to use this ability.
Fix dropshadow config dialog to fit in 640x480.


SVN revision: 23682
2006-07-03 07:35:44 +00:00
Christopher Michael 17475003db Module about dialogs now show the module icon in the dialog, and the border.
Note: This breaks e_modules until I get them fixed.


SVN revision: 23660
2006-07-02 18:55:33 +00:00
Christopher Michael 4bb372ad2d Give ability for config dialogs to set their border icon to the proper
config icon, rather than all having the E logo. Is proactive about setting
this: if it does not find or cannot set to that icon, it will fallback to
the E icon.

Change all config dialogs to support this.

If we have an internal border (config dialogs), disable the Create Icon/Edit
Icon menu items.


SVN revision: 23655
2006-07-02 16:19:51 +00:00
Carsten Haitzler c025903109 indenting
SVN revision: 23501
2006-06-19 17:13:56 +00:00
Carsten Haitzler c2d5976dc4 handle resolution changes much mroe gracefully for windows - temporarily
resize/move but store their info BEFORE res change and always TRY and restore
it until an app or u ser asks to move/resize a window explicitly (if you
leave them alone they will be happy)


SVN revision: 23457
2006-06-16 08:50:42 +00:00
sebastid a5aaf5cc93 Add a flag for borderless, don't change the name directly.
SVN revision: 23391
2006-06-12 05:17:10 +00:00
Carsten Haitzler 97eec41ad9 patches that i said were in - commit. (see my reply emails)
also finish off a TODO item or 2


SVN revision: 23267
2006-06-07 23:30:15 +00:00
sebastid a69bc7767c Clean up maximization, there is only one unmaximize function now. Think
this code can do more advanced stuff than the previous code.

The logic is that if the window is first maximized vertically, then
horizontally it should equal that both directions are maximized at once.

unmaximize can only be done in directions already maximized.

The code works, but hasn't been thorougly tested. Please report any errors
to me, and I will fix them!


SVN revision: 23254
2006-06-07 21:42:13 +00:00
sebastid f75950ae50 Remember fullscreen request for new clients, and delay it.
SVN revision: 23243
2006-06-07 18:12:46 +00:00
Christopher Michael 8ca105b52f Patch from saturn_vk for adding an action and key-binding (set
through config dialog) which allows to "Show Desktop" by
iconifying/uniconifying all active borders.

(Tested heavily, no problems.)


SVN revision: 23118
2006-06-03 10:19:11 +00:00
sndev b8ed636f52 1. The confirmation dialog on shelf delete is added. Somebody on IRC proposed to have it.
Also it is added on Key Binding deletion (see Key Bindings dialog).

Code duplicates were moved to a separate function e_confirm_dialog_show.

2. Two new events E_EVENT_BORDER_FOCUS_IN and E_EVENT_BORDER_FOCUS_OUT are added.


SVN revision: 22844
2006-05-22 20:28:33 +00:00
Carsten Haitzler 0f82e95afe fix segv's for display config dialog
SVN revision: 22518
2006-05-10 14:54:59 +00:00
Carsten Haitzler 1af8269df5 and detect the evilness - but still not doign the right thing (tm) yet.
SVN revision: 21097
2006-03-08 10:04:51 +00:00
Carsten Haitzler 826dc4b4dc and dialogs work again
SVN revision: 21093
2006-03-08 08:54:43 +00:00