Commit Graph

120 Commits

Author SHA1 Message Date
Mike Blumenkrantz f85afc0646 fix focus setting when winlisting 2013-06-12 08:43:46 +01:00
Mike Blumenkrantz 7d064ece86 remove focus unset from winlist activate...this seems like extra work for nothing 2013-06-12 08:43:18 +01:00
Mike Blumenkrantz 9a615c1438 new user-requested option for moving the winlist-selected window to the current desk 2013-05-30 14:23:13 +01:00
Mike Blumenkrantz 505cec1d91 giant comp rejiggering commit #5:
* border frame/object now drawn directly on compositor canvas

* border shadows now in border theme with edje hint, non-updated themes still receive comp object shadows FOR NOW

* e_border MOVE/RESIZE pointer mode defines are now e_pointer.h enums

* added BD_CHANGED() util macro for setting bd->changed and printing a debug line to assist in finding places where this all-important flag is wrongly set

* bd->bg_win removed entirely

* bd->pointer objects moved to compositor object; now only one pointer object exists for each compositor

* resizing windows now shows a new and totally-intended scaling effect for window contents

* some additional retooling of border deletion/free callbacks

* fixed lurking potential bug where window could recieve focus from autoraise timer after border had been deleted

* more comp shape improvements/rewrites

* desk transitions are now BROKEN(ish)

* various modules updated to not be totally broken with these changes
2013-04-15 08:39:16 +01:00
Mike Blumenkrantz bf9933a336 E_FN_DEL macro renamed to E_FREE_FUNC with param order swapped for consistency 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 7d37ce5cbc fix tons of now-incorrect popup and object usage in winlist
SVN revision: 84099
2013-02-19 09:55:00 +00:00
Mike Blumenkrantz f36ecd9d3d giant comp rejiggering commit #2: popups are now objects drawn directly onto the compositor canvas with no xwindows of their own
* added a number of new e_comp functions and macros

* options for disabling effects on objects: this option does not currently have any effect

* all modules which used gadcon popups have been adjusted

* all modules which used input windows to detect close events for gadcon popups have been adjusted to use new popup autoclose functionality

