Commit Graph

5364 Commits

Author SHA1 Message Date
Kim Woelders e436edb5c9 Fix a couple of bugs in new quoting/comment handling 2023-06-27 06:12:33 +02:00
Kim Woelders 30bdaa84cb bindings: Handle quoting in AclassConfigLineParse()
Commands in bindings can now use quoting.

Suggested by Dennis Nezic.
2023-06-26 19:52:23 +02:00
Kim Woelders 050d310ce6 ipc: Avoid potential crash in AclassConfigParseIpc()
Also, let AclassConfigLineParse() deal with comments.
2023-06-26 19:52:23 +02:00
Kim Woelders 890173a5cf Move some string handling functions around
To a maybe sligthly more logical location.
2023-06-26 19:52:15 +02:00
Kim Woelders 43ef8fcfb6 eesh: Workaround problem with _FORTIFY_SOURCE=3
When using _FORTIFY_SOURCE=3 it appears we get like
$ eesh a b
*** buffer overflow detected ***: terminated
Aborted (core dumped)

The apparently offensive code is correct, so this must be a bug in
gcc(-13.1.1).
2023-06-26 06:52:29 +02:00
Kim Woelders 4015600f26 events: Fetch events also when blocked
Fetch but don't process, just queue up.
Should make no difference for now but may be needed later.
2023-06-14 17:39:34 +02:00
Kim Woelders 54845aae1c events: Separate event fetching and processing 2023-06-14 17:39:34 +02:00
Kim Woelders bccc3fc431 events: Change some variable names 2023-06-14 17:39:34 +02:00
Kim Woelders 6e2d665127 eesh: Trivial cleanups 2023-06-14 17:36:50 +02:00
Kim Woelders 07bdcfdb6b GSOD: Ungrab server before opening new connection
Going here while having grabbed the server would cause a deadlock when
opening the new connection.
2023-06-14 17:35:29 +02:00
Kim Woelders 16ca9c9ef4 startup: Only repaint if animating
Also
- Insert delay to "show" progress
- End at 100%
2023-03-20 13:57:54 +01:00
Kim Woelders f384e2adc0 desks: Prevent nested desk switches
Using the mouse wheel (maybe also the keyboard?) it was possible to
start an animated desk switch while one was already in progress.
This could cause some incorrect state and window placement.

Also add a few debug messages.
2023-03-20 13:50:45 +01:00
Kim Woelders 52c127d896 Revert "ewins: Remove redundant container window move"
This move is not redundant. If removed the container window may not be
correctly placed when calculating shape.

This reverts commit 8a3c11c449.
2023-03-03 17:00:57 +01:00
Kim Woelders 19ed4327f1 menus: Expose option to show/hide menu icons in configuration dialog
#9
2023-03-01 09:09:14 +01:00
Kim Woelders f7358aff2c e_gen_menu.pl: Fix for new IPC parser
Just keeping it working for comparison with new python version.
2023-03-01 09:07:36 +01:00
Kim Woelders 32b0fb591e Add missing include 2023-02-06 17:32:34 +01:00
Kim Woelders 1cef4a1044 cursors: Rework cursor creation
In non-ancient mode (i.e. using XRenderCreateCursor) this should be
somewhat more efficient.
2022-12-28 09:42:13 +01:00
Kim Woelders 8f64686175 cursors: Mostly cosmetic function name changes 2022-12-28 09:42:13 +01:00
Kim Woelders d9549a75e8 cursors: Mostly cosmetic adjustments around fore/background colors
Properly propagate the foreground/background color values and swap them
where applied (due to inverted cursor image bitmaps).
Should make things a bit less confusing.
2022-12-28 09:42:01 +01:00
Kim Woelders 304e66645c extinitwin: Move null cursor definition to separate function
Should make it a bit more clear what goes on here.
2022-12-25 11:57:18 +01:00
Kim Woelders 5fe3253e3a eimage: Split EImageDefineCursor 2022-12-25 11:55:17 +01:00
Kim Woelders 53b82bbd26 Some include tweaks 2022-12-21 20:05:56 +01:00
Kim Woelders fcdcf8f5ea matches.cfg: Ignore virtualbox move requests
Does weird stuff, particularly annoying when switching areas during VM
startup.

Also remove old disabled entry.
2022-12-17 09:08:34 +01:00
Kim Woelders b41a6a9a53 pagers: Avoid some overhead 2022-12-11 20:19:09 +01:00
Kim Woelders 5a4f56e1e2 Forgot some 2022 2022-12-11 20:17:26 +01:00
Kim Woelders ff293d12d2 ewins: Tweak spurious MapRequest handling
Some clients produce multiple MapRequests (presumably by doing
multiple XMapWindow()s early, which hits case "B").
Not sure when case "A" is hit, maybe in connection with incorrect
iconification or withdrawal and re-map.

