Commit Graph

132 Commits

Author SHA1 Message Date
Kim Woelders 04f040199c moveresize: Remove long time unused swapmove code
Not active because doSwapMove() has been disabled for ages.

Not resurrecting, doesn't seem to work properly.
2022-04-22 07:35:00 +02:00
Kim Woelders edd9216610 arrange: Disable ARRANGE_BY_POSITION mode
Rather perculiar thing..
2022-04-04 18:35:45 +02:00
Kim Woelders 684e911c9e arrange: Simplify/speed up by using qsort(), cosmetics 2022-04-04 18:35:45 +02:00
Kim Woelders b3e5758442 arrange: Minor tweak in SnapEwin()
Use EwinListGetAll() instead of EwinListOrderGet().
ListWinGroupMembersForEwin() uses EwinListGetAll() (i.e. the stacking
list) so it seems more consistent to use the same throughout this
function.
2022-04-04 13:21:18 +02:00
Kim Woelders c5ffe964b0 arrange: Use object order list when arranging
Previously the stacking order was used. This meant that windows of the
same size after stacking changes might be shuffled around when doing e.g.
"desk arrange", which does not seem right.
2022-04-04 13:21:18 +02:00
Kim Woelders 31cb37f935 arrange: Remove pointless call to EwinListGetAll() 2022-04-04 13:21:18 +02:00
Kim Woelders c839d0e14a src: Fix clang-analyzer complaints
arrange.c: Highly unlikely, maybe impossible situations

backgrounds.c: False positive (I think)

dialog.c: Fix memleak/segv on realloc failure

focus.c: False positive
	ewin should never be NULL with FOCUS_EWIN_NEW

main.c: False positive
	eoptarg will always be set if argument requires option

menus.c: Fix memleak on malloc failure

session.c: Fix dead assignment

stacking.c: False positive
	Changed code is nicer though

pager.c: False positive
	ewin would never be NULL if hiwin was NULL
	But rearrange for clarity anyway

ecompmgr.c: Avoid bogus issues
2020-01-29 16:43:01 +01:00
Kim Woelders 802f34f758 Introduxe ArrangeEwinCenteredOn() 2019-03-05 16:15:28 +01:00
Kim Woelders 14b61c1cd1 Fix potential use of uninitialised data.
Reported by clang, will never happen as ArrangeEwinXY will never be
called with ewin = NULL.
2013-07-07 21:03:22 +02:00
Kim Woelders e0d9069d80 Fix some issues reported by clang.
SVN revision: 84012
2013-02-17 00:19:55 +00:00
Kim Woelders ba7d9cc4a9 Fix various issues reported by clang. Minor cleanups.
SVN revision: 81671
2012-12-24 10:41:50 +00:00
Kim Woelders 7fd4f7a71d Cosmetics.
SVN revision: 78407
2012-10-24 17:20:38 +00:00
Kim Woelders 3f8541b565 Move EObj sliding functions to slide.c too.
SVN revision: 73454
2012-07-07 14:05:56 +00:00
Kim Woelders 881a4f10bd Change ewin sliding function API.
- Add speed, mode, and flags parameters to all functions.
- Change slideouts to use the shading speed.

SVN revision: 70826
2012-05-06 17:20:18 +00:00
Kim Woelders 3674582157 Name ewin sliding functions consistently.
SVN revision: 70392
2012-04-22 17:39:42 +00:00
Kim Woelders 0786a813d0 EwinMove/Resize - Change various global/ewin flags to function parameter.
SVN revision: 70390
2012-04-22 17:39:37 +00:00
Kim Woelders 4fb729211b Fix potential placement breakage when there are windows with struts.
SVN revision: 59411
2011-05-15 18:10:14 +00:00
Kim Woelders cc750b67f4 Fix windows sometimes not being placed in unoccupied areas.
SVN revision: 58524
2011-04-09 14:59:34 +00:00
Kim Woelders a2968d89f2 Add options to ignore struts when maximising/fullscreening.
Whether or not to ignore struts can now be configured independently
for maximising, fullscreening, and general window placement.

Patch by Daniel Manjarres.
Also suggested by José Romildo Malaquias.

SVN revision: 57536
2011-03-06 08:26:47 +00:00
Lucas De Marchi 4d4401c5d3 Apply badzero.cocci, badnull.cocci and badnull2.cocci
Since badzero.cocci depends on coccinelle knowledge about a variable being a pointer
and about a function returning a pointer, maybe there are false negatives.



