+static VALUE c_get_protocol (VALUE self, VALUE proto)
+{
+ int s;
+
+ GET_OBJ (self, RbWindow, win);
+
+ s = ecore_x_window_prop_protocol_isset (win->real, FIX2INT (proto));
+
+ return s ? Qtrue : Qfalse;
+}
+
+static VALUE c_sticky_get (VALUE self)
+{
+ int s;
+
+ GET_OBJ (self, RbWindow, win);
+
+ s = ecore_x_window_prop_state_isset (win->real,
+ ECORE_X_WINDOW_STATE_STICKY);
+
+ return s ? Qtrue : Qfalse;
+}
+
+static VALUE c_sticky_set (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbWindow, win);
+
+ CHECK_BOOL (val);
+
+ ecore_x_window_prop_sticky_set (win->real, val == Qtrue);
+
+ return Qnil;
+}
+