mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Copy+paste swaybg code to swaylock for testing
This commit is contained in:
parent
067ac6cfa7
commit
d2e9c68640
2 changed files with 125 additions and 3 deletions
|
|
@ -56,8 +56,8 @@ int main(int argc, const char **argv) {
|
|||
desktop_shell_set_background(registry->desktop_shell, output->output, window->surface);
|
||||
list_add(surfaces, window);
|
||||
|
||||
GError *err=NULL;
|
||||
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(argv[2],&err);
|
||||
GError *err = NULL;
|
||||
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(argv[2], &err);
|
||||
if (!pixbuf) {
|
||||
sway_abort("Failed to load background image.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue