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.
This commit is contained in:
parent
d74c1bfd84
commit
fdc13f315b
@ -140,8 +140,6 @@
|
|||||||
#define SCROLL_DELAY_FACTOR 5
|
#define SCROLL_DELAY_FACTOR 5
|
||||||
#define SCROLL_THRESHOLD 12
|
#define SCROLL_THRESHOLD 12
|
||||||
#define DND_THRESHOLD_MULTIPLIER 4
|
#define DND_THRESHOLD_MULTIPLIER 4
|
||||||
#define FRAMES_PER_SECOND 45
|
|
||||||
#define MSECS_BETWEEN_UPDATES (1000 / FRAMES_PER_SECOND)
|
|
||||||
|
|
||||||
#define TIMEOUT_INITIAL 500
|
#define TIMEOUT_INITIAL 500
|
||||||
#define TIMEOUT_REPEAT 50
|
#define TIMEOUT_REPEAT 50
|
||||||
@ -203,7 +201,6 @@ struct _GtkNotebookPrivate
|
|||||||
GList *switch_tab;
|
GList *switch_tab;
|
||||||
|
|
||||||
guint32 timer;
|
guint32 timer;
|
||||||
guint32 timestamp;
|
|
||||||
|
|
||||||
guint button : 2;
|
guint button : 2;
|
||||||
guint child_has_focus : 1;
|
guint child_has_focus : 1;
|
||||||
@ -3298,11 +3295,6 @@ gtk_notebook_motion_notify (GtkWidget *widget,
|
|||||||
stop_scrolling (notebook);
|
stop_scrolling (notebook);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event->time < priv->timestamp + MSECS_BETWEEN_UPDATES)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
priv->timestamp = event->time;
|
|
||||||
|
|
||||||
tab_prelight (notebook, (GdkEvent *)event);
|
tab_prelight (notebook, (GdkEvent *)event);
|
||||||
|
|
||||||
/* While animating the move, event->x is relative to the flying tab
|
/* While animating the move, event->x is relative to the flying tab
|
||||||
|
Loading…
Reference in New Issue
Block a user