Enable gcc wall and werror.

This commit is contained in:
James Grogan 2023-01-23 11:06:30 +00:00
parent 990cde402b
commit 3fad113178
64 changed files with 347 additions and 314 deletions

View file

@ -54,7 +54,7 @@ std::unique_ptr<MouseEvent> XcbEventInterface::convertButtonPress(xcb_button_pre
auto screen_x = static_cast<unsigned>(event->root_x);
auto screen_y = static_cast<unsigned>(event->root_y);
ui_event->setScreenLocation(DiscretePoint(x, y));
ui_event->setScreenLocation(DiscretePoint(screen_x, screen_y));
ui_event->setAction(MouseEvent::Action::Pressed);
return ui_event;
}
@ -68,7 +68,7 @@ std::unique_ptr<MouseEvent> XcbEventInterface::convertButtonRelease(xcb_button_p
auto screen_x = static_cast<unsigned>(event->root_x);
auto screen_y = static_cast<unsigned>(event->root_y);
ui_event->setScreenLocation(DiscretePoint(x, y));
ui_event->setScreenLocation(DiscretePoint(screen_x, screen_y));
ui_event->setAction(MouseEvent::Action::Released);
return ui_event;