Kim Woelders
048c7bd36c
comms: Simplify _CommsFindCommsWindow()
...
No need to check with XGetGeometry(). If XGetWindowProperty() succeeds
we are good.
2023-12-23 15:10:30 +01:00
Kim Woelders
a85954ad53
comms: Some trivial changes
2023-12-23 14:53:44 +01:00
Kim Woelders
9561cc6cdc
comms: Refactor atom handling code
2023-12-23 14:52:39 +01:00
Kim Woelders
4ff99896e0
api: Move comms stuff to separate file
2023-12-23 13:53:13 +01:00
Kim Woelders
d7b1d0c813
api: Cosmetics
...
- Rename ECommsGet() to CommsHandleClientMessage()
- Rename ECommsWaitForMessage() to CommsWaitForMessage()
- Normally use Epplet_wait_for_ipc(), not CommsWaitForMessage() internally
2023-12-16 17:12:32 +01:00
Kim Woelders
59b3428054
api: Enable launching epplets into window mode e16
2023-12-16 17:12:32 +01:00
Kim Woelders
3a0345032f
api: Eliminate redundant dd
2023-12-11 19:06:28 +01:00
Kim Woelders
1ee805ce65
api: Simplify Estrdup()
...
Assume we have strdup() like everywhere else in the epplets code.
2023-12-11 19:06:28 +01:00
Kim Woelders
917c8f8b84
api: Use InputOnly window for comms
2023-12-11 19:06:28 +01:00
Kim Woelders
b57411ca2b
api: Introduce Epplet_wc_callback_t
...
Avoiding some indent instability.
2023-12-11 19:04:20 +01:00
Kim Woelders
1c619b8e56
Change formatting style
...
No tabs, more like K&R.
Also switch to indent 2.2.13.
2023-12-11 19:04:20 +01:00
Andrew Savchenko
a700d6b982
Include <sys/select.h> for fd_set
...
When fd_set is used <sys/select.h> should be included.
On glibc it is done implicitly via other headers,
on musl it must be explicitly provided.
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
2022-08-01 19:33:33 +02:00
Kim Woelders
ef5b344116
Change Epplet_send_ipc() to printf() style
...
And eliminate ECommsSend().
2022-03-10 07:46:01 +01:00
Kim Woelders
a95cebeea1
api.c: Avoid graphics exposure events
2022-01-22 17:35:35 +01:00
Kim Woelders
23cb0977a4
Trivial cleanups around *alloc functions
...
- Replace malloc+memset with calloc
- Remove unnecessary casts
- Some cosmetics
2022-01-18 18:51:43 +01:00
Kim Woelders
9e2045a54b
Epplet_load_config(): Fix memory leak when called more than once
2021-09-02 19:57:55 +02:00
Kim Woelders
b09b798681
Bump .so file version (added symbols)
2021-09-02 07:16:31 +02:00
Kim Woelders
b76845e265
Introduce Epplet_Exit()
...
Avoiding some code duplication.
2021-09-02 07:16:31 +02:00
Kim Woelders
b436df8d7a
Centralize setting up atexit(Epplet_cleanup)
2021-09-02 07:16:31 +02:00
Kim Woelders
d1ca9c1c1c
Drop pointer test for free()
2021-09-02 07:16:30 +02:00
Kim Woelders
87a3dbceac
Change E[v]snprintf -> [v]snprintf
2021-08-31 07:49:36 +02:00
Kim Woelders
9cb4561227
Indent tweaks, cleanups
2021-08-31 07:47:46 +02:00
Kim Woelders
83e1e71bee
Introduce Epplet_adjust_priority()
...
Avoiding some code duplication.
2021-08-31 07:11:23 +02:00
Kim Woelders
a128ce65ce
Drop snprintf source
...
Nobody hasn't got that these days.
Also drop some unused autofoo stuff.
2021-08-31 07:11:23 +02:00
Kim Woelders
b0cbcb1f8a
Add option to build with asan
2021-08-31 07:11:11 +02:00
Kim Woelders
b0192f9165
Drop old hint stuff
...
Has probably been obsolete for more than a decade by now.
2021-08-23 14:40:42 +02:00
Kim Woelders
901f4af699
Eliminate obsolete AC_HEADER_TIME
2021-03-26 16:33:08 +01:00
Kim Woelders
0d88c6d795
Enable visibility hiding by default
...
Makes next to no difference in sizes.
Let's just do it anyway.
2019-03-13 19:25:12 +01:00
Kim Woelders
2e970c84f8
Fix build with -fvisibility=hidden
...
Just using EAPI from Imlib2.h.
2019-03-13 18:52:38 +01:00
Kim Woelders
49aafdaf62
Change Epplet_dialog_ok() to printf() style
...
.. avoiding some format-truncation warnings.
2018-08-13 13:22:08 +02:00
Kim Woelders
03408c7d36
Avoid format-truncation warning
2018-08-12 17:39:13 +02:00
Kim Woelders
919dc4c069
Warning cleanups - api.
2016-08-19 09:31:09 +02:00
Kim Woelders
bb351a0665
Autofoo update (warnings).
2016-08-19 09:31:09 +02:00
Kim Woelders
f1c8766cca
Use "wop" in stead of ancient "remember" IPC command.
...
Already done in remember case, seems appropriate for unremembering too.
2013-07-14 16:39:59 +02:00
Kim Woelders
631daee134
Remove obsolete USE_OLD_REMEMBER/NO_AUTO_RESPAWN stuff.
2013-07-12 22:23:18 +02:00
Kim Woelders
7e8e4fbc92
Fix linking on Fedora with ld.gold.
...
SVN revision: 77227
2012-09-30 09:41:38 +00:00
Kim Woelders
f642c0da22
Minor cleanups in the comms department.
...
SVN revision: 77226
2012-09-30 09:41:36 +00:00
Kim Woelders
22e7b1bbae
Use XkbKeycodeToKeysym() in stead of XKeycodeToKeysym().
...
Avoids deprecation warning.
SVN revision: 77225
2012-09-30 09:41:34 +00:00
Kim Woelders
ee7cfd147d
Indent.
...
SVN revision: 77224
2012-09-30 09:41:07 +00:00
Lucas De Marchi
9c2a943418
Apply badzero.cocci, badnull.cocci and badnull2.cocci
...
Since badzero.cocci depends on coccinelle knowledge about a variable being a pointer
and about a function returning a pointer, maybe there are false negatives.
SVN revision: 51092
2010-08-13 17:04:13 +00:00
Lucas De Marchi
1ed7653a27
Do not compare pointers to 0
...
SVN revision: 50973
2010-08-10 19:24:38 +00:00
Lucas De Marchi
2d992bb760
Spell: rememebr => remember
...
SVN revision: 50686
2010-07-30 11:34:08 +00:00
Lucas De Marchi
deadbb382c
Fix wrong type in malloc
...
Bugs found by bad-malloc.cocci
SVN revision: 50194
2010-07-12 03:35:43 +00:00
Kim Woelders
b907c9f828
Fix some warnings.
...
SVN revision: 48475
2010-04-30 14:04:50 +00:00
Kim Woelders
54c47230bf
Avoid some crashes on early exit. Cleanups.
...
SVN revision: 38413
2009-01-01 20:42:28 +00:00
Kim Woelders
3f5450a1fd
About epplet tweaks (edox) - Remove fonts, use default bg.png.
...
SVN revision: 38407
2009-01-01 20:42:13 +00:00
Kim Woelders
f3b3be3324
Remove .cvsignore.
...
SVN revision: 35637
2008-08-23 23:29:40 +00:00
Kim Woelders
793ebd0127
Remove RCS tags and debian remnants.
...
SVN revision: 35629
2008-08-23 15:56:25 +00:00
Kim Woelders
67b96eca0f
GLU is not used.
...
SVN revision: 32746
2007-11-17 16:22:59 +00:00
Kim Woelders
efa657cc06
Move glx stuff to separate library.
...
SVN revision: 32745
2007-11-17 16:16:09 +00:00