diff --git a/src/Netizen.cc b/src/Netizen.cc index 1536be1b..67d4a0d7 100644 --- a/src/Netizen.cc +++ b/src/Netizen.cc @@ -105,6 +105,6 @@ void Netizen::sendWindowLower(Window w) { XSendEvent(m_display, window(), False, NoEventMask, &event); } -void Netizen::sendConfigNotify(XEvent *e) { - XSendEvent(m_display, window(), False, StructureNotifyMask, e); +void Netizen::sendConfigNotify(XEvent &ev) { + XSendEvent(m_display, window(), False, StructureNotifyMask, &ev); } diff --git a/src/Netizen.hh b/src/Netizen.hh index c03f97e8..079bd013 100644 --- a/src/Netizen.hh +++ b/src/Netizen.hh @@ -43,7 +43,7 @@ public: void sendWindowRaise(Window w); void sendWindowLower(Window w); - void sendConfigNotify(XEvent *xe); + void sendConfigNotify(XEvent &xe); private: const BScreen &m_screen; Display *m_display; ///< display connection