Let the bandwagon jumping begin…..


klange seems to be away for a bit along with the code to SpringDesk, which is updated and I also can’t retrieve it, so I decided to start porting plugins to the compiz++ branch, which more likely than not looks like the direction we will be heading in. This was also a good oppurtunity for me to learn C++, so I learnt it the way I learn’t C. Trial and Error through compiz code ;-). In all seriousness, this first really insignificant piece of work took me roughly 5-6 hours to get right, because I suck at everything I first start at.

Without further ado I present to you lazypointer++!!

Yes, yes, possibly the most useless and annoying plugin I’ve ever made, but it’s a start, at least a psycological start for me and provides me some knowledge on how compiz++ plugins should work.

Also, regarding compiz++ itself, here are some first thoughts:

  • It’s quite fast. To start anyways with, what 6 plugins? Still, considerably faster than normal compiz from what I’ve noticed.
  • Also quite nice that it can run without any OGL/composite. Tried it with the ‘nv’ driver and it works fine, even if it is quite dull 😉
  • The developer interface is really quite nice once you get used to it. We used to have to do a whole bunch of messy memory management, linked list management, function hooking, call chains privates handling and inheritance ourselves by mucking around in the code. All this is done in the background for you in compiz++,  Much less code is now required.

So. Unofficial compiz++ port number one is on the list. Let’s keep the ball rolling!

PS: The ‘Makefile’ inside the lazypointer plugin compiz++ repo is more recent than the one in the crashhandler compiz++ repo and includes some fixes by Dennis to link to other compiz plugins properly (like composite and opengl). Edit: Looks like onestone just fixed it. Used his.

PPS: New C++ developers might want to check out http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html and http://www.parashift.com/c++-faq-lite/ and also the ‘c++filt’ tool is really useful for demangling the symbol names in symbol errors.


8 thoughts on “Let the bandwagon jumping begin…..

  1. Hi smspillaz,

    I looked already to the source. It is indeed easier to read then the C version, but could it be possible to still add comments in the source on what you are doing exactly? I would find that very interesting 😀

  2. Indeed, this would be a great chance to comment code, and/or write some
    documentation for the compiz++ api, no matter how basic.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s