Commit 438b648b authored by Daniel van Vugt's avatar Daniel van Vugt

clutter-stage: Don't emit "after-paint" when picking

The "after-paint" signal should only be emitted on real stage repaints
and not fake stage repaints used in picking. The latter might occur
at a much higher and inconsistent rate and is not what apps/toolkits
listening for _NET_WM_FRAME_DRAWN care about.
parent 7a75692e
Pipeline #47238 passed with stages
in 5 minutes and 7 seconds
......@@ -1511,7 +1511,8 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage,
* are drawn offscreen (as we never swap buffers)
context->pick_mode = mode;
_clutter_stage_paint_view (stage, view, NULL);
/* Paint without emitting AFTER_PAINT */
clutter_stage_do_paint_view (stage, view, NULL);
context->pick_mode = CLUTTER_PICK_NONE;
/* Read the color of the screen co-ords pixel. RGBA_8888_PRE is used
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