Closed santigimeno closed 10 years ago
@sidorares this PR is somehow related with the comment I made about this module to be used by WM's.
Also, I feel that with this change, the modification of the event mask in the root window is not a problem anymore, as every window manager is going to set SubstructureRedirect in the root window
Why do you want to set SubstructureRedirect? Can we just assume that it is already set if we need to listen for specific request (do we? MapRequest, ConfigureRequest, UnmapRequest etc)
I set it just in case the window manager hasn't already set. Yes it's unlikely but I think it doesn't hurt. Maybe I can check if it's already checked before setting it.
If another wm is running changeattributes request will fail. Maybe add callback and check for BadMatch error?
I'm assuming the only wm running is the one using the module.
I've been thinking about the purpose of the module, let me try to explain (and please correct me if I'm wrong)
From what I understand, the operations related to EWMH to be performed by WM's and clients are different:
You said in another thread that most operations between WM's and clients are shared. Which operations are those?
So I've been thinking that operations for WM's can be implemented in this module and operations for clients in another (symetric). Or have both in this module but diferent exports.
Thoughts?
Regarding my long comment, now I see there are common functions between client and wm's. I'm still not sure we should make this module work for both client and server though.
@sidorares I'd like to include this PR and make a release. Do you have any objection or comment?
No objections about your PRs - please merge everything if you happy with changes
Regarding your comment - let's add features we actually going to use. I started writing simple composite manager, hence my cm-owner pull request. I'd also like to integrate some of ewmh functionality with @dominictarr tiles wm
Yep, I agree. The composite manager thing sounds great. Are you planning supporting transparency? Let me know when you have something.
Yes, with transparency. Initially using xrender (all requests already available) and then with glx (need to figure out how to create texture out of pixmap)
I think compiz does it with glx