aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Platform.h')
-rw-r--r--include/Platform.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 48ee720ca..411d42a03 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -363,6 +363,14 @@ public:
virtual ~Window();
Window &operator=(WindowID wid_) {
wid = wid_;
+ cursorLast = cursorInvalid;
+ return *this;
+ }
+ Window &operator=(const Window &other) {
+ if (this != &other) {
+ wid = other.wid;
+ cursorLast = other.cursorLast;
+ }
return *this;
}
WindowID GetID() const { return wid; }