Commit Graph

5058 Commits

Author SHA1 Message Date
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
Kim Woelders a91440ebf6 1.0.20. 2019-05-31 18:04:07 +02:00
Kim Woelders 3aec52f580 Fix potential warning
Issued by gcc9 with certain combinations(?) of build options.
2019-05-30 18:18:48 +02:00
Kim Woelders 9f84935029 Fix build without composite 2019-05-30 17:38:37 +02:00
Kim Woelders 48b5d7b401 Add gobject-2.0 dependency in case pango doesn't include it
Apparently it was missing at some point.
2019-05-30 16:11:02 +02:00
Kim Woelders f6cd994124 Update po 2019-05-18 07:12:06 +02:00
Kim Woelders d767409ee8 Make config dialog edge flip mode changes take effect immediately
Previously it required a restart.
2019-05-18 07:08:52 +02:00
Kim Woelders e9c282c773 Forgot some 2019 2019-05-10 06:35:40 +02:00
Kim Woelders d979407994 Update po 2019-04-25 09:40:34 +02:00
Kim Woelders fc567497a9 GSOD: Only react to shown buttons 2019-04-25 09:40:34 +02:00
Kim Woelders 84616e4617 GSOD: Better keyboard grab
XGrabKeyboard() may fail if Alert*() is called from a child process
during an activated passive key grab, e.g. due to a keybinding doing
an "exec some-prog", and execl(some-prog) fails.
If XGrabKeyboard() fails the GSOD will not receive key events and only
the pointer can be used to interact with the GSOD.

Therefore we now also grab all possible keys/modifiers which should
normally include the Fn keys we want, and to some degree ensure that
other keyboard input is caught and ignored.
However, it seems that passive key grabs without modifiers may be
activated (queued) and prevent further key events to the GSOD -
presumably not a major problem in practice.
2019-04-25 09:17:21 +02:00
Kim Woelders e05a7293c6 Fix timer havoc in obscure situations
Not exactly sure when, but timers were created with undefined again,
which could lead to trouble due to unintended timer deletion.
2019-04-25 09:06:06 +02:00
Kim Woelders d77444f16d Fix potential memory leak in _ScreenInitXrandr() 2019-04-25 09:06:06 +02:00
Kim Woelders 4d8f151154 Use pkg-config some more 2019-04-25 09:06:06 +02:00
Kim Woelders 7dd27583aa configure.ac: Drop check for unused wctype.h 2019-04-25 09:06:06 +02:00
Kim Woelders 5d21c40c92 Fix compositing glitches with tiled backgrounds
It seems that sometimes there are rendering glitches when having a tiled
backround with 0 offsets and tile size less than screen size.

In this case the desktop pixmap would be smaller than the screen size and
we rely on the repeat picture attribute in the desktop picture to get it
tiled over the entire desktop window when compositing.

However, it seems that sometimes(?) the desktop window is not properly
repainted outside the top left tile.

To fix this we now always use a full-sized background pixmap when
compositing is enabled.

I think this is an X-server bug but I haven't been able to produce a
test case demonstrating the problem.
2019-04-06 11:10:27 +02:00
Kim Woelders 8ff53d9575 Remove unused header 2019-04-06 11:10:27 +02:00
Kim Woelders 9e476fb426 Fix potential segv in pulseaudio sound handler 2019-04-06 11:10:27 +02:00
Kim Woelders 8994417b49 Fix memory leak in pulseaudio sound loader
The leak only happens when a sound file is first loaded so the leakage
will not grow indefinitely.

Also eliminate global sample_stream and sample_length.
2019-04-06 11:10:27 +02:00
Kim Woelders cb81034902 e_gen_menu: Various corrections and tweaks
- Fix /usr/share/enlightenment -> /usr/share/e16
- Add mimetypes to IconCats
- Avoid duplicates

Thanks to Thanatermesis
2019-04-04 17:07:40 +02:00
Kim Woelders 26643ac49e e_gen_menu: Somewhat random menu generator changes
- Ajust default menu apps
- Add Adwaita (gtk3 default) to the icon theme list
2019-04-04 17:07:24 +02:00