mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-11 23:14:13 +00:00
The default 'Rect' constructor constructs an invalid rectangle where the p1 coordinates are lower than the p2 coordinates. In particular, p1 is set to (1, 1). The 'Widget' implementation uses the points individually as input into the 'Animated_rect' mechanism. This way, widgets end up being positioned at (1, 1) initially and are moved to (0, 0) once the first layout update is applied. By explicitly initializing the '_geometry' to (0x0+0+0), we avoid this initial artifact.