Files
mcde/programs/dtwm/Makefile.am
T
lotherkandClaude Opus 5.5 14b53c70f1 mcde: dtwm: backdrops from picture files, a folder as a slideshow
f.change_backdrop with pixmap 0 makes dtwm load the picture itself
(XmGetPixmap: JPEG and PNG through Motif), and the request is parsed from
its end, so a path may hold blanks.  f.mcde_slideshow INTERVAL RANDOM STYLE
FOLDER, and the resource Dtwm*mcdeSlideshow at the start, change the
backdrop of every workspace every INTERVAL minutes, in order or at random;
the folder is read anew each time.  Fit and Fill scale with Xrender's
bilinear filter instead of the nearest pixel.

Measured on Xvfb (build/mcde-shots/slide-*.png): c-red.jpg from "My
Pictures" filled the screen; the slideshow showed a-blue.jpg at once,
fitted, and the next picture after one minute; dtwm kept running.

Found: Motif 2.3.8 draws an RGB PNG without alpha as its blue channel only
(lib/Xm/Png.c shifts right where it must shift left);
docs/reference/motif-png.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:54:21 +00:00

55 lines
2.0 KiB
Makefile

MAINTAINERCLEANFILES = Makefile.in
bin_PROGRAMS = dtwm dtfplist
configdir = $(CDE_INSTALLATION_TOP)/config/C
dist_config_DATA = sys.dtwmrc
BUILT_SOURCES = sys.dtwmrc Dtwm.defs
CLEANFILES = sys.dtwmrc Dtwm.defs
AM_CPPFLAGS = -DLARGECURSORS -DR2_COMPAT -DOPAQUE -DSHAPE -DUNMAP_ON_RESTART \
-DBATCH_DRAG_REQUESTS -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
dtwm_LDADD = $(DTCLIENTLIBS) $(XTOOLLIB)
dtfplist_LDADD = $(DTCLIENTLIBS) $(TIRPCLIB) $(XTOOLLIB)
if SOLARIS
dtwm_LDADD += -lintl -lresolv
dtfplist_LDADD += -lintl -lresolv
endif
dtwm_SOURCES = WmCDInfo.c WmCDecor.c WmCEvent.c \
WmCPlace.c WmColormap.c WmError.c \
WmEvent.c WmEwmh.c WmFeedback.c \
WmFunction.c WmGraphics.c WmIDecor.c \
WmIPlace.c WmIconBox.c WmImage.c \
WmInitWs.c WmKeyFocus.c WmMain.c \
WmManage.c WmMenu.c WmProperty.c \
WmProtocol.c WmResCvt.c WmResParse.c \
WmResource.c WmSignal.c WmWinConf.c \
WmWinInfo.c WmWinList.c WmWinState.c \
WmMultiHead.c Button.c Callback.c \
Clock.c DataBaseLoad.c PanelS.c \
Parse.c PopupMenu.c Session.c \
UI.c WmBackdrop.c WmFP.c \
WmSlideshow.c \
WmHelp.c WmIPC.c WmInstantTitle.c \
WmOL.c WmParse.c WmParseP.c \
WmPresence.c WmWrkspace.c WmXSMP.c
dtfplist_SOURCES = Print.c Parse.c DataBaseLoad.c WmParse.c Session.c
SCRIPTFLAGS = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP)
Dtwm.defs: Dtwm.defs.src
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@
sys.dtwmrc: sys.dtwmrc.src
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@