Commit Graph

869 Commits

Author SHA1 Message Date
Carsten Haitzler 965fc62fd8 fix resize if minx/max etc. props changed during reisze.
SVN revision: 60263
2011-06-13 09:12:50 +00:00
Carsten Haitzler a7ed0b519e fix shape input changes while hidden.
SVN revision: 59029
2011-04-29 07:11:08 +00:00
Boris Faure aa87cbeaaf e: remove trailing whitespaces in e_border.c
SVN revision: 58674
2011-04-14 21:26:53 +00:00
Boris Faure f9f62a5158 e: move/resize maximized windows but still keeping them maximized
SVN revision: 58673
2011-04-14 21:19:25 +00:00
Miculcy Brian ca2c5c152f e17/fullscreen: restore maximize correctly
SVN revision: 58626
2011-04-13 10:49:10 +00:00
Doyun Kang 7b56742304 From: Doyun Kang <doyoun.kang@samsung.com>
Add support for shape input inheritance alongside normal shape support.



SVN revision: 58622
2011-04-13 09:06:34 +00:00
Miculcy Brian e6491516df e17/fullscreen: simplify maximize restore
SVN revision: 58594
2011-04-12 14:00:50 +00:00
Miculcy Brian ae1512cebe e17/fullscreen: restore maximized if maximized before fullscreen
SVN revision: 58593
2011-04-12 13:52:30 +00:00
Hannes Janetzek e923d63c72 e17: fix dnd to invisible windows and fix e_border_comp_hidden_set
- dont drop e drags (e.g. efm files) to windows from other desks
- should also fix wrong last desk focus set with deskflip animations enabled


SVN revision: 58551
2011-04-11 12:22:17 +00:00
Carsten Haitzler ac2b91963a dont wait until its hung to kill -9 it .. as the user selected kill.
just give it a timeout from the sigint. :)



SVN revision: 58341
2011-04-04 23:51:46 +00:00
Hannes Janetzek 7a870a386f e17: allow focusing sticky windows from other desk again..
TODO need to have a zone overlay input window that locks all mouse input while deskflip anim and mous warp


SVN revision: 58126
2011-03-27 19:23:12 +00:00
Hannes Janetzek cd9583cd4d e17: deskflip anim.. dont set focus on windows from previous desk
SVN revision: 58093
2011-03-26 00:39:59 +00:00
Hannes Janetzek a39d970c77 e17: revert last commit. causes lost window on restart
SVN revision: 58091
2011-03-25 20:52:19 +00:00
Hannes Janetzek 401fef69de e17: set border fx offset directly. should give smoother desk flip animation
SVN revision: 58090
2011-03-25 20:26:06 +00:00
Hannes Janetzek 17fc4de8bd e17: remove redundant code:
line 2901: 
(bd->changes.pos && !bd->changes.size) || (!bd->changes.pos && bd->changes.size)
cant be the case as before (!bd->changes.pos) && (!bd->changes.size) was checked.

line 2935ff: new_client is always false after eval
bd->changes.size/pos is always false after eval


SVN revision: 58089
2011-03-25 20:22:52 +00:00
Boris Faure 0cddc7cee2 e: changing the border on maximized window keeps it maximized
Useful for vertical/horizontal maximization

SVN revision: 57944
2011-03-21 20:55:34 +00:00
Boris Faure 866c425d57 e: add vim-like bindings to move/resize windows
SVN revision: 57920
2011-03-20 19:22:59 +00:00
Hannes Janetzek 7b2760151a e17: focus fix. forgot to set bd->changed to handle want_focus in eval..
SVN revision: 57799
2011-03-16 13:31:43 +00:00
Hannes Janetzek 27a83bce9f e17: possible focus fix: wait for windows focus_in event also if it does not !take_focus
SVN revision: 57705
2011-03-12 16:59:02 +00:00
Hannes Janetzek c12717050e e17: fix focus new window with click to focus. delay setting focus again
SVN revision: 57704
2011-03-12 16:24:37 +00:00
Hannes Janetzek 267f8d52f5 e17: focus: on focus_set promote border in focus_next even if it has already focus.
this fixes the problem when within one mainloop iteration the currently focused
border is unfocused and refocused.


