On Aug 12, 2012, at 8:52 AM, Ryan Leavengood <leavengood@xxxxxxxxx> wrote: > On Fri, Aug 10, 2012 at 11:27 PM, Ryan Leavengood <leavengood@xxxxxxxxx> > wrote: >> Why does BWindow fShowLevel become negative when a window is hidden, >> yet window_info.show_hide_level is set like this in the app_server: >> >> info.show_hide_level = fWindow->IsHidden() ? 1 : 0; // ??? >> >> In other words show_hide_level is 0 when the window is shown and 1 >> when it is hidden. > > No one has any feedback, suggestions, or history from BeOS to tell me > why this variable is defined backwards? > I'm not a developer of Haiku, but this looks correct. Why would a visible window have a hidden level? If you boolean test window_info.show_hide_level, it should return false if the window is visible & true if it's hidden. Just my $0.02. A. Demetrious Sharpe