[haiku-commits] haiku: hrev51476 - src/kits/interface

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 18 Oct 2017 22:44:07 +0200 (CEST)

hrev51476 adds 1 changeset to branch 'master'
old head: 403baf656db95190c9b67c367840a608db979a95
new head: d566b4d9dd7d1caae720bff821282dc2b2de9136
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=d566b4d9dd7d+%5E403baf656db9

----------------------------------------------------------------------------

d566b4d9dd7d: Fix BWindow::_FindView when the window is hidden
  
  _FindView finds a view that contains a specific BPoint (usually used to
  dispatch a mouse event to it). It should ignore hidden views, but not if
  they are hidden because of their parent.
  
  In particular, if the whole window is hidden (for example, it is used to
  draw onto a BBitmap), this should not be taken into account here.
  
  Signed-off-by: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>

                         [ Sean Healy <jalopeura@xxxxxxxxxxxxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev51476
Commit:      d566b4d9dd7d1caae720bff821282dc2b2de9136
URL:         http://cgit.haiku-os.org/haiku/commit/?id=d566b4d9dd7d
Author:      Sean Healy <jalopeura@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:        Wed Oct 18 20:36:16 2017 UTC
Committer:   Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Commit-Date: Wed Oct 18 20:36:16 2017 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/kits/interface/Window.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp
index 4d10cbc..ddc072c 100644
--- a/src/kits/interface/Window.cpp
+++ b/src/kits/interface/Window.cpp
@@ -4016,7 +4016,7 @@ BView*
 BWindow::_FindView(BView* view, BPoint point) const
 {
        // point is assumed to be already in view's coordinates
-       if (!view->IsHidden() && view->Bounds().Contains(point)) {
+       if (!view->IsHidden(view) && view->Bounds().Contains(point)) {
                if (view->fFirstChild == NULL)
                        return view;
                else {


Other related posts:

  • » [haiku-commits] haiku: hrev51476 - src/kits/interface - pulkomandy