forked from quickshell/quickshell
wayland: fix UAF in layershell surface destructor
This commit is contained in:
parent
7feae55ebe
commit
6c9526761c
3 changed files with 18 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <qobject.h>
|
||||
#include <qscreen.h>
|
||||
#include <qtclasshelpermacros.h>
|
||||
#include <qtmetamacros.h>
|
||||
#include <qtypes.h>
|
||||
#include <qwindow.h>
|
||||
|
@ -56,6 +57,8 @@ class LayershellWindowExtension: public QObject {
|
|||
|
||||
public:
|
||||
LayershellWindowExtension(QObject* parent = nullptr): QObject(parent) {}
|
||||
~LayershellWindowExtension() override;
|
||||
Q_DISABLE_COPY_MOVE(LayershellWindowExtension);
|
||||
|
||||
// returns the layershell extension if attached, otherwise nullptr
|
||||
static LayershellWindowExtension* get(QWindow* window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue