summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbWindow.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 5634a5d..ed97ecc 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWindow.cc,v 1.18 2003/05/17 10:43:20 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.19 2003/05/19 08:27:49 rathnor Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25#include "EventManager.hh" 25#include "EventManager.hh"
@@ -121,6 +121,9 @@ FbWindow &FbWindow::operator = (Window win) {
121} 121}
122 122
123void FbWindow::setNew(Window win) { 123void FbWindow::setNew(Window win) {
124 if (s_display == 0)
125 s_display = App::instance()->display();
126
124 if (m_window != 0 && m_destroy) 127 if (m_window != 0 && m_destroy)
125 XDestroyWindow(s_display, m_window); 128 XDestroyWindow(s_display, m_window);
126 m_window = win; 129 m_window = win;