mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
swaybg: make argv const
This commit is contained in:
parent
9fb020d04c
commit
78c2e29328
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ void sway_terminate(void) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, const char **argv) {
|
||||||
init_log(L_INFO);
|
init_log(L_INFO);
|
||||||
surfaces = create_list();
|
surfaces = create_list();
|
||||||
registry = registry_poll();
|
registry = registry_poll();
|
||||||
|
@ -49,7 +49,7 @@ int main(int argc, char **argv) {
|
||||||
desktop_shell_set_background(registry->desktop_shell, output->output, window->surface);
|
desktop_shell_set_background(registry->desktop_shell, output->output, window->surface);
|
||||||
list_add(surfaces, window);
|
list_add(surfaces, window);
|
||||||
|
|
||||||
char *scaling_mode = argv[3];
|
const char *scaling_mode = argv[3];
|
||||||
cairo_surface_t *image = cairo_image_surface_create_from_png(argv[2]);
|
cairo_surface_t *image = cairo_image_surface_create_from_png(argv[2]);
|
||||||
double width = cairo_image_surface_get_width(image);
|
double width = cairo_image_surface_get_width(image);
|
||||||
double height = cairo_image_surface_get_height(image);
|
double height = cairo_image_surface_get_height(image);
|
||||||
|
|
Loading…
Reference in a new issue