Commit 955fecc3 authored by Michael Natterer's avatar Michael Natterer 😴

app: replace a wrong G_LIKELY() by G_UNLIKELY() in tool_events()

parent 80de7600
......@@ -312,6 +312,9 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
if (! image)
return gimp_display_shell_canvas_no_image_events (canvas, event, shell);
GIMP_LOG (TOOL_EVENTS, "event (display %p): %s",
display, gimp_print_event (event));
/* Find out what device the event occurred upon */
if (! gimp->busy && gimp_devices_check_change (gimp, event))
{
......@@ -334,9 +337,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
gimp_display_shell_update_focus (shell, &image_coords, state);
}
GIMP_LOG (TOOL_EVENTS, "event (display %p): %s",
display, gimp_print_event (event));
switch (event->type)
{
case GDK_ENTER_NOTIFY:
......@@ -410,7 +410,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
}
else
{
if (G_LIKELY (gtk_widget_has_focus (canvas)))
if (G_UNLIKELY (gtk_widget_has_focus (canvas)))
g_warning ("%s: FOCUS_OUT but canvas has focus", G_STRFUNC);
/* reset it here to be prepared for the next
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment