summaryrefslogtreecommitdiff
path: root/hw/xwin/windialogs.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwin/windialogs.c')
-rwxr-xr-xhw/xwin/windialogs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/xwin/windialogs.c b/hw/xwin/windialogs.c
index 6d4596f66..ad8272843 100755
--- a/hw/xwin/windialogs.c
+++ b/hw/xwin/windialogs.c
@@ -222,6 +222,10 @@ winDisplayExitDialog (winPrivScreenPtr pScreenPriv)
if (g_fClipboardStarted)
liveClients--; /* clipboard manager */
+ /* A user reported that this sometimes drops below zero. just eye-candy. */
+ if (liveClients < 0)
+ liveClients = 0;
+
/* Don't show the exit confirmation dialog if SilentExit is enabled */
if (pref.fSilentExit && liveClients <= 0)
{