summaryrefslogtreecommitdiff
path: root/src/bar.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-10-18 22:47:45 +0000
committersabetts <sabetts>2001-10-18 22:47:45 +0000
commit89c4411a9cc3bdb756cff8746f4333df610ab455 (patch)
treecdf25ccc98325d272c8d8f6ccd477c43833f24d6 /src/bar.c
parent0b7d45f2a5590f332f7528b7455b82513f28b9dc (diff)
downloadratpoison-89c4411a9cc3bdb756cff8746f4333df610ab455.zip
* src/split.c (show_frame_indicator): call XSync after clearing the window.
* src/input.c (get_more_input): clear the window after it is raised. Call XSync aftwards. * src/conf.h (MAX_LINK_DEPTH): new define * src/bar.c (marked_message): clear the window after it is raised. Call XSync aftwards. * src/actions.h (cmd_link): new prototype * src/actions.c (user_command): new command 'link' (find_command_by_keydesc): new function (resolve_command_from_keydesc): likewise (cmd_link): likewise
Diffstat (limited to 'src/bar.c')
-rw-r--r--src/bar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bar.c b/src/bar.c
index fc7e8c2..8e34d25 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -186,15 +186,15 @@ marked_message (char *msg, int mark_start, int mark_end)
width,
height);
- XClearWindow (dpy, s->bar_window);
XRaiseWindow (dpy, s->bar_window);
-
+ XClearWindow (dpy, s->bar_window);
+ XSync (dpy, False);
XDrawString (dpy, s->bar_window, s->normal_gc,
defaults.bar_x_padding,
defaults.bar_y_padding + defaults.font->max_bounds.ascent,
msg, strlen (msg));
-
-
+ XSync (dpy, False);
+
/* Crop to boundary conditions. */
if (mark_start < 0)
mark_start = 0;