Skip to content

I20240912-2100

@HeikoKlare HeikoKlare tagged this 12 Sep 18:50
The FindReplaceOverlay currently registers a paint listener to the target
in order to reposition itself upon move or resize events of the parent
(paint events subsume resize and move events). This has two drawbacks:
1. The update is performed too often, as paint events happen more often
than move or resize events
2. Due to limitations in Wayland, repositioning the overlay does not
work there. A combination of processed repaint events and failing
position updates even leads to the shell contents moving out of the
shell.

This change replaces the repaint listener with a move and resize
listener. In consequence, less (unnecessary) updates of the overlay's
position and size are executed and on Wayland at least the shell
contents do not move out of the window anymore.

Contributes to
https://github.com/eclipse-platform/eclipse.platform.swt/issues/1447
Assets 2
Loading