Ryan Leavengood 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? According to git Axel implemented it initially [1] and changed it later on [2]. The API is private, but was apparently used by Be applications (OpenTracker). Depending on whether binary compatibility is desired in this case you'd have check how it works on BeOS. CU, Ingo [1] http://cgit.haiku-os.org/haiku/commit/?id=6a0a0a80daf7b99da86f3d6085aff3525dd13b50 [2] http://cgit.haiku-os.org/haiku/commit/?id=995ab7b3c6a636cd658df3d7d13a616d91ffb2d6