Skip to content

Commit

Permalink
fix: Use maybe_unused instead of Q_UNUSED
Browse files Browse the repository at this point in the history
  • Loading branch information
Dami-star authored and Groveer committed Dec 16, 2024
1 parent 3da6a55 commit 4940374
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/seat/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,9 +1492,8 @@ void Helper::setCursorPosition(const QPointF &position)
m_seat->setCursorPosition(position);
}

void Helper::handleRequestDrag(WSurface *surface)
void Helper::handleRequestDrag([[maybe_unused]] WSurface *surface)
{
Q_UNUSED(surface);
m_seat->setAlwaysUpdateHoverTarget(true);

struct wlr_drag *drag = m_seat->nativeHandle()->drag;
Expand Down
2 changes: 1 addition & 1 deletion src/seat/helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private Q_SLOTS:
void onRestoreCopyOutput(treeland_virtual_output_v1 *virtual_output);
void onSurfaceWrapperAdded(SurfaceWrapper *wrapper);
void onSurfaceWrapperAboutToRemove(SurfaceWrapper *wrapper);
void handleRequestDrag(WSurface *surface);
void handleRequestDrag([[maybe_unused]] WSurface *surface);
void handleLockScreen(LockScreenInterface *lockScreen);

private:
Expand Down

0 comments on commit 4940374

Please sign in to comment.