Now we only reparent (and move) if not already reparented, and place
correcly in the no-container case (which most likely is to do nothing
as the window probably already is parented/placed correctly).
Also always print a message to the console on spurious MapRequests.

This fixes client window placement within the frame in the no-container
case with some clients.
2022-12-11 16:21:42 +01:00
Kim Woelders 8a3c11c449 ewins: Remove redundant container window move
.. I think..

If for some reason this move is needed, it should probably be done in
EwinBorderCalcSizes() where the other frame windows (border parts) are
moved/sized.

Normally the container window placement is performed by
Ewin(Move)Resize().
2022-12-11 16:21:17 +01:00
Kim Woelders 4cbd7179b2 memory.c: Consistently use EMALLOC() 2022-12-10 15:02:59 +01:00
Kim Woelders ee2da6a545 focus: Keep focus when un-fullscreened
With pointer focus modes, when un-fullscreening a focused window, focus
was lost if the pointer landed in another window.

#5
2022-12-09 16:11:46 +01:00
Kim Woelders a90ac65bd7 1.0.27 2022-11-25 06:46:07 +01:00
Kim Woelders 58f9689254 e_gen_menu: Fix menu generation
Was broken by the new IPC input parser that now deals more or less
properly with quoting.
2022-11-24 22:31:00 +01:00
Kim Woelders 6a0c30e77f timers: Properly fix timer lockup issue
Adding timers from within timer callback functions could cause lockups
and memory leaks.
2022-10-30 10:28:14 +01:00
Kim Woelders 286a815b92 timers: Fix potential lockup when switching desks fast
Not sure exactly why - probably some nested timer calls - but this seems
to fix the problem.
2022-10-28 22:30:34 +02:00
Kim Woelders b7e7f62085 1.0.26 2022-10-24 08:20:07 +02:00
Kim Woelders b25c37c366 Update po 2022-10-24 08:20:07 +02:00
Kim Woelders de0dcfadb9 autofoo: Rework git tag/release stuff
- Add 'release' target to make dist without git tag in rpm name and
  version string.
- Use .git-src (not .git) to test if we are building from git.
2022-10-23 08:21:59 +02:00
Kim Woelders 6a1a3fff15 autofoo: Fix incorrect handling of no-container option
cf4e4d7193 inadvertently changed
USE_CONTAINER_WIN to be disabled by default.

Disabling USE_CONTAINER_WIN causes focus issues and incorrect initial
placement of client in frame window for some clients, so this disabling
by default is rather unfortunate.
2022-10-20 20:24:50 +02:00
Kim Woelders 1e757064a9 Handle quoting in StrlistDecodeEscaped()
IPC commands and exec's in menu files can now use quoting.
2022-10-05 20:17:44 +02:00
Kim Woelders f9f21a149a eesh: Improve argument passing
Quote arguments containing spaces.
2022-10-05 19:59:13 +02:00
hugok 6604664f79 Portuguese translation update (Hugo Carvalho) 2022-09-27 07:43:21 -07:00
Kim Woelders 6c1fbaaedd Fix some clang-analyzer complaints 2022-09-22 07:35:30 +02:00
Kim Woelders 845cbedaf7 autofoo: Drop pkg_revision some more 2022-07-23 14:53:37 +02:00
Kim Woelders dee8d4f369 edge: Prevent pointer click and motion events propagating to root
Avoids activating desk flips, root menus, and root window tooltips when
clicking on or moving over the edge windows.
2022-07-23 13:44:51 +02:00
Kim Woelders 032e0b3896 edge: Refactor window creation 2022-07-23 13:44:51 +02:00
Kim Woelders ee3355669c edge: Cosmetics 2022-07-23 13:44:51 +02:00
Kim Woelders 3b07d3f12a events: Discard all but last reparent event in queue for window
Processing obsolete reparent events may cause trouble.
However, this is probably no guarantee that all obsolete reparent events
are discarded.
2022-07-02 22:58:02 +02:00
Kim Woelders 504b75bc70 events: Trivial cleanup 2022-07-02 22:57:53 +02:00
Kim Woelders 6369dfa7dd menus: Fix potential crash
When requesting to show a menu already shown it would be hidden before
being shown again, which could cause a crash due to incorrect processing
of reparent events.

Now we just ignore requests to show a menu that is aleady shown, which
bypasses the event processing issue and is reasonable anyway.
2022-07-02 22:57:53 +02:00
Kim Woelders eaf6872dcb autofoo: Drop pkg_revision 2022-07-02 22:57:53 +02:00
Kim Woelders 1bf2cb0751 French translation update (Philippe J. Guillaumie) 2022-06-18 19:11:31 +02:00