• Jonas Ådahl's avatar
    menu: Force recalculation of size before positioning · 7298e73c
    Jonas Ådahl authored
    On X11, the position of the menu is calculated synchronously by
    gdk_window_move_to_rect(). This means that calculating the window size
    when showing is too late, as that'd mean the size used when calculating
    the position is out-of-date. The first time a menu is mapped, however,
    the size is calculated during realization; but a window is only realized
    once, so it doesn't work for subsequent maps.
    
    Currently, this is harmless, as a GtkMenu can change its size however it
    wants after it has been mapped. This, however, is problematic, as it
    means the position calculated by gdk_window_move_to_rect() might no
    longer be valid, or constraints made by the same function might no
    longer be respected.
    
    Thus, this is a preparation for making GtkMenu popups stay the same size
    until they are remapped again at a later point.
    7298e73c
Name
Last commit
Last update
.gitlab-ci Loading commit data...
build Loading commit data...
build-aux/flatpak Loading commit data...
demos Loading commit data...
docs Loading commit data...
examples Loading commit data...
gdk Loading commit data...
gtk Loading commit data...
libgail-util Loading commit data...
m4 Loading commit data...
m4macros Loading commit data...
modules Loading commit data...
po Loading commit data...
po-properties Loading commit data...
tests Loading commit data...
testsuite Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
HACKING Loading commit data...
INSTALL.in Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
Makefile.decl Loading commit data...
NEWS Loading commit data...
NEWS.pre-1-0 Loading commit data...
README.commits Loading commit data...
README.in Loading commit data...
README.win32 Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.h.win32.in Loading commit data...
configure.ac Loading commit data...
gail-3.0.pc.in Loading commit data...
gdk-3.0.pc.in Loading commit data...
git.mk Loading commit data...
gtk+-3.0.pc.in Loading commit data...
gtk+-unix-print-3.0.pc.in Loading commit data...
gtk+.doap Loading commit data...
gtk-zip.sh.in Loading commit data...
make-pot Loading commit data...
makefile.msc Loading commit data...
sanitize-la.sh Loading commit data...