-
Notifications
You must be signed in to change notification settings - Fork 11
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
Are there any unused created entities? #21
Comments
I don't think lines 1465 to 1469 are in fact unnecessary, even though it might appear so. While the call to xcb_shm_get_image for example looks out of place, internally it (I presume) updates or syncs the buffers for external access. Earlier, I did try would it work without it, or if I moved it to somewhere else and called it maybe once, but the testing showed that it would only result in black buffers. I'm not aware of better usage when dealing with SHM though. What are the other occurrences where it would seem (or is definitely the case) some portion of code is not needed? |
in that file the lines 1485-1489. |
ok, but why creating pointer |
In some cases the image depth is given by |
Nope, it didn't work. While the window contents are visible, the frames are no longer synchronized. In the current design, |
I just think that *_reply is for data access only -- it does nothing about the internal Xorg structure. |
It doesn't, but it allows one to wait for the internals to be ready for copying. If the next step i.e. access to the shared memory buffers is done without it, it seems to result in glitching and dropped frames. |
from line https://github.com/jaelpark/chamferwm/blob/master/src/compositor.cpp#L1465 to line https://github.com/jaelpark/chamferwm/blob/master/src/compositor.cpp#L1469 -- are the entities used?
xcb_shm_get_image_reply_t *
is created but then only released without use.Do we have to create these entities?
There are several such situations in your code.
The text was updated successfully, but these errors were encountered: