diff options
author | sabetts <sabetts> | 2006-12-14 12:06:04 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2006-12-14 12:06:04 +0000 |
commit | 1ca0ac6946589f8450cd166ae5bff31689abe1b8 (patch) | |
tree | e19692556cd44d19a8229396c588bc5298e8f3d2 /src/input.c | |
parent | 382f48f4cd9861e8c08d8d9c7ea7f67e87bd4e00 (diff) | |
download | ratpoison-1ca0ac6946589f8450cd166ae5bff31689abe1b8.zip |
*** empty log message ***
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c index cadd5cb..afef806 100644 --- a/src/input.c +++ b/src/input.c @@ -497,6 +497,11 @@ get_more_input (char *prompt, char *preinput, /* We don't want to draw overtop of the program bar. */ hide_bar (s); + /* Switch to the default colormap. */ + if (current_window()) + XUninstallColormap (dpy, current_window()->colormap); + XInstallColormap (dpy, s->def_cmap); + XMapWindow (dpy, s->input_window); XRaiseWindow (dpy, s->input_window); XClearWindow (dpy, s->input_window); @@ -547,5 +552,12 @@ get_more_input (char *prompt, char *preinput, XUngrabKeyboard (dpy, CurrentTime); XUnmapWindow (dpy, s->input_window); + /* Possibly restore colormap. */ + if (current_window()) + { + XUninstallColormap (dpy, s->def_cmap); + XInstallColormap (dpy, current_window()->colormap); + } + return final_input; } |