summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-03-22 01:45:51 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-03-22 01:45:51 -0700
commitac95ac64a636c661c192dd5b2b48283fed5bf711 (patch)
tree0fa51b3ca91108f649d47784aa1e62b9f9f2a34d /src/main.c
parente88c4259e05bc0b299d86f8237886db3c5210f41 (diff)
gtk_fb: tidy up size-allocate handling
Since the callback is explicitly accessing c->image, yet was registered on c->window, there was a theoretical race there where c->image could have been accessed by the callback before gtk_fb_acquire() had assigned it. Instead just connect to the signal in gtk_fb_acquire() and do it on c->image instead of the window. Also request the configured size on c->image so the size allocation reflects the configured size when the callback fires.
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved