Fix _XROOT... hack.

SVN revision: 11835
This commit is contained in:
Kim Woelders 2004-10-11 20:28:56 +00:00
parent b25f688499
commit 3908bb588f
5 changed files with 10 additions and 3 deletions

View File

@ -660,7 +660,8 @@ BackgroundsAccounting(void)
/* Unviewable desktop - update the virtual root hints */
win = desks.desk[j].win;
HintsSetRootInfo(win, 0, 0);
if (!Conf.hints.set_xroot_info_on_root_window)
HintsSetRootInfo(win, 0, 0);
XSetWindowBackground(disp, win, 0);
XClearWindow(disp, win);
}

View File

@ -157,6 +157,7 @@
#define CONTROL_ST_WARPLIST 1384
#define CONTROL_MENU_NAVIGATION_KEYS 1390
#define CONTROL_HINTS_XROOT_HACK 1391
#define ICLASS_NAME 350
#define ICLASS_NORMAL 351

View File

@ -1012,6 +1012,10 @@ Config_Control(FILE * ConfigFile)
break;
}
break;
case CONTROL_HINTS_XROOT_HACK:
Conf.hints.set_xroot_info_on_root_window = i2;
break;
default:
RecoverUserConfig();
Alert(_("Warning: unable to determine what to do with\n"
@ -3958,6 +3962,8 @@ SaveUserControlConfig(FILE * autosavefile)
XKeysymToString(Conf.menukeys.escape));
fprintf(autosavefile, "1390 5 %s\n",
XKeysymToString(Conf.menukeys.ret));
fprintf(autosavefile, "1391 %i\n",
Conf.hints.set_xroot_info_on_root_window);
#ifdef HAS_XINERAMA
fprintf(autosavefile, "2013 %i\n", (int)Conf.extra_head);
#endif

View File

@ -53,8 +53,6 @@ HintsInit(void)
XChangeProperty(disp, VRoot.win, atom, XA_STRING, 8, PropModeReplace,
(unsigned char *)e_wm_version, strlen(e_wm_version));
Conf.hints.set_xroot_info_on_root_window = 0;
EDBUG_RETURN_;
}

View File

@ -4418,6 +4418,7 @@ IPC_Hints(const char *params, Client * c)
Conf.hints.set_xroot_info_on_root_window = 0;
else if (!strncmp(param2, "root", 4))
Conf.hints.set_xroot_info_on_root_window = 1;
autosave();
}
Esnprintf(buf, sizeof(buf), "Set _XROOT* hints: %s",