summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquinn <quinn>2006-12-22 00:52:42 +0000
committerquinn <quinn>2006-12-22 00:52:42 +0000
commite7acfa34c85bacdc18c79083846af3064af12805 (patch)
treea09171eef19547aadad447629f1f6453ad0149d9
parente32ac213d5d6a79ec54680038f23f6dc125794be (diff)
downloadberyl-manager-e7acfa34c85bacdc18c79083846af3064af12805.tar.gz
beryl-manager-e7acfa34c85bacdc18c79083846af3064af12805.tar.bz2
beryl-manager:
-fix fallback WM calculations
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 8b7c4e9..e14aa7d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -166,7 +166,7 @@ signalHandler (int sig)
case SIGUSR2:
if (!suspending) {
if (!WM) {
- WM=fallBackWM + 4;
+ WM=fallBackWM + 3;
startWM();
suspending = 1;
}
@@ -724,7 +724,7 @@ gpointer berylThread(gpointer d)
//if this thread exits, and WM is still beryl, fall back into the fall back WM
if (WM==0 && useFB)
{
- WM=fallBackWM+1;
+ WM=fallBackWM+3;
gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(WMs[WM].Item),TRUE);
//gtk_widget_set_sensitive(useFBItem,FALSE);
gtk_widget_set_sensitive(DMSubItem,FALSE);
@@ -947,7 +947,7 @@ gboolean detect_wm(gint wm)
}
if (wm == WM)
WM=-1;
- if (wm == fallBackWM+1)
+ if (wm == fallBackWM+3)
fallBackWM=-1;
return FALSE;
}