Skip to content

Commit

Permalink
Debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths committed Sep 15, 2023
1 parent 600a0c5 commit b69ad49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/frontend_wayland/xdg_shell_stable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,10 @@ void mf::XdgToplevelStable::handle_active_change(bool /*is_now_active*/)

void mf::XdgToplevelStable::handle_resize(
std::optional<geometry::Point> const& /*new_top_left*/,
geometry::Size const& /*new_size*/)
geometry::Size const& new_size)
{
log_debug("mf::XdgToplevelStable::handle_resize({%d, %d})", new_size.width.as_int(), new_size.height.as_int());

send_toplevel_configure();
}

Expand Down Expand Up @@ -674,6 +676,8 @@ void mf::XdgToplevelStable::send_toplevel_configure()
// 0 sizes means default for toplevel configure
geom::Size size = requested_window_size().value_or(geom::Size{0, 0});

log_debug("mf::XdgToplevelStable::send_toplevel_configure({%d, %d})", size.width.as_int(), size.height.as_int());

send_configure_event(size.width.as_int(), size.height.as_int(), &states);
wl_array_release(&states);

Expand Down

0 comments on commit b69ad49

Please sign in to comment.