SVN revision: 57674
2011-03-10 16:23:57 +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
Hannes Janetzek c51acd3708 e17: set focus at the end of border_idler_before to the last focused window.
No need to sync ecore_x_window_focus then. in next mainloop 
iteration all requests should have been processed by X, or doesnt it? 


SVN revision: 57647
2011-03-10 02:29:01 +00:00
Hannes Janetzek 800be7c985 e17: fix, remove duplicated line
SVN revision: 57637
2011-03-09 22:07:32 +00:00
Hannes Janetzek ce5cf84240 e17: fetch netwm state ealier so netwm.state.modal is set before used in icccm.fetch.client_leader case
SVN revision: 57623
2011-03-09 13:28:31 +00:00
Hannes Janetzek d8929994b4 e17: simplify e_border_focus_set logic and fix (some) focus issue with
not focusing the last active window after deskswitch


SVN revision: 57622
2011-03-09 13:15:33 +00:00
Miculcy Brian c695554642 allow to change layer when locking border position
SVN revision: 57609
2011-03-09 00:05:03 +00:00
Boris Faure 7c6caaa267 e: fix variable scope + indenting
SVN revision: 57506
2011-03-03 22:05:12 +00:00
Boris Faure 62ae791ca4 e: fix bd->changes.border
this way it's possible to know whether the border has changed when hooking
on E_BORDER_HOOK_EVAL_POST_BORDER_ASSIGN

SVN revision: 57478
2011-03-02 22:09:05 +00:00
Hannes Janetzek 23428da6ea e17: allow themes to request argb window frames
if your window border theme will use transparency add:
data { item: "argb" "1" } to the respective border groups 


SVN revision: 57458
2011-03-01 16:17:23 +00:00
Sebastian Dransfeld 99ea2864cb Also update border icons on icon cache update
SVN revision: 56914
2011-02-10 14:26:04 +00:00
Sebastian Dransfeld 30a478c4fa use convenience macro
SVN revision: 56782
2011-02-07 21:19:23 +00:00
Eric Schuele 440c33eecf Allow users to remove border resistance on a per border basis.
SVN revision: 56745
2011-02-06 02:04:37 +00:00
Mike Blumenkrantz d9f8fbefd4 avoid using garbage values for z{x,y,w,h}; FIXME!!!
SVN revision: 55724
2010-12-22 23:36:46 +00:00
Mike Blumenkrantz a8f324517f I don't even know what to say about the formatting in this file except that it was terrible. ecrustified.
SVN revision: 55723
2010-12-22 23:32:42 +00:00
Mike Blumenkrantz 7f55007159 avoid null deref
SVN revision: 55710
2010-12-22 22:53:30 +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 4b7b3742c8 Remove 'declared' function that was never defined.
SVN revision: 54558
2010-11-15 06:15:42 +00:00
Sebastian Dransfeld f0afd63652 We might loose move/resize ref
Keep a local ref and be sure that we keep our object

SVN revision: 54275
2010-11-07 12:34:40 +00:00
Sebastian Dransfeld 3678c820b9 Really cancel move/resize
SVN revision: 54274
2010-11-07 12:34:29 +00:00
Sebastian Dransfeld 48e98291bd Only focus parent if on current desk
SVN revision: 54273
2010-11-07 11:05:04 +00:00
Sebastian Dransfeld b4f9160c09 Remove duplicate code
We always hide border before border del, so we shouldn't be focused here

SVN revision: 54272
2010-11-07 11:04:53 +00:00
Sebastian Dransfeld c12fafe377 Cleanup revert focus
SVN revision: 54271
2010-11-07 08:21:14 +00:00
Sebastian Dransfeld b047d83d7a Set focus when we delete the border
_e_border_cb_window_hide is not necessary called in the right order for
internal windows

Fixes #485 part 1

SVN revision: 54244
2010-11-06 19:35:35 +00:00
Sebastian Dransfeld 552a0ad0f2 use new fdo e_icon
SVN revision: 54195
2010-11-05 18:54:56 +00:00
Sebastian Dransfeld 3c12d4daba __UNUSED__ last
SVN revision: 54193
2010-11-05 18:40:31 +00:00
Sebastian Dransfeld a355da7bf8 Since we don̈́t grab, don't ungrab
This should help on some focus problems, please test

