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:
parent
db9a83a83b
commit
25ef0299cb
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user