Dropdown.c: full width, 40 % of the screen high, override-redirect, hidden until its key (resource dropdownKey, F12); then it slides down in 8 steps to below the top bar and takes the keyboard, the key sends it back up. The key is grabbed on the root window (with the CapsLock/NumLock combinations, a BadAccess is reported) and taken in dtterm's own event dispatcher (XtSetEventDispatcher): registering the root window with a widget did not bring it. Xsession.d/0085.dtdropdown starts it in every session. Tested on Xvfb with dtwm and dtbar: hidden at start, down on F12 below the bar with the keyboard (typed 'echo dropped down'), up again on F12. xdotool key F12 maps F12 to a spare keycode the grab never sees; the test sends an XTest event on F12's own keycode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
bin_PROGRAMS = dtterm
|
|
|
|
dtterm_LDADD = $(LIBTERM) $(DTCLIENTLIBS) $(XTOOLLIB)
|
|
|
|
if BSD
|
|
dtterm_LDADD += -lutil
|
|
endif
|
|
|
|
if HAS_UTEMPTER_LIBRARY
|
|
dtterm_LDADD += -lutempter
|
|
endif
|
|
|
|
dtterm_CFLAGS = -I$(top_builddir)/lib/DtTerm/TermPrim \
|
|
-I$(top_builddir)/lib/DtTerm/Term \
|
|
-I$(top_builddir)/lib/DtTerm/TermView \
|
|
$(DT_INCDIR) -I$(top_srcdir)/include \
|
|
-DSUN_TERMINAL_SERVER \
|
|
-DMCDE_PROFILES_CONF=\"$(CDE_CONFIGURATION_TOP)/config/dtterm.profiles\" \
|
|
-DMCDE_PROFILES_SYS=\"$(CDE_INSTALLATION_TOP)/config/dtterm.profiles\"
|
|
|
|
dtterm_SOURCES = DtTermLogit.c DtTermMain.c DtTermFallBackResources.c \
|
|
sunDtTermServer.c DtTermSyntax.c DtTermLogit.h \
|
|
DtTermMain.h DtTermServer.h DtTermSyntax.h \
|
|
Tabs.c Tabs.h Profiles.c Profiles.h Dropdown.c Dropdown.h
|
|
|
|
# Profiles.c is the part without X and has its own tests (make check)
|
|
check_PROGRAMS = test_profiles
|
|
test_profiles_SOURCES = test_profiles.c Profiles.c Profiles.h
|
|
TESTS = test_profiles
|
|
|
|
CPP_TARGETS = dtterm.ti DtTermFallBackResources.c.src \
|
|
DtTermFallBackResources.c Dtterm.ad
|
|
|
|
BUILT_SOURCES = $(CPP_TARGETS)
|
|
CLEANFILES = $(CPP_TARGETS)
|
|
|
|
cfgdir = $(CDE_INSTALLATION_TOP)/config
|
|
dist_cfg_DATA = dtterm.ti dtterm.profiles
|
|
|
|
Dtterm.ad: Dtterm.ad.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# $< > $@
|
|
|
|
DtTermFallBackResources.c.src: Dtterm.ad.src
|
|
$(RM) $@
|
|
$(GENCPP) -P -DXCOMM=# -DFALLBACK_RESOURCES $< > $@
|
|
|
|
DtTermFallBackResources.c: DtTermFallBackResources.c.src
|
|
$(RM) $@
|
|
./mkfallbk < DtTermFallBackResources.c.src > $@
|
|
|
|
dtterm.ti: terminfoChecklist
|
|
$(RM) $@
|
|
CPP="$(GENCPP)" $(SHELL) terminfoCreate < terminfoChecklist > $@
|
|
|