sony / flutter-embedded-linux

Embedded Linux embedding for Flutter
BSD 3-Clause "New" or "Revised" License
1.16k stars 123 forks source link

Set decoration button GL viewport to fix resize issues #317

Closed vially closed 1 year ago

vially commented 1 year ago

This pull-request sets the GL viewport for the window decoration buttons. This is necessary because otherwise the buttons are not drawn correctly when moving the window between outputs with different scale factors.

As an example of this issue see the screen recordings below where the output on the right (visible in the recording) has a scale factor of 1 and the output on the left (not visible in the recording) has a scale factor of 2.

before.webm

after.webm

Note: I agree to delegate all rights related to this PR to Sony.