diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-04-27 15:48:25 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-04-27 15:48:25 +0000 |
commit | 11fb48f46349feb0520c95f957cfa326dd50ca0f (patch) | |
tree | 92a01f7f3cfb04c88505773635a84f69b932794f | |
parent | 588b02614d8b3c5e70a21a7d635d659b16062fc1 (diff) |
let the number-of-client display show at least 0 clients
-rwxr-xr-x | hw/xwin/windialogs.c | 4 |
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) { |