SVN revision: 54181
2010-11-05 13:48:28 +00:00
Christopher Michael df00292397 Fix up calls to ecore_x_icccm to use Eina_Bool to remove compiler
warnings.



SVN revision: 52834
2010-09-28 00:35:05 +00:00
Mike Blumenkrantz 61dadf430f add macro to insert function name in debugging
SVN revision: 52171
2010-09-12 18:44:10 +00:00
Mike Blumenkrantz 02aa9820c0 add debugging printf function for hunting down focus switching bugs, requires -DPRINT_LOTS_OF_DEBUG
SVN revision: 52170
2010-09-12 18:34:56 +00:00
Lucas De Marchi 25113159a5 Fix common misspellings
Some misspellings were manually reverted since in E there are tons of .po with
phrases in other languages. Other than that all the changes in the following
files were reverted:

 * src/modules/illume/dicts/English_(US).dic
 * src/modules/illume-keyboard/dicts/English_(US).dic


Following misspellings were fixed:

acquited->acquitted
adres->address
adress->address
alreayd->already
aquire->acquire
arbitarily->arbitrarily
cant->can't
Capetown->Cape
carefull->careful
causalities->casualties
Celcius->Celsius
certian->certain
commandoes->commandos
considerd->considered
conveyer->conveyor
dependant->dependent
didnt->didn't
discontentment->discontent
doesnt->doesn't
everytime->every
exemple->example
existance->existence
existant->existent
existince->existence
Farenheit->Fahrenheit
forbad->forbade
funguses->fungi
guage->gauge
guerilla->guerrilla
guerillas->guerrillas
happend->happened
hasnt->hasn't
heros->heroes
inbetween->between
independant->independent
inital->initial
intrusted->entrusted
irregardless->regardless
isnt->isn't
knifes->knives
layed->laid
loosing->losing
marrage->marriage
midwifes->midwives
miniscule->minuscule
monickers->monikers
mroe->more
noone->no one
occured->occurred
omre->more
paralell->parallel
payed->paid
planed->planned
quitted->quit
quizes->quizzes
seperated->separated
seperate->separate
shoudl->should
similiar->similar
simplier->simpler
specifiying->specifying
teh->the
toke->took
torpedos->torpedoes
Tuscon->Tucson
unecessary->unnecessary
useage->usage
usefull->useful
useing->using
waht->what
wanna->want
whith->with
wich->which
withing->within




SVN revision: 52006
2010-09-08 23:59:07 +00:00
Mike Blumenkrantz 015e43980c I give up. vim is too big and too stupid for me to fight
SVN revision: 51880
2010-09-04 06:24:49 +00:00
Mike Blumenkrantz 88e5bb4ff1 try fix broken vim formatting: VIM TABS ARE WRONG! I WILL SEND NINJAS AFTER THE NEXT PERSON WHO USES THEM!!!
SVN revision: 51879
2010-09-04 06:05:32 +00:00
Christopher Michael 1d59137b0e Add __UNUSED__ where needed.
Fix __UNUSED__ to be after the variable.
Remove unused variables.



SVN revision: 51301
2010-08-18 17:26:44 +00:00
Leif Middelschulte 935774e161 From: Leif Middelschulte <leif.middelschulte@gmail.com>
patch for ecore-x xrandr 1.3 support - breaks previous api. final api
change (i know about) before we go alpha. in to svn we go.



SVN revision: 51109
2010-08-14 10:21:03 +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
Carsten Haitzler 81963af8d8 respect hidden comp state in border infra.
SVN revision: 50806
2010-08-04 06:24:06 +00:00
Carsten Haitzler 33eb15abc8 be like other compositors. work around the unmap thing and never unmap
if we have a compositor. just "mark" as unmapped and leave there.
pretend we are unmapped. disable events and stuff on the border to get
the behaviro right too so stacking or positioning is never affected.



SVN revision: 50761
2010-08-03 09:03:58 +00:00
Christopher Michael 5a7b450c04 Patch from rubenbb to fix ticket #562 (dpms being turned off by
fullscreen windows).

I modified this patch slightly. Removed some unused handlers. limits.h
is already included in e.h, so no need to reinclude it. Fixed formatting.



