Wayland: Fix error spam for closed windows
I ported the new softclass macro too blindly. Apparently the various window messages did not cast properly, skipping some important "deleted window" checks.
This commit is contained in:
parent
a210fe6dbd
commit
36d96f7f37
@ -104,7 +104,7 @@ public:
|
||||
|
||||
// Message data for window rect changes.
|
||||
class WindowRectMessage : public WindowMessage {
|
||||
GDSOFTCLASS(WindowRectMessage, Message);
|
||||
GDSOFTCLASS(WindowRectMessage, WindowMessage);
|
||||
|
||||
public:
|
||||
// NOTE: This is in "scaled" terms. For example, if there's a 1920x1080 rect
|
||||
@ -113,7 +113,7 @@ public:
|
||||
};
|
||||
|
||||
class WindowEventMessage : public WindowMessage {
|
||||
GDSOFTCLASS(WindowEventMessage, Message);
|
||||
GDSOFTCLASS(WindowEventMessage, WindowMessage);
|
||||
|
||||
public:
|
||||
DisplayServer::WindowEvent event;
|
||||
@ -127,14 +127,14 @@ public:
|
||||
};
|
||||
|
||||
class DropFilesEventMessage : public WindowMessage {
|
||||
GDSOFTCLASS(DropFilesEventMessage, Message);
|
||||
GDSOFTCLASS(DropFilesEventMessage, WindowMessage);
|
||||
|
||||
public:
|
||||
Vector<String> files;
|
||||
};
|
||||
|
||||
class IMEUpdateEventMessage : public WindowMessage {
|
||||
GDSOFTCLASS(IMEUpdateEventMessage, Message);
|
||||
GDSOFTCLASS(IMEUpdateEventMessage, WindowMessage);
|
||||
|
||||
public:
|
||||
String text;
|
||||
@ -142,7 +142,7 @@ public:
|
||||
};
|
||||
|
||||
class IMECommitEventMessage : public WindowMessage {
|
||||
GDSOFTCLASS(IMECommitEventMessage, Message);
|
||||
GDSOFTCLASS(IMECommitEventMessage, WindowMessage);
|
||||
|
||||
public:
|
||||
String text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user