Add function to find a window in the app server by the client looper port id. Need this for the stacking api e.g. to stack window x on window y.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38168 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2484,6 +2484,18 @@ Desktop::AllWindows()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Window*
|
||||||
|
Desktop::WindowForClientLooperPort(port_id port)
|
||||||
|
{
|
||||||
|
for (Window* window = fAllWindows.FirstWindow(); window != NULL;
|
||||||
|
window = window->NextWindow(kAllWindowList)) {
|
||||||
|
if (window->ServerWindow()->ClientLooperPort() == port)
|
||||||
|
return window;
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
WindowList&
|
WindowList&
|
||||||
Desktop::_Windows(int32 index)
|
Desktop::_Windows(int32 index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -260,6 +260,8 @@ public:
|
|||||||
WindowList& CurrentWindows();
|
WindowList& CurrentWindows();
|
||||||
WindowList& AllWindows();
|
WindowList& AllWindows();
|
||||||
|
|
||||||
|
Window* WindowForClientLooperPort(port_id port);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
WindowList& _Windows(int32 index);
|
WindowList& _Windows(int32 index);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user