SVN revision: 50356
2010-07-18 19:06:00 +00:00
Andreas Volz 31663d7051 temoporary limited maximize algorithm
SVN revision: 50207
2010-07-12 22:12:02 +00:00
Andreas Volz c0a5d4e794 fix to prevent lost windows if resizing a window to offscreen coordinates
SVN revision: 50133
2010-07-08 21:05:34 +00:00
Andreas Volz 6e35928dea added two new configuration options for the geometry_manipulation conf plugin:
int         geometry_auto_move; // GUI
   int         geometry_auto_resize_limit; // GUI

This does influence the configure_request algorithm in the way that the user could disable the window 
geometry move and resize feature that is useful for e.g. Gnome fileselector or gnome-terminal tabs.
There was a use case on the list where this was not nice so I created an option to disable it. If one thinks
a special e.src shouldn't activate this feature by default, please change it.

SVN revision: 50083
2010-07-06 19:49:48 +00:00
Andreas Volz c86c1144fe req_window_oversize:
If a window likes to open with bigger 
initial coordinates bigger than the screen 
(minus ignore zones like not overlap allowed shelfes) 
the window should be sized to the maximum allowed size.

SVN revision: 50028
2010-07-04 19:10:09 +00:00
Andreas Volz c153c4b86e req_maximize_ignore_zone:
If a window likes to maximize while it stays below a ignore zone (like not overlap allowed shelfes) it should be maximized only in the overlap allowed zone. At returning to normal state it should be placed in the original position.

SVN revision: 49942
2010-06-29 21:04:34 +00:00
Andreas Volz bb3501c1c8 req_window_resize_move:
If a window resizes itself without border interaction it's moved to the next available coordinates which aren't covered by ignore zones like not overlap allowed shelfes.


SVN revision: 49910
2010-06-27 20:48:43 +00:00
Andreas Volz ce88316472 req_window_offscreen:
If a window likes to open with initial offscreen coordinates E should move it to the nearest onscreen coordinates.

req_window_ignore_zone:
If a window likes to open with initial coordinates in a window ignore zone (like not overlap allowed shelfes) if should be moved to the next allowed coordinates.



SVN revision: 49909
2010-06-27 20:41:52 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Andreas Volz cb1d2785fa temporary comment my latest change here.
while working with it I got some strange window placements. I need to analyze these situations before I release it to the public...


SVN revision: 49673
2010-06-14 19:44:56 +00:00
Andreas Volz 8610b9eaa9 Based on an IRC discussion I changed the smart placing mechanism to hit also if icccm.request_pos is true. Many Gnome based application try to start with coordinates below the shelfes and E allows it. This smoothly moves this windows away is smart placement is active. It's not as aggressive as Metacity, but now usable with vertical shelfes. If you don't like this change hit me and discuss it again on the list.
SVN revision: 49654
2010-06-12 12:54:18 +00:00
Gustavo Sverzut Barbieri 1c3afc74b2 Emit events when windows become or leave fullscreen.
SVN revision: 49258
2010-05-28 21:37:42 +00:00
Gustavo Sverzut Barbieri 5e42f12ffb if fullscreen border was moved between desks, update desk fullscreen count.
just happened to notice this possible error, no idea if paths could
really trigger it, but was simple enough to fix.



SVN revision: 49249
2010-05-28 18:54:25 +00:00
Jaime Thomas 202a06c9f6 Stop windows from jumping to (0,0) location when resizing using keybindings.
SVN revision: 48316
2010-04-25 18:50:14 +00:00
Christopher Michael 80c91b8d19 As per k-s, remove fix from e_config_dialog and instead, call e_border_show
inside uniconify.



SVN revision: 48138
2010-04-19 17:27:45 +00:00
Sebastian Dransfeld fadcb01bcb efreet: better naming
SVN revision: 48034
2010-04-15 19:21:03 +00:00
Sebastian Dransfeld 7c9c49eabc Make sure we free desktop before getting new
SVN revision: 47518
2010-03-27 20:53:41 +00:00
Sebastian Dransfeld fed2a494e1 Listen to cache update event
SVN revision: 47476
2010-03-26 05:34:10 +00:00
Sebastian Dransfeld 2277270e9c free desktop on border removal
SVN revision: 47474
2010-03-26 05:33:48 +00:00
Sebastian Dransfeld 346707729c Use efreet_desktop_get
We want to get a cached version which submits events for bd->desktop

