From 49b05abd4715eac5bcc9d326d229c7e5d3723bc8 Mon Sep 17 00:00:00 2001 From: Michael Jennings Date: Tue, 11 Jul 2000 02:44:28 +0000 Subject: [PATCH] Mon Jul 10 20:01:53 PDT 2000 Michael Jennings We no longer care about gravity. This should help Sawfish users. SVN revision: 2913 --- ChangeLog | 5 +++++ doc/Makefile.am | 4 ++-- src/font.c | 2 +- src/windows.c | 7 ++----- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 421fdc1..e0debe2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3810,3 +3810,8 @@ Mon Jul 10 14:28:28 PDT 2000 Michael Jennings Thanks again to Marius for saving me time by sending patches. :-) ------------------------------------------------------------------------------- +Mon Jul 10 20:01:53 PDT 2000 Michael Jennings + + We no longer care about gravity. This should help Sawfish users. + +------------------------------------------------------------------------------- diff --git a/doc/Makefile.am b/doc/Makefile.am index 1612f96..327d4d4 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -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 diff --git a/src/font.c b/src/font.c index e259543..2f2b496 100644 --- a/src/font.c +++ b/src/font.c @@ -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++; diff --git a/src/windows.c b/src/windows.c index 8b9aabd..a96a982 100644 --- a/src/windows.c +++ b/src/windows.c @@ -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); }