SVN revision: 51092
2010-08-13 17:04:13 +00:00
Kim Woelders 708e19593e Fix some poytential segvs. Minor cleanups.
SVN revision: 49485
2010-06-06 10:05:50 +00:00
Kim Woelders a7e538be10 Trivial fixes (clang).
SVN revision: 45718
2010-01-29 19:45:04 +00:00
Kim Woelders e42a80764f Play sounds by number in stead of by name. Enable disabling specific sounds.
SVN revision: 38142
2008-12-14 16:44:45 +00:00
Kim Woelders c363642d11 Oops - line got lost somewhere.
SVN revision: 34142
2008-03-29 10:34:53 +00:00
Kim Woelders 07b73ff81b Fix bug, avoid allocating excessively large arrays in window placement.
SVN revision: 34137
2008-03-29 08:23:24 +00:00
Kim Woelders 8c8820cb22 Fix potential segv during window placement.
SVN revision: 34114
2008-03-25 22:00:41 +00:00
Kim Woelders 6eaca2639c Eliminate redundant VRoot vars.
SVN revision: 34106
2008-03-24 11:12:40 +00:00
Kim Woelders e7f01c2d6f Add -brs to indent profile.
SVN revision: 34096
2008-03-23 11:54:24 +00:00
Kim Woelders 6215bcb329 Add option to center new windows when desk is full (suggested by George L. Yermulnik).
SVN revision: 33987
2008-03-11 22:03:57 +00:00
Kim Woelders 82e0debd38 Various minor bug fixes, simplifications, and cleanups.
SVN revision: 33986
2008-03-11 22:00:03 +00:00
Kim Woelders 0a05aafc82 Assume free(0) is ok (if not HAVE_FREE_NULL_BUG will have to be defined).
SVN revision: 33818
2008-02-23 12:09:38 +00:00
Kim Woelders 5d35a90a2d New window placement algorithm. Should be better at handling crowded desktops
and windows with never_use_area attribute.


SVN revision: 33637
2008-01-27 18:41:55 +00:00
Kim Woelders 4880283400 Screen stuff naming consistency and code tweaks.
SVN revision: 31874
2007-09-29 19:13:21 +00:00
Kim Woelders 4c80c1de2a Fix window sliding in new boxed mode.
SVN revision: 30341
2007-06-16 08:41:53 +00:00
Kim Woelders f53600e1e8 Cleanups, enable compiling everything as if it were C++.
SVN revision: 28022
2007-01-17 01:10:44 +00:00
Kim Woelders 83bcbbaee1 2007.
SVN revision: 27952
2007-01-13 19:14:29 +00:00
Kim Woelders 606864e876 Fix screen edge resistance in presence of windows with struts.
SVN revision: 23099
2006-06-02 21:25:11 +00:00
Kim Woelders 30f22ddb67 Fix incorrect index range.
SVN revision: 22548
2006-05-12 12:05:27 +00:00
Kim Woelders a8238f7fe9 Fix a number of window placement bugs.
SVN revision: 22446
2006-05-02 23:27:39 +00:00
Kim Woelders 10f06763c6 Eliminate some obsolete code.
SVN revision: 22420
2006-04-30 13:23:01 +00:00
Kim Woelders 01b16242e2 Refactor some more.
SVN revision: 22419
2006-04-30 13:15:52 +00:00
Kim Woelders 678daa662a Refactor some more.
SVN revision: 22418
2006-04-30 12:08:52 +00:00
Kim Woelders 5d4d5dfd23 Refactor some code bits.
SVN revision: 22415
2006-04-30 10:32:48 +00:00
Kim Woelders dbd7cfbc80 Rearrange some code. No actual changes.
SVN revision: 22312
2006-04-23 08:42:17 +00:00
Kim Woelders 31f912bc83 Add feature to subdivide screen (xinerama style).
SVN revision: 22307
2006-04-22 22:00:02 +00:00
Kim Woelders e052f9aceb Move lists to Ecore_List.
SVN revision: 20557
2006-02-18 08:30:09 +00:00
Kim Woelders 056248c884 2006.
SVN revision: 19591
2006-01-07 07:20:58 +00:00
Kim Woelders c24b411115 Split off groups.h. Fix certain hint updates. Cleanups.
SVN revision: 18538
2005-11-19 15:47:10 +00:00
Kim Woelders d588bd9fd5 Focus own dialogs when mapped.
SVN revision: 18463
2005-11-13 12:40:13 +00:00
Kim Woelders 0dfa113313 General bug hunt - Found a few, pedantic cleanups, dead code removal.
SVN revision: 18153
2005-10-30 19:40:49 +00:00