aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/Xi/xibarriers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/Xi/xibarriers.c')
-rw-r--r--xorg-server/Xi/xibarriers.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xorg-server/Xi/xibarriers.c b/xorg-server/Xi/xibarriers.c
index fccab8615..6732ce9dc 100644
--- a/xorg-server/Xi/xibarriers.c
+++ b/xorg-server/Xi/xibarriers.c
@@ -917,3 +917,15 @@ XIBarrierInit(void)
return PointerBarrierType;
}
+
+void
+XIBarrierReset(void)
+{
+ int i;
+ for (i = 0; i < screenInfo.numScreens; i++) {
+ ScreenPtr pScreen = screenInfo.screens[i];
+ BarrierScreenPtr cs = GetBarrierScreen(pScreen);
+ free(cs);
+ SetBarrierScreen(pScreen, NULL);
+ }
+}