summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-12-09 02:53:16 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-12-09 02:53:16 +0000
commit9c337d0a8f08e3bd89c2536c8546d95e175b3f53 (patch)
tree3b1469bf9e419a2b6056b753b620e2aebba2533a /src
parente0c8b245ef88813881d6e501887254acc4f88acb (diff)
downloadmetacity-9c337d0a8f08e3bd89c2536c8546d95e175b3f53.tar.gz
updates
2002-12-08 Havoc Pennington <hp@pobox.com> * README: updates * src/window.c (MAX_RESIZES_PER_SECOND): change to 20 instead of 30, just as an experiment. (MOVE_THRESHOLD): change 15 to 20 (RESIZE_THRESHOLD): change 15 to 20 * src/util.c (ensure_logfile): kill this function when verbose mode is disabled.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/util.c3
-rw-r--r--src/window.c15
3 files changed, 15 insertions, 5 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ab173bd8..66440381 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -117,7 +117,7 @@ bin_PROGRAMS=metacity metacity-theme-viewer
libexec_PROGRAMS=metacity-dialog
EFENCE=
-metacity_LDADD= $(EFENCE) @METACITY_LIBS@ $(EFENCE)
+metacity_LDADD=@METACITY_LIBS@ $(EFENCE)
metacity_theme_viewer_LDADD= @METACITY_LIBS@ libmetacity-private.la
metacity_dialog_LDADD=@METACITY_LIBS@
diff --git a/src/util.c b/src/util.c
index 0a8af040..1d754422 100644
--- a/src/util.c
+++ b/src/util.c
@@ -64,6 +64,8 @@ static gboolean is_verbose = FALSE;
static gboolean is_debugging = FALSE;
static gboolean replace_current = FALSE;
static int no_prefix = 0;
+
+#ifdef WITH_VERBOSE_MODE
static FILE* logfile = NULL;
static void
@@ -110,6 +112,7 @@ ensure_logfile (void)
g_free (filename);
}
}
+#endif
gboolean
meta_is_verbose (void)
diff --git a/src/window.c b/src/window.c
index 27e0d3c9..20fc9749 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6117,15 +6117,22 @@ check_moveresize_frequency (MetaWindow *window)
(current_time.tv_usec - window->display->grab_last_moveresize_time.tv_usec))) / 1000.0;
#define EPSILON (1e-6)
-#define MAX_RESIZES_PER_SECOND 30.0
+#define MAX_RESIZES_PER_SECOND 20.0
if (elapsed >= 0.0 && elapsed < (1000.0 / MAX_RESIZES_PER_SECOND))
- return FALSE;
+ {
+ meta_verbose ("Delaying move/resize as only %g of %g seconds elapsed\n",
+ elapsed / 1000.0, 1.0 / MAX_RESIZES_PER_SECOND);
+ return FALSE;
+ }
else if (elapsed < (0.0 - EPSILON)) /* handle clock getting set backward */
clear_moveresize_time (window);
/* store latest time */
window->display->grab_last_moveresize_time = current_time;
+ meta_verbose ("Doing move/resize as %g of %g seconds elapsed\n",
+ elapsed / 1000.0, 1.0 / MAX_RESIZES_PER_SECOND);
+
return TRUE;
}
@@ -6154,7 +6161,7 @@ update_move (MetaWindow *window,
/* Force a move regardless of time if a certain delta is exceeded,
* so we don't get too out of sync with reality when dropping frames
*/
-#define MOVE_THRESHOLD 15
+#define MOVE_THRESHOLD 20
if (!check_moveresize_frequency (window) &&
ABS (dx) < MOVE_THRESHOLD && ABS (dy) < MOVE_THRESHOLD)
return;
@@ -6226,7 +6233,7 @@ update_resize (MetaWindow *window,
/* Force a move regardless of time if a certain delta
* is exceeded
*/
-#define RESIZE_THRESHOLD 15
+#define RESIZE_THRESHOLD 20
if (!check_moveresize_frequency (window) &&
ABS (dx) < RESIZE_THRESHOLD && ABS (dy) < RESIZE_THRESHOLD)
return;