diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-03-21 14:27:20 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-03-21 14:27:20 -0700 |
commit | e88c4259e05bc0b299d86f8237886db3c5210f41 (patch) | |
tree | 85481e4226365247b931275d2ee5b67feae781d6 /src/main.c | |
parent | 642b63f5a64b1dfda2ecd041fed3a008645d72cc (diff) |
gtk_fb: s/configure-event/size-allocate/
The existing code made assumptions about the top-level window's
configure-event dimensions reflecting the underlying GtkImage's
dimensions.
This happened to be true most of the time on X11 desktops, but
client-side decorations have broken this assumption.
Instead resize the fb on size-allocate, and get the size
allocation out of the GtkImage widget *after* event propagation
finishes.
Thanks to chergert@redhat.com for assistance with quickly sorting
this out and providing the patch, and elektron@halo.nu reporting
the issue after testing on a librem5/phosh.
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions