1
#include "gtk-window-decorator.h"
4
decor_update_blur_property (decor_t *d,
16
Display *xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
20
if (blur_type != BLUR_TYPE_ALL)
26
if (blur_type != BLUR_TYPE_TITLEBAR)
31
size += top_region->numRects;
33
size += bottom_region->numRects;
35
size += left_region->numRects;
37
size += right_region->numRects;
40
data = (long *) malloc (sizeof (long) * (2 + size * 6));
44
decor_region_to_blur_property (data, 4, 0, width, height,
45
top_region, top_offset,
46
bottom_region, bottom_offset,
47
left_region, left_offset,
48
right_region, right_offset);
50
gdk_error_trap_push ();
51
XChangeProperty (xdisplay, d->prop_xid,
54
32, PropModeReplace, (guchar *) data,
56
gdk_display_sync (gdk_display_get_default ());
57
gdk_error_trap_pop ();
63
gdk_error_trap_push ();
64
XDeleteProperty (xdisplay, d->prop_xid, win_blur_decor_atom);
65
gdk_display_sync (gdk_display_get_default ());
66
gdk_error_trap_pop ();
b'\\ No newline at end of file'