Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with compton #13

Open
ExtraTNT opened this issue Aug 8, 2020 · 3 comments
Open

Does not work with compton #13

ExtraTNT opened this issue Aug 8, 2020 · 3 comments

Comments

@ExtraTNT
Copy link

ExtraTNT commented Aug 8, 2020

first of all, the project is really nice, works even in a vm without problems...
but...
it does not work while compton is running.
since it hasn't commented anything in the code, i haven't figured out how it works... (well, i'm probably not very good in c...)
but i guess that it does not draw on the rootwindow...
if it would draw directly to the rootwindow it should work (I had a script which did exactly that and it worked -> but cpu on fire)

(i'm probably not very good in english to..., sry 4 that... xD)


my test-setup:

vm with 8gb ram and 16 threads (r9 3900x)
debian 10.5.0
linux 4.19.0-10
i3wm 4.16.1
compton 0.1~beta2+20150922
(wallpaper set with feh -> survives paperview)
make 4.2.1
xorg 1:7.7+19

@glouw
Copy link
Owner

glouw commented Aug 9, 2020

Picom is also another manager that interferes with paperview.

As for the root window:

static Video Setup(void)
{
    Video self;
    self.x11d = XOpenDisplay(NULL);
    const Window x11w = RootWindow(self.x11d, DefaultScreen(self.x11d));
    SDL_Init(SDL_INIT_VIDEO);
    self.window = SDL_CreateWindowFrom((void*) x11w);
    self.renderer = SDL_CreateRenderer(self.window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
    return self;
}

An SDL_Renderer is created from an X11 Root Window. Sadly, it is beyond me why Picom and Compton do not work with paperview.

@ExtraTNT
Copy link
Author

the script i had just changed the wallpaper every few ms with feh... you can ev find a solution there...

https://github.com/derf/feh/blob/master/src/wallpaper.c

@ViggoGaming
Copy link

Have anyone found a solution for this?

I am running paperview and when I launch picom it just disables the animated wallpaper paperview created...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants