mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +01:00
- added WMRemoveFromArrayMatching(array, match, cdata), which will remove the
first element in the array that is matched by match(item, cdata)==True. - added WMArrayFirst(), WMArrayLast(), WMArrayNext() and WMArrayPrevious() functions and also WM_ITERATE_ARRAY() and WM_ETARETI_ARRAY() macros, to make interfaces to WMBag and WMArray similar and to make life a little simpler when iterating through all elements of an array. - replaced bags with arrays wherever appropriate. This will improve performance a bit. - replaced some recursive code with iterative code in WINGs/selection.c - some code cleanup is src/
This commit is contained in:
@@ -107,8 +107,8 @@ typedef struct _WScreen {
|
||||
* Use this list if you want to
|
||||
* traverse the entire window list
|
||||
*/
|
||||
|
||||
WMBag *selected_windows;
|
||||
|
||||
WMArray *selected_windows;
|
||||
|
||||
struct WAppIcon *app_icon_list; /* list of all app-icons on screen */
|
||||
|
||||
@@ -291,7 +291,7 @@ typedef struct _WScreen {
|
||||
scrolled down for titlebar access */
|
||||
|
||||
/* for window shortcuts */
|
||||
WMBag *shortcutWindows[MAX_WINDOW_SHORTCUTS];
|
||||
WMArray *shortcutWindows[MAX_WINDOW_SHORTCUTS];
|
||||
|
||||
#ifdef XDND
|
||||
char *xdestring;
|
||||
|
||||
Reference in New Issue
Block a user