Liang Chang
7734a01e41
dtwm: Create stretcher windows when regenerate a frame for a frameless
...
window to make the resize cursors show again.
2021-11-05 14:21:33 +08:00
Liang Chang
d90f765c0a
dtwm: Create title bar window if clientTitleWin is NULL when regenerate
...
client frame.
2021-11-05 14:21:33 +08:00
Liang Chang
f05bc54ceb
dtwm: To avoid a segfault, allocate gadget rectangles when regenerate
...
window frame. A typical case, create a frameless window then regenerate
it's frame.
2021-11-05 14:21:33 +08:00
Liang Chang
8fa32b3db5
dtwm: Trigger fullscreen in an "edge trigger" manner to avoid wrong
...
behaviors caused by some unusual operations. E.g., after entered
fullscreen, applications change windows to other states instead of
leaving fullscreen.
2021-11-05 14:21:32 +08:00
Jon Trulson
c12e6fea5b
dtinfo: remove endian checks from Makefile, handled by autotools now
2021-10-23 22:08:48 -06:00
Jon Trulson
9369d1d5b9
dtcm: timeops.c/getdate.y: fix fbsd build errors
...
Commit e0508b31 introduced build errors on FreeBSD. This corrects
them.
HAVE_DECL_TIMEZONE should only be used to determine whether or not the
'timezone' variable is defined in a header file or whether it must be
specifically 'extern'ed.
On fbsd, a definition exists, but it is a function in libc and not an
integer timezone value that can be mutliplied or divided.
2021-10-23 21:59:33 -06:00
Jon Trulson
5754d65248
ttsnoop/DtTt.C: fix -Wreturn-type warnings
2021-10-23 16:44:48 -06:00
Jon Trulson
237a3a4d94
DtSetPref.C: fix some pointer<->int conversions
2021-10-23 15:47:21 -06:00
Jon Trulson
d7223930d4
dtkcmds.c: fix some pointer<->int conversions
2021-10-23 15:47:09 -06:00
Jon Trulson
efa6b6eadc
dtksh: move fsym() into widget.c where it belongs
...
This function is only used in one place, so move it there and delete
findsym.c
2021-10-23 15:05:56 -06:00
Jon Trulson
03c71dd23e
xdmauth.c: fix some implicit-int warnings
2021-10-23 14:24:23 -06:00
Jon Trulson
d880853113
tptregexp/regsub.c: use string.h
2021-10-23 14:13:33 -06:00
OBATA Akio
e0508b3130
dtcm: change to detect TZ offset way with configure
2021-10-23 18:29:04 +09:00
OBATA Akio
87bdee3d19
dtcm: change to use `_XLocaltime` instead of `localtime` consitently
2021-10-23 16:54:35 +09:00
OBATA Akio
fb91c9416d
dtcm: resolve mismatch between `tm.tm_gmtoff` and global `timezone`
...
`timezone` and `tm.tm_gmtoff` represent reversed sign value each other.
Change `tm.tm_gmtoff` usage to be matched with `timezone`.
2021-10-23 16:54:35 +09:00
OBATA Akio
224f04cb29
dtcm: fix `localtime()` usage
...
It is expexted the first argument is `*time_t`, not `time_t`.
2021-10-23 16:54:35 +09:00
Liang Chang
6f30664428
dtappbuilder: use libXpm directly.
2021-10-18 10:10:20 -06:00
Liang Chang
f05a7b12c8
dtprintinfo: use libXpm directly.
2021-10-18 10:10:20 -06:00
Liang Chang
94cba197d5
dtudcfonted: use libXpm directly.
2021-10-18 10:10:20 -06:00
Liang Chang
b2ff2704cf
dticon: use libXpm directly.
2021-10-18 10:10:20 -06:00
Liang Chang
6a0990615d
dticon: make sure min_x and min_y are within icon to avoid a
...
segfault.
2021-10-18 10:10:20 -06:00
OBATA Akio
16eb6092b0
dtcm: prevent to use `NULL` as a Tick type
...
Tick (aka time_t) shall be an integer type, not a pointer.
Change to use `0` instead of `NULL`.
2021-10-16 17:07:37 +09:00
OBATA Akio
2c9db8fe37
dtcm: include <iso8601.h> of libcsa to resolve type mismatch
2021-10-12 17:24:26 +09:00
OBATA Akio
bbf4d451d9
Fix mismatch functionally for temporary file name
2021-10-08 17:30:48 +09:00
OBATA Akio
2390217a75
Fix to decide data and return type explicity
2021-10-08 17:25:17 +09:00
OBATA Akio
f7327e92d6
Change to use the standard signal handler signature unconditionally
...
Current condition is incomplete and it is already used on other codes.
2021-10-08 14:41:28 +09:00
OBATA Akio
16fe76ed65
Fix to include system header files for using functions
2021-10-08 14:40:56 +09:00
OBATA Akio
20c1768a19
Change to detect iconv implementation with autoconf
...
Use iconv.m4 (and required macros) form gettext-0.21.
2021-09-21 14:04:40 +09:00
Jon Trulson
be6bc0aa54
Remove some unused imake *.tmpl files
...
We still keep some of them for doc/ and dtinfo until those are
building properly.
2021-09-19 14:42:11 -06:00
OBATA Akio
692771fb07
Get rid of support of ancient signal handler return type int
...
Such environments are missing void type, older K&R C, and
such supports already had been removed in various places.
Furthermore, current hardcoded 'SIGNALRETURNSINT' is wrong.
2021-09-19 18:08:41 +09:00
Jon Trulson
b876ab3932
dtinfo: use autotools endian detection instead of cpu-specific checks
...
This affects the definitions of OLIAS_BIG_ENDIAN and
OLIAS_LITTLE_ENDIAN when building mmdb.
2021-08-07 18:25:36 -06:00
Jon Trulson
b0af0a49aa
dtterm: fix problem introduced with 0e9b1140ea, preventing install of dtterm
...
The tic command needs to be under the 'install-exec-hook:' target, not
the 'install:' target. Specifying the 'install:' target overrides
everything else, causing the dtterm binary to not be installed on a
'make install'
2021-08-07 17:31:27 -06:00
b'Jon Trulson
e12f1df79d
Merge /u/l-chang/cdesktopenv-autotools/ branch dtwm into master
...
https://sourceforge.net/p/cdesktopenv/code/merge-requests/30/
2021-08-07 23:18:00 +00:00
Liang Chang
3886c7d09c
dtwm: Respond to the following EWMH:
...
_NET_WM_FULLSCREEN_MONITORS
_NET_WM_STATE_FULLSCREEN
2021-08-07 16:19:25 +08:00
Liang Chang
78c8241738
dtwm: Support multi-monitor fullscreen.
2021-08-07 15:09:28 +08:00
Liang Chang
6a28507dbc
dtwm: Regenerate frame when decoration updated.
2021-08-07 14:31:04 +08:00
Liang Chang
1c310b8635
dtwm: Improve response for decoration hint from client.
...
Add a function: InitClientData.
2021-08-07 14:17:54 +08:00
Liang Chang
e648aab6b1
dtwm: Add EWMH related source code.
2021-08-07 13:14:34 +08:00
Liang Chang
50ea1705c7
dtwm: Relocate base window when regenerate its frame.
2021-08-06 08:36:05 +08:00
Liang Chang
bcf6e517d3
dtwm: Add a function: GetHeadInfoById.
2021-08-05 17:09:35 +08:00
Jon Trulson
93e280b05b
dtcm: install-exec-hook needs $(DESTDIR)
2021-07-22 19:50:18 -06:00
Jon Trulson
31c2e82eea
include: move dtinfo/DtMmdb/oliasdb/Mmdb.h -> include/Dt/Mmdb.h
2021-07-17 16:52:33 -06:00
Peter Howkins
0e9b1140ea
dtterm: on install use 'tic' to install the terminfo definition for dtterm
2021-07-15 22:31:54 +01:00
Jon Trulson
cc60fb8241
configure: remove freetype checks, we do not need freetype anymore
2021-07-08 16:35:51 -06:00
Jon Trulson
1fda5afcc2
dtappbuilder: try to fix a dep error causeing every make to rebuild
...
With the addition of dtappbuilder to autotools, every make run
(including make install) causes src/ab to regenerate files that cause
the whole directory to be recompiled, even on a 'make install'.
This seems to be primarily caused by dtbuilder.msg (and possibly
dtbuilder.c) being modified after it is generated, which is apparently
normal behavior for dtcodegen.
This fix sets both dtbuilder.msg and dtbuilder.c as "order-dependant
prequisites" so that they are always generated first (there are
already rules to do generate them) and then subsequently the only
thing required is that they exist since we don't care if they are
modified after that point. If you need to make changes to them, edit
their respective .src files instead.
This seems to resolve the issue, but perhaps at the expense of adding
another requirement to use gmake.
We also need to disable parallel building in this module :(
2021-07-04 18:49:57 -06:00
Jon Trulson
72e6e90706
dtappbuilder: use /bin/sh rather than /bin/csh as default shell
2021-07-04 18:04:32 -06:00
Jon Trulson
fbf58acca7
appbuilder/ab: fix a typo on CLEANFILES line
2021-07-04 17:26:40 -06:00
Jon Trulson
2730367844
utempter: complete the implementation
...
Liang Chang added utempter support to the dtterm widget in
pre-autoconf CDE. While the code itself was merged, it was still not
"turned on" for autoconf builds.
This commit completes the implementation allowing dtterm on Linux and
the BSDs to be installed without having to be setuid root -- as long
as the libutempter headers and libraries are installed.
2021-07-04 16:45:57 -06:00
Adam Sampson
edf57b6db3
libAButil: remove lt- prefix from program name
...
When building a program foo in-tree, libtool 2.4.6 generates an
executable called lt-foo with a wrapper script called foo. This
means that argv[0] inside the program is lt-foo rather than foo.
This is a problem for dtcodegen, which uses the program name for various
purposes including the "generated by" banner and the logfile name.
Remove the lt- prefix if present to avoid this.
2021-07-04 13:17:09 -06:00
Jon Trulson
ac8bd41373
Revert "Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym"
...
This reverts commit 15a2032626 .
This is wrong - it is missing the proper include file, and the
new function takes 4 arguments not 3.
2021-07-04 13:00:51 -06:00
Jon Trulson
3bc4132f9a
dthelp: parser/canon1/eltdef - disable parallel builds
2021-07-03 22:32:11 -06:00
Jon Trulson
51646fb06a
programs/: remove Imakefiles for completed modules
2021-07-03 19:12:43 -06:00
Jon Trulson
7aa24b086a
programs/localized: delete Imakefiles and imake templates
2021-07-03 19:01:28 -06:00
Jon Trulson
df0392fc25
dthelp/parser.ccdf: delete never used module
2021-07-03 18:34:31 -06:00
Jon Trulson
369b3e89d9
Begin removal of some Imakefiles, and other no longer useful cruft
...
This commit will not completely remove all Imake files, specifically
those for sections that have not been completed yet.
Also, the databases dir has been moved to databases-delete-later until
we have everything building and installed properly.
2021-07-03 18:23:40 -06:00
Jon Trulson
ae70af254e
dthelp: disable parallel builds in parser/canon1 too
2021-07-02 20:44:15 -06:00
Jon Trulson
9c3002a06f
Merge commit 'c9b86876044cdce95730ea2c6a2af65e06a86125' as 'cde/programs/dtksh/ksh93'
2021-06-26 14:53:01 -06:00
Jon Trulson
2e1f8ae435
Removed cde/programs/dtksh/ksh93 submodule at commit 66e1d44642
2021-06-26 14:53:01 -06:00
Jon Trulson
c489af6b3b
utils/merge: re-fix include issue
2021-06-02 20:43:06 -06:00
Jon Trulson
f294ee03b8
bilP.h: re-fix include issue with bil_parser.h
2021-06-02 20:24:14 -06:00
Jon Trulson
2a3e91383b
autotools: get the PAM support from master working on linux and freebsd
2021-06-02 19:57:23 -06:00
Jon Trulson
afbf39af01
dthelp/parser/pass2: disable parallel builds for this module
2021-06-02 19:57:23 -06:00
Jon Trulson
6f0d93678a
dtpdmd: fixup for autotools and new MsgCat.c
2021-06-02 19:57:23 -06:00
Jon Trulson
75bf61c584
localized/util: fixup for autotools and new MsgCat.c
2021-06-02 19:57:23 -06:00
Jon Trulson
ffa8c98d32
dtsr: fixup for autotools and new MsgCat.c
2021-06-02 19:57:23 -06:00
Jon Trulson
0bfa26f14f
dtdspmsg: fixup for autotools and new MsgCat.c
2021-06-02 19:57:23 -06:00
Liang Chang
5854cd8543
dtterm: Add libutempter support for utmp/wtmp updates.
2021-06-02 19:56:30 -06:00
Liang Chang
3909c8dbcc
dtinfo: Fix a segmentation fault.
...
The return value from CanvasRenderer::_dofont is a pointer. It will be passed
to the free function. Ensure that pointer always points to a dynamically
allocated memory to avoid segmentation faults.
2021-06-02 19:56:29 -06:00
Liang Chang
bc99bbe5b4
dtlogin: revise the Imakefile for config.
2021-06-02 19:56:29 -06:00
Liang Chang
e68846d543
dtsession: revise localAuthenticate.
2021-06-02 19:56:29 -06:00
Liang Chang
7d8dea61b2
dtlogin: add utmpx support to UtmpIdOpen.
2021-06-02 19:56:29 -06:00
Liang Chang
b46b77e0aa
dtsession: add rules for config dir into Imakefile.
2021-06-02 19:56:29 -06:00
Liang Chang
254a0a1abd
dtlogin: use utmpx when PAM is enabled.
2021-06-02 19:56:29 -06:00
Liang Chang
678c85021a
dtsession: rename PAM config file.
2021-06-02 19:56:29 -06:00
Liang Chang
62bad7d8d2
dtlogin: rename PAM config file.
2021-06-02 19:56:29 -06:00
Liang Chang
b5416991b1
Add PAM support to dtsession.
2021-06-02 19:56:29 -06:00
Liang Chang
876d271305
dtlogin: get rid of some warnings.
2021-06-02 19:56:29 -06:00
Liang Chang
becdbc9816
Add PAM support to dtlogin.
2021-06-02 19:56:29 -06:00
Liang Chang
f20db682bb
dtterm: Change the default log host to localhost.
...
To check the log function, add -DLOG_USAGE to the Imakefile then build the
dtterm. There are a logger in the util directory, run it to receive log
messages.
2021-06-02 19:56:29 -06:00
Liang Chang
997d11a702
dtappbuilder: Fix unsigned integer rollover.
2021-06-02 19:56:29 -06:00
Liang Chang
44cba6f3d1
dtappbuilder: Fix a crash when resize a text pane. The crash is occurred when
...
drag on the scrollbar to resize.
2021-06-02 19:56:29 -06:00
Liang Chang
7f7c2ca045
dtappbuilder: set the minimum limit for rows and columns to avoid rollover.
2021-06-02 19:56:28 -06:00
Liang Chang
0b27b11c6b
dtappbuilder: set the default size (in pixels) for terminal pane.
2021-06-02 19:56:28 -06:00
Liang Chang
caf8c25c15
dtappbuilder: ensure the resize box always inside the main window to avoid the
...
rendering glitch.
2021-06-02 19:56:28 -06:00
Liang Chang
191f1476bd
dtappbuilder: set limits on the resize rectangle to avoid rollover.
2021-06-02 19:56:28 -06:00
Edmond Orignac
53c35daea1
misc.c: in cm_mbchar check string!=NULL before dereferencing it
2021-06-02 19:56:28 -06:00
Jon Trulson
297918bb56
dtprintinfo: try to mitigate some stupid in ParseJob.C for sun
...
Marco Ivaldi pointed me to some unsafe code in ParseJob.c. I do not
have a sun machine (well, not currently operational anyway), so the
code is not tested. But seriously, this is some horrible code. This
local parser for sun needs to be rewritten!
2021-06-02 19:56:28 -06:00
Liang Chang
7cd4221824
ttsnoop: check the return value from tt_message_op to avoid a segmentation
...
fault.
2021-06-02 19:56:28 -06:00
Liang Chang
75a4e93d38
ttsnoop: adjust data types to ensure the result of pointer comparison is
...
correct.
2021-06-02 19:56:28 -06:00
Liang Chang
a25a32157f
ttsnoop: adjust the text field on ttChooser.
2021-06-02 19:56:28 -06:00
Liang Chang
056afeb35a
dtappbuilder: fix the rendering glitch of the list widget which contains a
...
label.
2021-06-02 19:56:28 -06:00
Liang Chang
6dcbe6275d
dtappbuilder: fix issues of property settings for text field.
2021-06-02 19:56:28 -06:00
Liang Chang
f203067211
dtappbuilder: fix issues of property settings for term pane.
2021-06-02 19:56:28 -06:00
Liang Chang
8d6262ca3e
dtappbuilder: fix issues of property settings for spin box.
2021-06-02 19:56:28 -06:00
Liang Chang
808ce58e3d
dtappbuilder: fix issues of property settings for separator.
2021-06-02 19:56:28 -06:00
Liang Chang
8c4375d435
dtappbuilder: fix issues of property settings for scale.
2021-06-02 19:56:28 -06:00
Liang Chang
ade018eb79
dtappbuilder: fix issues of property settings for menubar.
2021-06-02 19:56:28 -06:00
Liang Chang
c8116cae70
dtappbuilder: fix issues of property settings for menu.
2021-06-02 19:56:28 -06:00
Liang Chang
16b11c143c
dtappbuilder: fix issues of property settings for main window.
2021-06-02 19:56:28 -06:00
Liang Chang
f266789703
dtappbuilder: fix issues of property settings for label.
2021-06-02 19:56:28 -06:00