1
0
Fork 0

source/Platform/PlatformWindow.h: rename parent to owner as the generic window is not really a parent to the platform one.

This commit is contained in:
Henrik Hautakoski 2023-08-22 17:10:08 +02:00
parent 45d3bff620
commit afc0845006
2 changed files with 5 additions and 5 deletions

View file

@ -14,10 +14,10 @@ typedef sp::X11Window WindowType;
namespace sp { namespace sp {
PlatformWindow* PlatformWindow::make(Window* parent) PlatformWindow* PlatformWindow::make(Window* owner)
{ {
WindowType* disp = new WindowType(); WindowType* disp = new WindowType();
disp->m_parent = parent; disp->m_owner = owner;
return disp; return disp;
} }
@ -33,7 +33,7 @@ PlatformWindow::~PlatformWindow()
void PlatformWindow::onReshape(int width, int height) void PlatformWindow::onReshape(int width, int height)
{ {
// Forward to parent. // Forward to parent.
m_parent->onReshape(width, height); m_owner->onReshape(width, height);
} }
} // namespace sp } // namespace sp

View file

@ -18,7 +18,7 @@ class PlatformWindow
{ {
public : public :
// Factory method. // Factory method.
static PlatformWindow* make(Window* parent); static PlatformWindow* make(Window* owner);
virtual ~PlatformWindow(); virtual ~PlatformWindow();
@ -66,7 +66,7 @@ protected :
private : private :
Window * m_parent; Window * m_owner;
}; };
} // namespace sp } // namespace sp