Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
redraw_fixer: a couple of style fixes
[staging/windowmanager.git]
/
src
/
redraw_fixer.cpp
diff --git
a/src/redraw_fixer.cpp
b/src/redraw_fixer.cpp
index
b945ac5
..
94964af
100644
(file)
--- a/
src/redraw_fixer.cpp
+++ b/
src/redraw_fixer.cpp
@@
-39,9
+39,9
@@
struct App {
void try_fix(uint32_t surface_id);
};
void try_fix(uint32_t surface_id);
};
-void controller_hooks::surface_created(uint32_t
surface_id
) {}
+void controller_hooks::surface_created(uint32_t
/*surface_id*/
) {}
-void controller_hooks::surface_removed(uint32_t
surface_id
) {}
+void controller_hooks::surface_removed(uint32_t
/*surface_id*/
) {}
void controller_hooks::surface_visibility(uint32_t surface_id, uint32_t v) {
this->app->surface_visibility(surface_id, v);
void controller_hooks::surface_visibility(uint32_t surface_id, uint32_t v) {
this->app->surface_visibility(surface_id, v);
@@
-78,9
+78,10
@@
App::App() : chooks{this}, display{new wl::display}, controller{}, outputs{} {
this->outputs.back()->proxy.get())));
});
this->outputs.back()->proxy.get())));
});
- for (int i : {1, 2, 3})
+ for (int i : {1, 2, 3})
{
this->display->roundtrip();
}
this->display->roundtrip();
}
+}
void App::commit() {
this->controller->commit_changes();
void App::commit() {
this->controller->commit_changes();
@@
-114,13
+115,14
@@
void App::try_fix(uint32_t surface_id) {
} // namespace wm
} // namespace wm
-int main(int
argc, char **argv
) {
+int main(int
/*argc*/, char ** /*argv*/
) {
wm::App app;
if (!app.display->ok()) {
fputs("Could not init wayland display\n", stderr);
return 1;
}
wm::App app;
if (!app.display->ok()) {
fputs("Could not init wayland display\n", stderr);
return 1;
}
- while (app.display->dispatch() != -1)
+ while (app.display->dispatch() != -1)
{
;
;
+ }
return 0;
}
return 0;
}