From 0a8aba4b108535cad40c33451ec439eacb26bea6 Mon Sep 17 00:00:00 2001 From: johncoswell Date: Sun, 23 Jul 2006 18:43:31 +0000 Subject: [PATCH] forced redraw of canvas upon completion of zooming or upon starting rubber band selection events to work around event starvation issue at high zoom levels --- ChangeLog | 12 ++++++++++-- src/event-context.cpp | 1 + src/node-context.cpp | 1 + src/verbs.cpp | 2 ++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e88f0d647..7c9c33f96 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-07-23 John Bintz + + * src/verbs.cpp, src/event-context.cpp, src/node-context.cpp: + + forced redraw of canvas upon completion of zooming or upon + starting rubber band selection events to work around event + starvation issue at high zoom levels + 2006-07-23 MenTaLguY * src/widgets/paint-selector.cpp: @@ -19,11 +27,11 @@ 2006-07-23 John Bintz - * src/desktop.cpp, src/desktop.h + * src/desktop.cpp, src/desktop.h: added SPDesktop::updateNow() - * src/event-context.cpp, src/select-context.cpp, src/node-context.cpp + * src/event-context.cpp, src/select-context.cpp, src/node-context.cpp: forced redraw of canvas upon completion of selection or panning to work around event starvation issue at high zoom levels diff --git a/src/event-context.cpp b/src/event-context.cpp index 92dc711cf..8bda4b6c4 100644 --- a/src/event-context.cpp +++ b/src/event-context.cpp @@ -460,6 +460,7 @@ static gint sp_event_context_private_root_handler(SPEventContext *event_context, panning = 0; sp_canvas_item_ungrab(SP_CANVAS_ITEM(desktop->acetate), event->button.time); + desktop->updateNow(); ret = TRUE; } else if (zoom_rb == event->button.button) { zoom_rb = 0; diff --git a/src/node-context.cpp b/src/node-context.cpp index 8f8a48bf7..f213b58aa 100644 --- a/src/node-context.cpp +++ b/src/node-context.cpp @@ -548,6 +548,7 @@ sp_node_context_root_handler(SPEventContext *event_context, GdkEvent *event) event->button.y); NR::Point const button_dt(desktop->w2d(button_w)); Inkscape::Rubberband::get()->start(desktop, button_dt); + desktop->updateNow(); ret = TRUE; } break; diff --git a/src/verbs.cpp b/src/verbs.cpp index 0a22cc108..c70e62fe2 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1536,6 +1536,8 @@ ZoomVerb::perform(SPAction *action, void *data, void *pdata) default: break; } + + dt->updateNow(); } // end of sp_verb_action_zoom_perform() -- 2.30.2