* shelves are now always drawn on the compositor canvas, meaning objects will never get clipped by the shelf (ticket #1810)

* shelves no longer have an event object

SVN revision: 84060
2013-02-18 13:43:47 +00:00
Mike Blumenkrantz 90de0907c2 unbreak winlist focus setting, as broken by princeamd's patch which I failed to adequately test across all focus models :(
SVN revision: 84045
2013-02-18 09:51:49 +00:00
Mike Blumenkrantz 51b3e7a4ee patch from Deon Thomas: this patch fix the bug with if you have multiple windows opened and you are Alt+Tabbing suppose the mouse is already over the window that e_border_focused_get (the last focused border) we go to the next one. currently it centres the mouse on the same focused window then if you do alt+tab it will go to the next.
SVN revision: 83946
2013-02-15 11:18:16 +00:00
Mike Blumenkrantz aa6a2d173d giant comp rejiggering commit because anything smaller would have broken something:
* remove xwin for container canvas: now drawn directly on the compositor canvas

* added SHAPE_DEBUG define for bored developers

* bindings now use new e struct for mouse/wheel events

* container+zone now get mouse events from smart callbacks instead of x events

* rename comp api namespace

* change comp underlay theme to have a swallow for the wallpaper

* add names to all zone/container/comp objects to make debugging much easier

* some minor related updates to go along with this

SVN revision: 83752
2013-02-07 13:20:07 +00:00
Mike Blumenkrantz bf0348f133 remove unused timer variable, reduce e_grabinput calls slightly with some reordering
SVN revision: 83733
2013-02-07 10:51:10 +00:00
Mike Blumenkrantz 053c841f52 unbreak winlist focus changing
SVN revision: 83731
2013-02-07 10:36:01 +00:00
Mike Blumenkrantz a072a15edd fix no-warp mode winlist usage
ticket #asdfuser


SVN revision: 83683
2013-02-06 13:55:38 +00:00
Mike Blumenkrantz 6773c911b6 unify all pointer warping code to rely on e_border_pointer_warp_to_center functions
SVN revision: 83636
2013-02-05 15:15:04 +00:00
Mike Blumenkrantz ec87e69908 add yet another pointer warp option: disable all warps
ticket #asdfuser


SVN revision: 83629
2013-02-05 13:33:49 +00:00
Mike Blumenkrantz c48fd0b06d giant commit that wipes all bindi^W^W^Wsplits out binding configs into a separate config domain so they can be more easily copied and so they won't be wiped in the event that primary config is wiped
also splits all binding lists out of e_config: they are now conveniently located in the global "e_bindings" struct


SVN revision: 83544
2013-02-01 10:21:54 +00:00
Mike Blumenkrantz 31e2299a67 add config option for disabling pointer warp when performing directional focus change in winlist, patch by David H. Bronke
ticket #2098


SVN revision: 82409
2013-01-08 11:51:56 +00:00
Mike Blumenkrantz 602a9aabc5 winlist should no longer get stuck sometimes when activated by keybind
ticket #2007


SVN revision: 81449
2012-12-20 12:28:47 +00:00
Mike Blumenkrantz 01f4fd81db winlist now removes modifiers from its list as they are released
SVN revision: 81448
2012-12-20 12:26:19 +00:00
Mike Blumenkrantz a8990c74e9 winlist now behaves in a more expected manner when activated with a mouse binding
SVN revision: 81443
2012-12-20 11:16:09 +00:00
Mike Blumenkrantz cb34a3e7f5 unify winlist action code and set activation type
SVN revision: 81442
2012-12-20 10:58:21 +00:00
Mike Blumenkrantz a550ed2a85 fix "focus" option for winlist
ticket #1894


SVN revision: 80078
2012-12-03 15:12:58 +00:00
Mike Blumenkrantz c6a9c34e7f giant header overhaul which removes all the stupid one line function prototype headers and e_mod_main.h headers that contain nothing but unnecessary module api prototypes
SVN revision: 79908
2012-11-30 14:38:34 +00:00
Mike Blumenkrantz 0dfb15f58e use handler list macro
SVN revision: 78750
2012-11-01 08:25:35 +00:00
Boris Faure be388f7c2b e: no need to freeze/thaw focus tracking when not getting in event loop
SVN revision: 78618
2012-10-29 18:28:58 +00:00
Sebastian Dransfeld 436323bf59 e: cleanup layer handling
It seems people put random numbers as layers, so it is better to define
available layer numbers.

This patch also puts popups below fullscreen windows, as it sucks to get
popups during presentations. A better solution is maybe to put popups
above fullscreen, but have a presentation mode to put fullscreen windows
above popups?

SVN revision: 77293
2012-10-02 08:54:35 +00:00
Boris Faure 57f1273aae e: fix Move to the left/right/up/down window
Closes #1488

SVN revision: 76703
2012-09-15 09:57:38 +00:00
Mike Blumenkrantz 057a874039 winlist now only shows windows on other screens when the option for it is checked and (the window is from the current desk on the other screen || the option to show windows from all desks is set)
ticket #1494


SVN revision: 76500
2012-09-12 07:53:57 +00:00
Carsten Haitzler d69846caa0 fix another missing ptr warp bug on alt-tab.
SVN revision: 75694
2012-08-25 04:17:46 +00:00
Carsten Haitzler 777232b4d6 and now nicelyt and once and for bloody all fix focus stuff on alt-tab!
SVN revision: 75693
2012-08-25 04:12:59 +00:00
Carsten Haitzler d63122071e ensure actual focus goes to tabbed-to-window.
SVN revision: 75692
2012-08-25 03:33:31 +00:00
Carsten Haitzler 1d6c73e476 fix alt-tab to/from fullscreen windows
SVN revision: 75691
2012-08-25 03:00:14 +00:00
Mike Blumenkrantz 3494f7db73 revert previous commit, ticket #daniel lied to me
SVN revision: 75609
2012-08-23 09:09:58 +00:00
Mike Blumenkrantz 177e3276ed sloppy focus does not require pointer warping
ticket #daniel


SVN revision: 75608
2012-08-23 08:58:35 +00:00
Mike Blumenkrantz ce828663d0 this breaks warping somehow, revert
SVN revision: 75605
2012-08-23 08:34:10 +00:00
Mike Blumenkrantz b9fcebc038 prevent winlist pointer warping when pointer is already inside border
SVN revision: 75603
2012-08-23 08:07:56 +00:00
Mike Blumenkrantz 1ca3270f1d stringshare and action cleanups for winlist, should no longer call strcmp 500 times per activation
SVN revision: 75602
2012-08-23 07:57:47 +00:00
Carsten Haitzler 1739590e05 fix wad of focus issues with click-to-focus and alt+tab + fullscreen
windows.



SVN revision: 75399
2012-08-18 04:40:56 +00:00
Chidambar Zinnoury fe0672f783 e window list: prevent from segfaulting, patch from andrej.
Description from Trac (see #1020):

Pressing a key which is bound to "next/previous window of the same class" can make Enlightenment SEGV. This happens when:

    Window switcher list module is loaded
    the key is pressed when the active desktop is empty (i.e., contains no windows / applications) and at least one other desktop contains one or several windows 

This does not happen if all the desktops are empty.

 Fixes #1020.


SVN revision: 72753
2012-06-24 05:35:49 +00:00
Mike Blumenkrantz 375ffb08c5 formatting
SVN revision: 72520
2012-06-20 07:01:53 +00:00
Cedric BAIL c2a29811d5 e: massiv warning cleanup !
SVN revision: 70756
2012-05-04 09:38:52 +00:00
Cedric BAIL 29dffc306c e: segv-- on power removal.
SVN revision: 62181
2011-08-07 12:35:21 +00:00
Boris Faure aeb90bf58a e: fix e_winlist_left/down/up
SVN revision: 60247
2011-06-12 21:39:10 +00:00
Boris Faure d83c6c2d6c e: fix focus issue in winlist
SVN revision: 59334
2011-05-11 19:43:29 +00:00
Gustavo Sverzut Barbieri a565e9f077 winlist: offer a way to cycle icccm.class
icccm.class is usually unique per application, so you can use that to
cycle betwen the applications in your desktop. This mode is
complementary to the already existing "cycle all windows of current
class", which cycles all windows of the current application.



SVN revision: 57386
2011-02-27 14:29:41 +00:00
Sebastian Dransfeld ed139972cc stop move/resize on winlits show
Fixes bug #220

SVN revision: 54276
2010-11-07 12:34:50 +00:00
Boris Faure ee84be7253 e:winlist: fix issue with non-stop animation
SVN revision: 51451
2010-08-19 21:09:58 +00:00
Christopher Michael 8d27a99570 Add UNUSED where needed.
Remove lots of unused variables.
Fix some formatting.



SVN revision: 51409
2010-08-19 16:14:53 +00:00
Boris Faure fc68f2f491 e:winlist: rename global vars
SVN revision: 51348
2010-08-18 21:04:39 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Chidambar Zinnoury 029a558a98 WinList: add a new functionality so that we can switch between windows of the same class.
This is a major (and interesting) killer-feature of Gnome3, so let's shamelessly steal it.


SVN revision: 50154
2010-07-09 10:34:20 +00:00
Boris Faure 682783f271 winlist: add actions to move to window on the left/right/up/down
SVN revision: 50096
2010-07-07 21:36:23 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Hannes Janetzek 784400668d fix winlist focus, for me. delay grab release to be after pointer warp so that another underlying widow cant produce a focus_in event.
I havent tested all 2^10 possible way to configure focus/winlist, let me know if sth broke for you.


SVN revision: 48402
2010-04-28 19:53:13 +00:00
Sebastian Dransfeld a9bf975e7b export less
SVN revision: 45455
2010-01-22 20:28:39 +00:00
Sebastian Dransfeld f2c243f91e make clang happy
SVN revision: 45191
2010-01-15 19:36:00 +00:00
Christopher Michael 7a3aec9462 Use proper variable type...Come on people, check your code !!
SVN revision: 44702
2009-12-23 21:43:15 +00:00
Christopher Michael ed33b4d746 If the popup fails to create, then destroy the input_window and release any
grabs.
Lots of Formatting & Whitespace removal.



SVN revision: 44662
2009-12-22 20:41:06 +00:00
Christopher Michael bc639c764d More API Inconsistency fixes:
e_box_min_size_* to e_box_size_min_*
e_box_max_size_* to e_box_size_max_*



SVN revision: 42161
2009-09-01 16:29:46 +00:00
Vincent Torri 7506655ca9 ecore_x_window_del -> ecore_x_window_free
SVN revision: 39924
2009-04-10 09:57:57 +00:00
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
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 83ebd0c29a handle any_mod
SVN revision: 34977
2008-07-02 05:26:54 +00:00
Viktor Kojouharov aeb7c1642a ecore_x:
* in ecore_x_pointer_xy_get, fill x & y with '-1', if the pointer is not in the same screen as the given window
  * add 'same_screen' and 'root_win' information for the XEvents dealing with keyboard and mouse events

e:
  * make sure e_manager_current_get returns the correct manager for the current screen
  * fix various modules to use the correct window, when dealing with events


SVN revision: 34705
2008-05-30 22:30:57 +00:00
Christopher Michael b7959ead2b Small patch from jeffdameth to not allow other keyactions while winlist is
active.


SVN revision: 33169
2007-12-17 21:52:27 +00:00
Miculcy Brian a57b627c3e Wops, brackets needed.
SVN revision: 32767
2007-11-19 00:29:15 +00:00
Miculcy Brian 62907bbf51 little cleanup
SVN revision: 32762
2007-11-18 21:01:31 +00:00
Miculcy Brian d9a602326c Fixing bug #251: e_winlist.c corrupts the focus stack when switching to another window which is NOT the nearest one
SVN revision: 32188
2007-10-28 13:17:41 +00:00
Eric Schuele 10a3fb5f21 Seems we are freeing this a bit early.
SVN revision: 32046
2007-10-12 11:48:43 +00:00
Carsten Haitzler ea0b0dd7d8 winlist -> module!
SVN revision: 31178
2007-08-05 04:41:55 +00:00