X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2FCWindow.cpp;h=7d50b7b403052be921f657b9d01bd175cb5dfd9f;hb=6fbf6b93bec9b8b5bd6d7c683eefb0ebed8dff77;hp=392fd47f4e38d4be429e45f99b83a98fd3891487;hpb=5f4d39ad0059ceec48c59d5ed87457a6bcb1c5f1;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/CWindow.cpp b/Usermode/Applications/axwin4_src/Server/CWindow.cpp index 392fd47f..7d50b7b4 100644 --- a/Usermode/Applications/axwin4_src/Server/CWindow.cpp +++ b/Usermode/Applications/axwin4_src/Server/CWindow.cpp @@ -12,10 +12,11 @@ namespace AxWin { -CWindow::CWindow(CCompositor& compositor, CClient& client, const ::std::string& name): +CWindow::CWindow(CCompositor& compositor, CClient& client, const ::std::string& name, unsigned int id): m_surface(0,0,0,0), m_compositor(compositor), m_client(client), + m_id(id), m_name(name), m_is_shown(false) { @@ -58,7 +59,7 @@ void CWindow::Move(int X, int Y) void CWindow::Resize(unsigned int W, unsigned int H) { m_surface.Resize(W, H); - IPC::SendMessage_NotifyDims(m_client, W, H); + IPC::SendMessage_NotifyDims(m_client, m_id, W, H); } void CWindow::SetFlags(uint32_t Flags) { @@ -73,14 +74,18 @@ uint64_t CWindow::ShareSurface() void CWindow::MouseButton(int ButtonID, int X, int Y, bool Down) { + IPC::SendMessage_MouseButton(m_client, m_id, X, Y, ButtonID, Down); } void CWindow::MouseMove(int NewX, int NewY) { + // TODO: Only enable move events if client requests them + //IPC::SendMessage_MouseMove(m_client, m_id, NewX, NewY); } void CWindow::KeyEvent(::uint32_t Scancode, const ::std::string &Translated, bool Down) { + IPC::SendMessage_KeyEvent(m_client, m_id, Scancode, Down, Translated.c_str()); }