Commit Graph

5028 Commits

Author SHA1 Message Date
Kim Woelders be8c4faf60 Add alsa-lib sound backend 2020-05-05 10:22:36 +02:00
Kim Woelders 47d9555861 Minor cleanups in sound players
The sample pointers will never be NULL in _Play() and _Destroy() so drop
checks.

Also drop some pointless pointer clearing.
2020-05-05 10:15:44 +02:00
Kim Woelders 26e106a613 Avoid potential crash when attempting to enable sound, cosmetics
IF sound initialization fails AND then attempting to enabling sound with
"eesh set sound.enable 1" (which didn't actually enable sound), e16
could crash.
2020-05-02 11:11:10 +02:00
Kim Woelders d24cdd303b GSOD: Avoid rendering artifacts when unmapped
Somewhat hacky as the compositor may discard window events if the window
destroy event is received in the same batch as the map(reparent) event,
hence the delay before destroy.
2020-05-02 09:56:04 +02:00
Kim Woelders 42447b16d3 Minor cleanups after sound by audio player feature
- Correct configure.ac help string
- Issue warning if player is not executable

Also change sound server problem warning message from GSOD to dialog.
2020-05-02 08:12:46 +02:00
Kim Woelders 9a6825fadf Introduce path_canexec0() for convenience 2020-05-02 08:11:30 +02:00
Kim Woelders 1ea08c2075 Optionally play sounds using audio player 2020-05-01 15:42:03 +02:00
Kim Woelders 0ef79b8771 Autofoo sound configuration cosmetics 2020-05-01 14:11:26 +02:00
Kim Woelders cf552ef7f9 Enable sounds in combined configuration dialog 2020-05-01 14:11:26 +02:00
Kim Woelders 8b10610095 Espawn(): Use variable argument list 2020-05-01 14:11:26 +02:00
Kim Woelders 7d7ec4add2 edox: Fix missing return value (at previously unreachable function exit) 2020-05-01 14:11:23 +02:00
Kim Woelders 893ccb4bce edox: Add a couple of forgotten casts 2020-05-01 14:11:22 +02:00
Kim Woelders a35ea61980 Spec file: Add git tag to rpm file name (if built from git checkout) 2020-03-07 17:30:56 +01:00
Kim Woelders dca85018b7 configure.ac: Drop unnecessary prefix stuff 2020-03-07 17:30:56 +01:00
Kim Woelders cee07a720a groups.c: Correct debug stuff 2020-03-07 17:30:56 +01:00
Kim Woelders 7011dc150d Hide Group struct internals 2020-03-07 17:30:56 +01:00
Kim Woelders 36b4eff7cc Fix incorrect check for __attribute__ ((unused)))
Worked with gcc which allows nested functions but not with
clang-analyzer which doesn't.
2020-02-08 09:03:35 +01:00
Kim Woelders 4fb216e825 autogen.sh: Add -n as alternative to NOCONFIGURE 2020-02-08 09:03:35 +01: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 910a27dd56 edox: Fix clang-analyzer complaints 2020-01-29 16:39:39 +01:00
Kim Woelders 72a86722a7 eesh: Fix clang-analyzer complaints
The -e and -ewait options haven't done anything a normal
non-interactive invocation does in ages.

