about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/my_x11_conv.c19
-rw-r--r--src/libtools/my_x11_conv.h3
2 files changed, 22 insertions, 0 deletions
diff --git a/src/libtools/my_x11_conv.c b/src/libtools/my_x11_conv.c
index 7a7c1259..d0f961e2 100644
--- a/src/libtools/my_x11_conv.c
+++ b/src/libtools/my_x11_conv.c
@@ -965,3 +965,22 @@ void inplace_XFontStruct_enlarge(void* a)
     for(int i=dst->n_properties-1; i>=0;  --i)
         convert_XFontProp_to_64(dst->properties+i, properties_s+i);
 }
+
+void convert_XSetWindowAttributes_to_64(my_XSetWindowAttributes_t* dst, my_XSetWindowAttributes_32_t* src)
+{
+    dst->background_pixmap = from_ulong(src->background_pixmap);
+    dst->background_pixel = from_ulong(src->background_pixel);
+    dst->border_pixmap = from_ulong(src->border_pixmap);
+    dst->border_pixel = from_ulong(src->border_pixel);
+    dst->bit_gravity = src->bit_gravity;
+    dst->win_gravity = src->win_gravity;
+    dst->backing_store = from_ulong(src->backing_store);
+    dst->backing_planes = from_ulong(src->backing_planes);
+    dst->backing_pixel = src->backing_pixel;
+    dst->save_under = src->save_under;
+    dst->event_mask = from_long(src->event_mask);
+    dst->do_not_propagate_mask = from_long(src->do_not_propagate_mask);
+    dst->override_redirect = src->override_redirect;
+    dst->colormap = from_ulong(src->colormap);
+    dst->cursor = from_ulong(src->cursor);
+}
\ No newline at end of file
diff --git a/src/libtools/my_x11_conv.h b/src/libtools/my_x11_conv.h
index ccd9e497..10b8229b 100644
--- a/src/libtools/my_x11_conv.h
+++ b/src/libtools/my_x11_conv.h
@@ -49,4 +49,7 @@ void inplace_XFontProp_shrink(void* a);
 void inplace_XFontProp_enlarge(void* a);
 void inplace_XFontStruct_shrink(void* a);
 void inplace_XFontStruct_enlarge(void* a);
+
+void convert_XSetWindowAttributes_to_64(my_XSetWindowAttributes_t* dst, my_XSetWindowAttributes_32_t* src);
+
 #endif//MY_X11_CONV
\ No newline at end of file