]> git.lyx.org Git - features.git/commit
Citation dialog: Fix trouble with openbox, fluxbox
authorGuillaume Munch <gm@lyx.org>
Fri, 22 Apr 2016 00:55:10 +0000 (02:55 +0200)
committerGuillaume Munch <gm@lyx.org>
Sun, 24 Apr 2016 13:05:54 +0000 (14:05 +0100)
commit86227b196dc0a2cf3aa23feafa478b6c10b163dc
tree794ca1ca409a7bbcf66a00a14a2ad7e4ca60f0c2
parentcfafffdf2595d93855def33a14cf2197baa0fa66
Citation dialog: Fix trouble with openbox, fluxbox

http://thread.gmane.org/gmane.editors.lyx.devel/161725

These wms have trouble with the fix at b5a2f1c7, probably more precisely with
the trick to force the calculation of the actual sizes before the display
(layout->invalidate() and the code around it).

This patch gets rid of the code that forces the calculation. As a consequence,
the minimum sizes are again incorrect the first time the window is shown. They
are only correct the second time the window is shown. Now here is the trick: LyX
remembers the sizes of windows between sessions. Therefore, as soon as the good
minimum size has been set, the good size is remembered for the next
session. Thus, in the following sessions, even though the minimum size is
incorrect the first time, the dialog still opens with the good size. So the user
does not see the problem in practice, apart from the very first time.

This is meant as a temporary workaround.
src/frontends/qt4/GuiCitation.cpp