Permalink
Browse files

Eugh. Create the sepwin before the recwin

The sepwin depends on a value computed by the recwin's draw handler.
This is kinda nasty...
  • Loading branch information...
1 parent 358eeae commit 4eee9482aeaa92aa1199b5d6ca4141afdf5f0791 @davidben davidben committed Jun 4, 2010
Showing with 8 additions and 1 deletion.
  1. +5 −0 doc/owl-window.txt
  2. +3 −1 mainpanel.c
View
@@ -174,3 +174,8 @@ Known issues and notes
ids. This is somewhat a side effect of us not using GObject
everywhere; the signals can automatically disconnect in the right
contexts if we do.
+
+- The sepbar depends on a value computed while the mainwin is drawn,
+ so we currently ensure the windows are created in the right order
+ for the repaints to occur correctly. This is rather poor and should
+ be refactored later.
View
@@ -4,8 +4,10 @@ void owl_mainpanel_init(owl_mainpanel *mp)
{
/* Create windows */
mp->panel = owl_window_new(NULL);
- mp->recwin = owl_window_new(mp->panel);
+ /* HACK for now: the sepwin must be drawn /after/ the recwin for
+ * lastdisplayed to work */
mp->sepwin = owl_window_new(mp->panel);
+ mp->recwin = owl_window_new(mp->panel);
mp->msgwin = owl_window_new(mp->panel);
mp->typwin = owl_window_new(mp->panel);

0 comments on commit 4eee948

Please sign in to comment.