Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 4eee9482aeaa92aa1199b5d6ca4141afdf5f0791 1 parent 358eeae
David Benjamin authored June 04, 2010
5  doc/owl-window.txt
@@ -174,3 +174,8 @@ Known issues and notes
174 174
   ids. This is somewhat a side effect of us not using GObject
175 175
   everywhere; the signals can automatically disconnect in the right
176 176
   contexts if we do.
  177
+
  178
+- The sepbar depends on a value computed while the mainwin is drawn,
  179
+  so we currently ensure the windows are created in the right order
  180
+  for the repaints to occur correctly. This is rather poor and should
  181
+  be refactored later.
4  mainpanel.c
@@ -4,8 +4,10 @@ void owl_mainpanel_init(owl_mainpanel *mp)
4 4
 {
5 5
   /* Create windows */
6 6
   mp->panel = owl_window_new(NULL);
7  
-  mp->recwin = owl_window_new(mp->panel);
  7
+  /* HACK for now: the sepwin must be drawn /after/ the recwin for
  8
+   * lastdisplayed to work */
8 9
   mp->sepwin = owl_window_new(mp->panel);
  10
+  mp->recwin = owl_window_new(mp->panel);
9 11
   mp->msgwin = owl_window_new(mp->panel);
10 12
   mp->typwin = owl_window_new(mp->panel);
11 13
 

0 notes on commit 4eee948

Please sign in to comment.
Something went wrong with that request. Please try again.