[gtk+] notebook: Don't limit motion notify framerate
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] notebook: Don't limit motion notify framerate
- Date: Mon, 11 Jan 2016 16:32:05 +0000 (UTC)
commit fdc13f315b3d00a632fa50a90d583d156d0785cd
Author: Benjamin Otte <otte redhat com>
Date: Thu Jan 7 15:54:58 2016 +0100
notebook: Don't limit motion notify framerate
We have a frameclock for that these days.
In particular, this limiting worked at 45fps when monitors are all 60fps.
gtk/gtknotebook.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 7a15009..04455f6 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -140,8 +140,6 @@
#define SCROLL_DELAY_FACTOR 5
#define SCROLL_THRESHOLD 12
#define DND_THRESHOLD_MULTIPLIER 4
-#define FRAMES_PER_SECOND 45
-#define MSECS_BETWEEN_UPDATES (1000 / FRAMES_PER_SECOND)
#define TIMEOUT_INITIAL 500
#define TIMEOUT_REPEAT 50
@@ -203,7 +201,6 @@ struct _GtkNotebookPrivate
GList *switch_tab;
guint32 timer;
- guint32 timestamp;
guint button : 2;
guint child_has_focus : 1;
@@ -3298,11 +3295,6 @@ gtk_notebook_motion_notify (GtkWidget *widget,
stop_scrolling (notebook);
}
- if (event->time < priv->timestamp + MSECS_BETWEEN_UPDATES)
- return FALSE;
-
- priv->timestamp = event->time;
-
tab_prelight (notebook, (GdkEvent *)event);
/* While animating the move, event->x is relative to the flying tab
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]