Re: GTK Negative Widget Height

Frank Peters <[email protected]> Wed, 19 Aug 2015 00:17:18 -0400
Newsgroups gmane.linux.gentoo.amd64
Message-ID <[email protected]>
On Tue, 18 Aug 2015 23:40:32 -0400
Frank Peters <[email protected]> wrote:

> 
> As I mentioned, a program restart usually fixes the problem.  However, when
> and if this problem will occur is not predictable.  It happens only occasionally
> and never consistently.
> 

I've discovered something else that seems very significant.

The behavior depends on the relation of the position of the
window in which the problem occurs in relation to other windows.
If I shift the widow around I can get different appearances
of the sub-menus from complete to very thin to a one pixel
line.  Thus, the fault would seem to be with how GTK+ calculates
the window dimensions in relation to other windows.  In some
cases a miscalculation will result in a negative height.

The fault could also be with the window manager which, AFAIK,
reports window positions.  But then I only understand little
about the mechanisms of the X Window GUI and how window managers
and took kits interact with it.

Anyway, if the problem occurs, I just need to shift the window
to another position and that should take care of the sub-menus.

Frank Peters