Commit Graph

19 Commits

Author SHA1 Message Date
Kim Woelders 5ce609cca7 Change formatting style
No tabs, more like K&R.
Also switch to indent 2.2.13.
2023-11-26 10:03:45 +01:00
Kim Woelders 49d9d22af8 Build with cast-align=strict, fix warnings 2023-10-24 14:43:50 +02:00
Kim Woelders 597fcf7be7 xprop: Drop setting default desktop names in ex_netwm_desk_names_set()
Should be set up elsewhere.
2022-06-10 20:52:58 +02:00
Kim Woelders c464b8bdcb Set _NET_WM_PID on WM check window
Shown by utilities like wmctrl and xrestop.
2021-08-27 08:00:03 +02:00
Kim Woelders 06458b8953 Drop initial setting of _NET_WM_NAME = "e16" on the root window
It is not required and we override it with the desktop name later
anyway.
2021-08-27 07:59:59 +02:00
Kim Woelders 0aa2f07e6b Refactor atoms handling
Makes adding/changing atom stuff much easier.
2021-08-27 06:55:34 +02:00
Kim Woelders 8f9a57fb10 Add _NET_WM_STATE_FOCUSED to the EWHM atoms 2021-08-21 20:47:34 +02:00
Kim Woelders 206839b33b xprop.c: Do some sanity checks using static asserts if possible 2021-08-21 20:47:00 +02:00
Kim Woelders 204999090e Shuffle some property stuff around
Just somewhat cleaner.
2021-08-21 20:47:00 +02:00
Kim Woelders 358b60baf9 Introduce E_ARRAY_SIZE() and MOD_ITEMS()
Just a bit tidier.
2021-03-19 06:36:46 +01:00
Kim Woelders 88dba1cfff Re-indent with indent-2.2.12 2020-01-23 21:30:02 +01:00
Kim Woelders 077c50513d Forgot indent 2019-02-10 06:07:38 +01:00
Kim Woelders 0e0d840453 Consistently use *ALLOC() macros 2018-12-22 15:45:31 +01:00
Kim Woelders 6e3a325980 xprop.c: Fix warnings found with -O3
If num = 0 realloc() below would use uninitialized lst if op != REMOVE.

However, ex_window_prop_xid_list_change() is currently not used by e16.
2018-03-11 19:47:43 +01:00
Kim Woelders 87ba89d9b4 Fixes for various build corner cases. 2015-04-11 23:19:34 +02:00
Kim Woelders 9c31fe29ed Clean up header file inclusion order.
Fixes building with e.g. -std=c99 and c11 by always including config.h
(which defines _GNU_SOURCE) first.
2015-01-17 19:33:42 +01:00
Kim Woelders b3af089d06 Add missing const + some formatting cosmetics. 2013-12-28 00:10:57 +01:00
Kim Woelders 9ca446396b Move/rename EInternAtom -> ex_atom_get, AtomListIntern -> ex_atoms_get. 2013-04-07 20:02:24 +02:00
Kim Woelders 7678242b64 Move/rename atom/property related wrapper functions and types.
Move e16-ecore_hints.c/h to xprop.c/h.
Rename ecore_x_... -> ex_...
Rename Ecore_X_... -> EX_...
Rename ECORE_X_... to EX_...
2013-04-07 20:02:24 +02:00