fix(tray_client): remove copy ctor & assignment operator (#1675)

tray_client class contains a reference so copy assignment operator is implicitly deleted.
the dtor unembed the window so copying the class could lead to bug so the copy ctor is also deleted.

Fixes #1674
This commit is contained in:
Jérôme BOULMIER 2019-03-06 03:00:11 -05:00 committed by Patrick Ziegler
parent db9a83a83b
commit 25ef0299cb
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ struct xembed_data;
class tray_client {
public:
explicit tray_client(connection& conn, xcb_window_t win, unsigned int w, unsigned int h);
tray_client(const tray_client& c) = default;
tray_client& operator=(tray_client& c) = default;
tray_client(const tray_client& c) = delete;
tray_client& operator=(tray_client& c) = delete;
~tray_client();