SVN revision: 46845
2010-03-03 22:10:34 +00:00
Carsten Haitzler 07c6e7788d oooold patch from manio! in!
SVN revision: 46807
2010-03-03 00:32:39 +00:00
Carsten Haitzler fd7e0c09df hmmm something screwed with init done events.. remove 1 undone.
SVN revision: 46784
2010-03-02 12:31:20 +00:00
Sebastian Dransfeld cdd86db6ac Eet cache for efreet desktop
SVN revision: 46726
2010-03-01 18:16:32 +00:00
Christopher Michael 98e95cc950 Comment whole section as we never make use of it anyway.
SVN revision: 46674
2010-03-01 01:33:44 +00:00
Christopher Michael 3bc257bf8d Fix up formatting.
SVN revision: 46625
2010-02-27 22:51:19 +00:00
Carsten Haitzler 4513a24797 no more round trips! bad bad bad!
SVN revision: 46459
2010-02-25 12:26:10 +00:00
Christopher Michael 4461057e7a Add illume quickpanel zone fetch to border structure.
SVN revision: 46293
2010-02-19 03:21:30 +00:00
Christopher Michael 30b60b5bd3 No point in running find_by_client_window here as we do nothing with it
anyway.



SVN revision: 46104
2010-02-11 22:05:14 +00:00
Sebastian Dransfeld f098d9df85 Only create edge windows which have bindings
Previously all windows always existed, and edge bindings showed/hided
windows as needed. And e_zone_flip_win_disable/ e_zone_flip_win_restore
f**k'ed this up.

Will fix bug #483 soon.

SVN revision: 45366
2010-01-20 21:30:17 +00:00
Sebastian Dransfeld e64e721ff2 Make sure that we always resize on keypress
When using alt on a window which resizes in steps, we could get 0
movement. Fixes bug #338.

SVN revision: 45339
2010-01-19 19:46:09 +00:00
Sebastian Dransfeld b7f399d159 make clang happy
SVN revision: 45153
2010-01-14 23:48:59 +00:00
Sebastian Dransfeld 6136509b9f make clang happy
x and y are used later and might be garbage

SVN revision: 45150
2010-01-14 23:48:26 +00:00
Christopher Michael df9e501b10 No point in running find_by_client_window here, we don't use the border
anyway.



SVN revision: 45057
2010-01-12 03:33:34 +00:00
Carsten Haitzler 4ed5747b83 dont show ecore-evas of internal windows b4efore border evals! do it there!
SVN revision: 44995
2010-01-08 23:08:07 +00:00
Christopher Michael f435c770e4 Add illume atoms to e_border struct.
Add code to fetch illume atoms on border map & property changes (if needed).
    - This avoids a lot of round-trip calls to X when running illume2.
Remove whitespace & fix some formatting.
Use PATH_MAX instead of 4096.
Update illume2 code to use new border atoms and avoid round-trip X calls.



SVN revision: 44879
2010-01-04 18:15:56 +00:00
Christopher Michael 69581f2d37 A poller is not a timer. Use proper variable type, and proper delete function.
SVN revision: 44689
2009-12-23 14:04:22 +00:00
Christopher Michael 0007331545 Check that zone exists first before trying to use it.
No need to set border zone twice here.



SVN revision: 44640
2009-12-21 20:54:09 +00:00
Sebastian Dransfeld bda24a1f0d Make clang happy
SVN revision: 44230
2009-12-06 19:42:41 +00:00
Christopher Michael fc7e636c1f just some formatting I noticed while reading code.
SVN revision: 44205
2009-12-05 23:36:42 +00:00
Hannes Janetzek ad1669b3ec keep windows in current zone when it requests to be outside an existing zone
SVN revision: 43271
2009-10-25 15:58:19 +00:00
Hannes Janetzek 984c884fd6 fix pending_mode_resize
SVN revision: 42882
2009-10-05 03:05:10 +00:00
Hannes Janetzek cf7cfc3b58 cleanups and updated comment on sync.wait
SVN revision: 42837
2009-10-01 10:22:27 +00:00