diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-05-27 00:52:54 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2014-05-27 08:13:03 +1000 |
commit | 467a0d624df1a62b8fa2b28d587c0b42ea3b3e04 (patch) | |
tree | 4a40959ffb4b3d7381f0d5fbe11ce83c0a5d753a /vcl/source/window/stacking.cxx | |
parent | 7b545001a10042c03ddde09ac9e0e6c3cdf6f8ca (diff) |
vcl: move clipping functions from window.cxx into clipping.cxx
Change-Id: I2a2c3d6283c962bba2994de04bbd869a79fc2eca
Diffstat (limited to 'vcl/source/window/stacking.cxx')
-rw-r--r-- | vcl/source/window/stacking.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/window/stacking.cxx b/vcl/source/window/stacking.cxx index b6783214f598..6a9be3847f9d 100644 --- a/vcl/source/window/stacking.cxx +++ b/vcl/source/window/stacking.cxx @@ -52,6 +52,14 @@ struct ImplCalcToTopData Region* mpInvalidateRegion; }; +Window* Window::ImplGetTopmostFrameWindow() +{ + Window *pTopmostParent = this; + while( pTopmostParent->ImplGetParent() ) + pTopmostParent = pTopmostParent->ImplGetParent(); + return pTopmostParent->mpWindowImpl->mpFrameWindow; +} + void Window::ImplInsertWindow( Window* pParent ) { mpWindowImpl->mpParent = pParent; |