Mon Jul 10 20:01:53 PDT 2000 Michael Jennings <mej@eterm.org>

We no longer care about gravity.  This should help Sawfish users.


SVN revision: 2913
This commit is contained in:
Michael Jennings 2000-07-11 02:44:28 +00:00
parent 7dc3b7cafb
commit 49b05abd47
4 changed files with 10 additions and 8 deletions

View File

@ -3810,3 +3810,8 @@ Mon Jul 10 14:28:28 PDT 2000 Michael Jennings <mej@eterm.org>
Thanks again to Marius for saving me time by sending patches. :-)
-------------------------------------------------------------------------------
Mon Jul 10 20:01:53 PDT 2000 Michael Jennings <mej@eterm.org>
We no longer care about gravity. This should help Sawfish users.
-------------------------------------------------------------------------------

View File

@ -8,10 +8,10 @@ Eterm.1: $(top_srcdir)/doc/Eterm.1.in
$(SED) -e 's%@''VERSION''@%$(VERSION)%g' -e 's%@''DATE''@%$(DATE)%g' -e 's%@THEMEDIR@%$(pkgdatadir)/themes%g' $(top_srcdir)/doc/$@.in > $@
Eterm.1.html: Eterm.1
-nroff -man $< | man2html -title Eterm > $@
(nroff -man $< | man2html -title Eterm > $@) || :
install-data-hook:
-$(TIC) Eterm.ti || (mkinstalldirs $(HOME)/.terminfo && $(TIC) -o$(HOME)/.terminfo Eterm.ti)
$(TIC) Eterm.ti || (mkinstalldirs $(HOME)/.terminfo && $(TIC) -o$(HOME)/.terminfo Eterm.ti) || :
EXTRA_DIST = Eterm.1.in Eterm_reference.html Eterm.tcap Eterm.ti Makefile.am Makefile.in

View File

@ -515,7 +515,7 @@ change_font(int init, const char *fontname)
szHint.width = szHint.base_width + TermWin.width;
szHint.height = szHint.base_height + TermWin.height;
szHint.flags = PMinSize | PResizeInc | PBaseSize | PWinGravity;
szHint.flags = PMinSize | PResizeInc | PBaseSize;
} else {
parent_resize();
font_chg++;

View File

@ -54,7 +54,7 @@ XWindowAttributes attr;
XSetWindowAttributes Attributes;
XSizeHints szHint =
{
PMinSize | PResizeInc | PBaseSize | PWinGravity,
PMinSize | PResizeInc | PBaseSize,
0, 0, 80, 24, /* x, y, width, height */
1, 1, /* Min width, height */
0, 0, /* Max width, height - unused */
@ -358,7 +358,6 @@ Create_Windows(int argc, char *argv[])
if (flags & XValue) {
if (flags & XNegative) {
x += (DisplayWidth(Xdisplay, Xscreen) - (szHint.width + TermWin.internalBorder));
szHint.win_gravity = NorthEastGravity;
}
szHint.x = x;
szHint.flags |= USPosition;
@ -366,8 +365,6 @@ Create_Windows(int argc, char *argv[])
if (flags & YValue) {
if (flags & YNegative) {
y += (DisplayHeight(Xdisplay, Xscreen) - (szHint.height + TermWin.internalBorder));
szHint.win_gravity = (szHint.win_gravity == NorthEastGravity ?
SouthEastGravity : SouthWestGravity);
}
szHint.y = y;
szHint.flags |= USPosition;
@ -543,7 +540,7 @@ update_size_hints(void)
D_X11((" Minimum width/height == %lux%lu, width/height == %lux%lu\n",
szHint.min_width, szHint.min_height, szHint.width, szHint.height));
szHint.flags = PMinSize | PResizeInc | PBaseSize | PWinGravity;
szHint.flags = PMinSize | PResizeInc | PBaseSize;
XSetWMNormalHints(Xdisplay, TermWin.parent, &szHint);
}