Skip to content

Commit

Permalink
xdg-toplevel: update wm-offset before emitting signal
Browse files Browse the repository at this point in the history
Fixes up a mistake in #1947
  • Loading branch information
ammen99 committed Oct 8, 2023
1 parent ffbed0a commit 1c5d2ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/xdg-shell/xdg-toplevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ void wf::xdg_toplevel_t::handle_surface_commit()
if (this->wm_offset != wf::origin(wm_box))
{
// Trigger reppositioning in the view implementation
this->wm_offset = wf::origin(wm_box);
xdg_toplevel_applied_state_signal event_applied;
event_applied.old_state = current();
this->emit(&event_applied);
Expand Down

0 comments on commit 1c5d2ad

Please sign in to comment.