Commit Graph

41 Commits

Author SHA1 Message Date
Mike Blumenkrantz bd6bbdd5f4 only set mouse-in focus if target window is not already the focused window
T483 again
2013-12-20 15:50:16 -05:00
Mike Blumenkrantz 848dec15fb revise d739ed0e2e to not break changing focus policies
thise commit added focus_policy member to E_Border as something to be used for setting a per-window focus policy. setting it on each window is a huge pain if the global policy ever changes, so it's better to use this member only as an override for the global policy which can be checked to see if it's been set
2013-11-21 12:38:35 -05:00
Sebastian Dransfeld d739ed0e2e handle desktop applications better
Fixes T201
2013-11-21 13:26:09 +01:00
Mike Blumenkrantz d17ab08019 block mouse down focus event focus setting on already-focused windows
fixes steam menus with click focus, which previously would close immediately after opening when they lost focus
2013-11-20 15:32:30 -05:00
Mike Blumenkrantz f1a65ee922 remove "border_raise_on_focus" config option
buckle up. for the first time in history, a config option is getting removed instead of added.

the reasons for this removal are many, but let's go way back to the beginning and see why it was added:
oh wait, we can't because the commit message (from 2006) is

>>    patches that i said were in - commit. (see my reply emails)

>>    also finish off a TODO item or 2

reading through the TODO items which were also crossed off in that commit, I'm assuming that this was the "option to NOT raise on focus in click to focus" item.

== REASON 1 ==

the problem here is that there's another, BETTER option called "click raises window" (always_click_to_raise) which does the same thing, except it doesn't totally fuck you when you get a random X focus event, which happens more often than you might think.

this means that, to avoid broken behavior which might cause your windows to spastically raise for a few frames in common cases (using winlist...) with click-to-focus, you have to know that this is the default-enabled option that's fucking you, and you have to remember to manually disable it every time. if you DON'T know that this is the option that's fucking you, and you just see windows randomly raising on their own, you'll probably either ignore it or file a bug, when this is supposed to be a "feature" that actually worked in reverse, since it was intended only for disabling.

== REASON 2 ==

there's also auto-raise, which can be set to 0.0s, which is effectively the same thing since it also triggers on focus but can be configured not to fuck your window stack

== REASON 3 ==

aaand finally, this option makes any sort of pointer focus model impossible to use, since your windows will constantly be raising all over as you move the mouse

tl;dr: I'm removing it, e-dealwithit.gif
2013-10-07 06:49:33 +01:00
Mike Blumenkrantz 1f442e8d96 always raise with click-to-raise. seriously this time. ALWAYS. 2013-09-25 08:25:24 +01:00
Mike Blumenkrantz 68f9e980e7 first we check focus model WITHOUT also applying automatically applied raise option, then we check focus option, THEN we check raise option 2013-09-05 13:44:34 +01:00
Mike Blumenkrantz 6074a0b25f click to raise ALWAYS raises. ALWAYS. 2013-09-05 13:42:48 +01:00
Mike Blumenkrantz d26ad22720 fix raise on focus setting 2013-08-19 10:00:48 +01:00
Mike Blumenkrantz ae8d726c5a remove old x focus hack for mouse in 2013-05-22 11:06:31 +01:00
Mike Blumenkrantz 60ad9ed93e formatting
SVN revision: 74850
2012-08-03 14:02:14 +00:00
Mike Blumenkrantz 207c0aed10 rename E_BINDING_CONTEXT_BORDER to E_BINDING_CONTEXT_WINDOW: technically this is in reference to an E_Border, but it gets confusing when looking at code that deals with both windows (E_Borders) and window borders/frames themselves. this name change will clarify the difference
SVN revision: 71841
2012-06-08 10:10:16 +00:00
Hannes Janetzek f3b8b6ccb7 e17: remove redundant checks. lock_focus_out is check in e_boder_focus_set*
SVN revision: 57648
2011-03-10 02:44:02 +00:00
Sebastian Dransfeld cb22b9355f Need to be able to set focus several times
When a modal window closes, we get several mouse in events for some
reason. If we are not able to set focus several times, the focus ends up
the wrong place.

SVN revision: 56937
2011-02-10 21:39:15 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Christopher Michael 90fd4f14bf Add __UNUSED__ where needed.
SVN revision: 51309
2010-08-18 18:17:04 +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
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Carsten Haitzler 4513a24797 no more round trips! bad bad bad!
SVN revision: 46459
2010-02-25 12:26:10 +00:00
Carsten Haitzler e9b740c27d use the loop_time - better synced anim timepoints and less overhead on
gettimeofday :)



