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 b8a27af25..a83457b10 100644
--- a/xorg-server/Xi/xibarriers.c
+++ b/xorg-server/Xi/xibarriers.c
@@ -916,3 +916,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);
+ }
+}