PDA

View Full Version : blurset and blurdemo


mikedee
February 8th, 2007, 04:31 PM
For people who do not follow tha mailing list, there are 2 small programs which are additions to the new blur plugin.

They are blurset and blurdemo, you can use blurset to control how and where transparent windows blur the content beneith them.

To get these programs, check them out from git like this

git clone http://git.compiz.org/blurset
git clone http://git.compiz.org/blurdemo

Then type make to compile them.

For developers. You can set certain hints on your window to control the blur plugin (for when content under the window is blurred).

You should set this hint on each window. _COMPIZ_WM_WINDOW_BLUR The value should be a list of integers like this.

data[0] = threshold
data[1] = blur type (not used ATM)

You can then optionally add regions so that your windows can have shaped blurring behind them (particularly useful for decorators). Add the regions in groups of 6 after the first 2. ie.

data[2] = region_point1_gravity
data[3] = region_point1_x
data[4] = region_point1_y
data[5] = region_point2_gravity
data[6] = region_point2_x
data[7] = region_point2_y
etc...

QUASAR
September 25th, 2007, 02:02 AM
where is this code now?

i want to learn to do windows with argb in python and this code (in c) maybe helps, if some one has a sample code to learn this is also welcome =)

/* sorry for my english */