SVN revision: 37393
2008-11-02 02:36: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 6a638a7806 Fix EAPI warnings.
SVN revision: 19597
2006-01-07 10:39:46 +00:00
Carsten Haitzler 0b001f8114 '
turn off click always focuses by default


SVN revision: 18763
2005-12-01 09:06:23 +00:00
rbdpngn 13d9bc775a Delete the old timer before setting the timer pointer to NULL.
SVN revision: 17045
2005-09-28 19:44:58 +00:00
tsauerbeck e3822ca730 'clicking-a-window-always-focuses-it' otherwise known as 'always-click-to-focus' is in. doesn't apply instantly, need to restart. i think that's the same with always-click-to-raise, so i'm not trying to do something about it
SVN revision: 16992
2005-09-27 16:36:14 +00:00
Carsten Haitzler 9063352d93 oh for gods sake! now all day was sunk into getting focus fixed for dialogs.
argh! i'll have to do the app cache after this... grrr....x


SVN revision: 16905
2005-09-24 09:04:39 +00:00
Carsten Haitzler 00616d3fec wheel bindings! WERD! hard-coded ones for now, need to make these config
values that can be set/changed/deleted via ipc and are saved/loaded :)


SVN revision: 16847
2005-09-22 12:47:45 +00:00
Carsten Haitzler 9e7cd72067 ok lots of things here...
1. e17 is now relocatable. the wm will determine its install prefix on the
fly when it is run. so you can use --prefix=/usr/local/e17 and just move the
base dir (/usr/local/e17) to anywhere you like at any later time and e will
adjust and find it. it still has built in fallbacks too so it will use the
compiled prefix as normal if its hunting and 2 checks dont pass.

2. edit mode for gadgets will work with alt+left click on a gadget and
instantly end when u lift the mouse. alst ctrl+alt+g will activate/deactivate
edit mode

3. borderless windows are not allowed to be shaded

4. shaded windows are not allowed to have their border changed

5. just have never seen the pager mess up bug - so until there is some way
of reproducing it or even knowing its still there - remove

6. autoraise timers should be fixed on focus changes

7. stickiness remembering works in the pager now on start of a remembered app


SVN revision: 15966
2005-07-31 06:22:31 +00:00
Carsten Haitzler b7e6e8b1f2 implement most of the locks
SVN revision: 15638
2005-07-04 10:24:22 +00:00
Carsten Haitzler 4c016e0a0a grab buttons 1, 2 and 3
SVN revision: 14919
2005-05-23 06:09:52 +00:00
sebastid 9fd4cc15e7 Sloppy focus.
SVN revision: 14875
2005-05-20 18:46:32 +00:00
Carsten Haitzler 3520914ccd and now it shoudl be able to change click to focs <-> mouse focus dynamically
and it all shoudl work - i hope.


SVN revision: 14870
2005-05-20 10:14:51 +00:00
Carsten Haitzler 38ab99da69 click to focus works... if you turn it on and restart.
SVN revision: 14869
2005-05-20 09:27:06 +00:00
Carsten Haitzler 45a7d1f244 some virtualisation of focus
SVN revision: 14867
2005-05-20 07:32:42 +00:00
sebastid e61b2b515a Compiler warnings.
SVN revision: 14730
2005-05-12 13:56:30 +00:00
sebastid 7857096ed3 Formatting
SVN revision: 13240
2005-02-08 11:51:41 +00:00
Carsten Haitzler 4f54c588e1 seb's patch...
SVN revision: 13222
2005-02-07 13:51:09 +00:00
Carsten Haitzler dcf6fd4ea5 some debuggies
SVN revision: 12795
2005-01-06 09:08:20 +00:00
Carsten Haitzler 588bb376f2 2 more icons.
SVN revision: 12577
2004-12-24 07:45:21 +00:00
Carsten Haitzler 1fa0714cfc clean up a lot of wranings.
SVN revision: 12564
2004-12-23 06:38:27 +00:00
Carsten Haitzler 5e2388c886 _ _ _ _ _____ ___
| | | | ___| | | |  ___| __ ___  ___ _______  ___   / _ \__   _____ _ __
| |_| |/ _ \ | | | |_ | '__/ _ \/ _ \_  / _ \/ __| | | | \ \ / / _ \ '__|
|  _  |  __/ | | |  _|| | |  __/  __// /  __/\__ \ | |_| |\ V /  __/ |
|_| |_|\___|_|_| |_|  |_|  \___|\___/___\___||___/  \___/  \_/ \___|_|


I put E17's wm code into cvs. Hell is freezing over. Duke Nukem Forever will
be out next week. Snowballls take up residence in Hell. The Fat Lady sings.
The End is nigh...

:)


SVN revision: 12247
2004-11-25 03:37:45 +00:00