Just ignore them and let the malloc'ing argument handling deal with it.
2020-01-29 16:39:39 +01:00
Kim Woelders b6f500f3bc aclass.c: Fix valgrind complaint 2020-01-25 14:36:47 +01:00
Kim Woelders 32e9cf4535 slideouts: Fix potential crash
For obscure reasons(?) Mode.context_win may be set to some large window.
If a slideout is then shown (if the slideout doesn't fit between the
window and the screen edge), SlideoutShow() will call itself recursively
until we crash.
2020-01-25 14:32:47 +01:00
Kim Woelders 031b9dd23e slideouts: Refactoring
- Split up SlideoutCalcSize().
- Move the functions to avoid forward declarations.
- Drop pointless call in SlideoutAddButton().
2020-01-25 14:32:47 +01:00
Kim Woelders b294796de2 slideouts: Use defines for directions
And correct the two incorrect ones.
2020-01-25 14:32:47 +01:00
Kim Woelders 88dba1cfff Re-indent with indent-2.2.12 2020-01-23 21:30:02 +01:00
Kim Woelders 9d3875afce Indent profile - Drop -bad for now as it does silly things 2020-01-23 21:30:02 +01:00
Kim Woelders 18f9df7774 Fix unmaximizing by _NET_WM_STATE[_MAXIMIZED_...] 2020-01-23 20:30:23 +01:00
Kim Woelders efb00936d7 libhack: Intercept XSendEvent too 2020-01-23 20:30:03 +01:00
Kim Woelders 4e74e31d23 bindings: Add 'W' as alias for modifier 4 2020-01-23 20:29:51 +01:00
Kim Woelders d4278e802e windowmatches: Add some consts 2020-01-23 20:29:15 +01:00
Kim Woelders 8f1bfc4f53 Fix warnings occurring in various situations 2020-01-23 20:29:05 +01:00
Kim Woelders c40e0e4787 Consistently use @ as token delimiter in .in files 2020-01-18 06:10:31 +01:00
Kim Woelders 7836d0cf3e windowmatches: Enable having spaces in name matches 2020-01-06 17:22:06 +01:00
Kim Woelders 4df8199d60 windowmatches: Remove some cruft 2019-12-28 10:47:15 +01:00
Kim Woelders e101ec06a7 windowmatches: Issue notice when discarding invalid one 2019-12-25 16:50:37 +01:00
Kim Woelders 36763cc7e2 windowmatches: Resurrect USE_ICON_IMAGE_FOR_CLIENT_() macros 2019-12-25 16:23:35 +01:00
Kim Woelders 4bedde9c1b definitions: Empty obsolete windowmatch macros
Haven't worked in ages.
2019-12-25 16:23:35 +01:00
Kim Woelders 4daa634a06 windowmatches: Remove ancient incorrect case values 2019-12-25 14:25:52 +01:00
Kim Woelders 57be6615d3 windowmatches: Fix use of MAKE_WINDOW_STICKY_...() macros
Looks like the last time this worked was in 0.16.8.
2019-12-25 14:25:40 +01:00
Kim Woelders d747d0ddef e_gen_menu: Drop ConsoleOnly apps 2019-12-25 14:25:18 +01:00
Kim Woelders a30f4bf566 Use installed gettext version, if possible
Seems reasonable and may avoid warnings like
 The 'AM_PROG_MKDIR_P' macro is deprecated, ...
2019-11-02 16:40:56 +01:00
Kim Woelders a6a411eb93 1.0.21.000 2019-11-02 16:40:56 +01:00
Kim Woelders 54901d1404 1.0.21. 2019-10-24 18:54:03 +02:00
Kim Woelders 2cc912a425 Update po 2019-10-24 18:39:08 +02:00
Kim Woelders 8a62cc19f9 e_gen_menu: menu generation speedups
Patch by Thanatermesis
2019-10-03 18:54:05 +02:00
Ingo Feinerer 04ec9834d9 Add sndio sound back end 2019-08-14 15:14:45 +02:00
Kim Woelders 7af2a15fef Fix using sound in modular build
Also remove obsolete __EXPORT__s on Strlist.. functions.
2019-08-10 16:32:48 +02:00
Kim Woelders c67ebd88ba Explicitly include sys/select.h where needed
... rather than relying on it to be included via sys/time.h or sys/types.h.
2019-07-30 17:40:04 +02:00
Kim Woelders c423cd13f6 Include potentially missing sys/select.h
Patch by Ingo Feinerer <feinerer@logic.at>:

the compilation of E16 fails on OpenBSD with following error message:

enlightenment-1.0.20/e16-1.0.20/eesh/main.c:90:4: error: use of undeclared identifier 'fd_set'
   fd_set              fd;
   ^

enlightenment-1.0.20/e16-1.0.20/eesh/main.c:227:2: warning: implicit declaration of function 'FD_ZERO' is invalid in C99 [-Wimplicit-function-declaration]
        FD_ZERO(&fd);
        ^

This is because FD_SET lives in the sys/select.h header in OpenBSD.

This seems to be the case on newer Linux systems as well:

https://linux.die.net/man/3/fd_set

 /* According to POSIX.1-2001 */
 #include <sys/select.h>
2019-07-30 17:30:02 +02:00