window: Don't use GTK+ to fetch the drag threshold

Just look it up in GSettings ourselves.
This commit is contained in:
Jasper St. Pierre
2014-08-15 18:21:13 -04:00
parent c3e87ee896
commit 67be4e2bf3
5 changed files with 23 additions and 19 deletions

View File

@ -5534,7 +5534,7 @@ update_move (MetaWindow *window,
* because it's about the right size
*/
#define DRAG_THRESHOLD_TO_SHAKE_THRESHOLD_FACTOR 6
shake_threshold = meta_ui_get_drag_threshold (window->screen->ui) *
shake_threshold = meta_prefs_get_drag_threshold () *
DRAG_THRESHOLD_TO_SHAKE_THRESHOLD_FACTOR;
if (snap)
@ -5726,7 +5726,7 @@ check_resize_unmaximize(MetaWindow *window,
#define DRAG_THRESHOLD_TO_RESIZE_THRESHOLD_FACTOR 3
threshold = meta_ui_get_drag_threshold (window->screen->ui) *
threshold = meta_prefs_get_drag_threshold () *
DRAG_THRESHOLD_TO_RESIZE_THRESHOLD_FACTOR;
new_unmaximize = 0;