Skip to content

Commit

Permalink
session: clear libinput devices before unrefing libinput
Browse files Browse the repository at this point in the history
thanks @ikalco
  • Loading branch information
vaxerski committed Jul 3, 2024
1 parent 4ca125d commit a0cfad9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ SP<CSession> Aquamarine::CSession::attempt(Hyprutils::Memory::CSharedPointer<CBa

Aquamarine::CSession::~CSession() {
sessionDevices.clear();
libinputDevices.clear();

if (libinputHandle)
libinput_unref(libinputHandle);
Expand Down

0 comments on commit a0cfad9

Please sign in to comment.