[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch] Force a redraw of the status bar after moving windows



When a floating window is moved over the status bar, it eventually
erases the statusbar window. However, the statusbar isn't redrawn until
a focus switch or restack or 'expose' event happens, or the layout
changes. The following patch adds an explicit drawstatusbar(...)
invocation on mouse release. A different solution would be to add a
statusbar-always-on-top knob, but that's rather orthogonal/
complementary to this change.

--- patch-explicit-drawstatusbar begins here ---
diff --git a/event.c b/event.c
index f15eb0b..3d45d9e 100644
--- a/event.c
+++ b/event.c
@@ -74,6 +74,7 @@ movemouse(Client * c, awesome_config *awesomeconf)
         {
         case ButtonRelease:
             XUngrabPointer(c->display, CurrentTime);
+            drawstatusbar(c->display, &awesomeconf[c->screen]);
             return;
         case ConfigureRequest:
         case Expose:
--- patch-explicit-drawstatusbar ends here ---

Cheers

\n\n


-- 
To unsubscribe, send mail to awesome-unsubscribe@xxxxxxxxxxxxx