summaryrefslogtreecommitdiff
path: root/otk_c/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'otk_c/display.c')
-rw-r--r--otk_c/display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/otk_c/display.c b/otk_c/display.c
index 5efe7197..016aa948 100644
--- a/otk_c/display.c
+++ b/otk_c/display.c
@@ -126,6 +126,8 @@ line argument.\n\n"));
self->screenInfoList = PyList_New(ScreenCount(self->display));
for (i = 0; i < ScreenCount(self->display); ++i)
PyList_SetItem(self->screenInfoList, i, OtkScreenInfo_New(i));
+
+ Py_INCREF(OBDisplay); // make sure it stays around!!
}
void OtkDisplay_Grab(OtkDisplay *self)