Files
mcde/programs/dtlaunch/Makefile.am
T
lotherkandClaude Sonnet 5.5 a6cb7c3f87 MCDE dtlaunch: told of a new clipboard owner by XFixes, not asking every second (t0080)
XFixesSelectSelectionInput on CLIPBOARD; the event names the new owner, whose
text is read once.  configure.ac checks libXfixes and gives only dtlaunch
XFIXESLIB and XFIXES_CPPFLAGS (-DHAVE_XFIXES); a define in config.h would have
recompiled every file.  Without the library or the extension the owner is asked
every 5 s (POLL_MS, was 1 s).  The recipe lists x11/libXfixes/buildlink3.mk.

Measured with strace (writes to the X socket, 10 s idle after 4 s): 10 before,
0 with XFixes, 2 in the fallback (5.0 s and 10.0 s; tested with an LD_PRELOAD
shim that makes XFixesQueryExtension fail -- Xvfb -extension XFIXES aborts for
any Motif client, also an unmodified dtpad).  Both paths still put a copy made
by xclip during idle into the history (screenshots).  The sysroot has Xfixes.h,
libXfixes.so.4.1 and the pkg-config files; the cross build of the recipe change
is not run yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:58:59 +00:00

19 lines
548 B
Makefile

MAINTAINERCLEANFILES = Makefile.in
# dtlaunch, MCDE's launcher (dtlaunch.c); model.c is the part without X and
# has its own tests (make check).
bin_PROGRAMS = dtlaunch
dtlaunch_SOURCES = dtlaunch.c model.c model.h
dtlaunch_CPPFLAGS = $(XFIXES_CPPFLAGS)
dtlaunch_LDADD = $(XFIXESLIB) $(XTOOLLIB) -lm
check_PROGRAMS = test_model
test_model_SOURCES = test_model.c model.c model.h
test_model_LDADD = -lm
TESTS = test_model
# an example for ~/.dt/snippets
exampledir = $(CDE_INSTALLATION_TOP)/examples/dtlaunch
dist_example_DATA = snippets.example