summaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r--src/FbTk/FbWindow.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 3a3040b..5fd70d7 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.3 2002/12/16 11:17:26 fluxgen Exp $ 22// $Id: FbWindow.cc,v 1.4 2003/01/05 22:58:11 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25 25
@@ -32,7 +32,8 @@ namespace FbTk {
32 32
33Display *FbWindow::s_display = 0; 33Display *FbWindow::s_display = 0;
34 34
35FbWindow::FbWindow():m_parent(0), m_screen_num(0), m_window(0) { 35FbWindow::FbWindow():m_parent(0), m_screen_num(0), m_window(0), m_x(0), m_y(0),
36 m_width(0), m_height(0), m_border_width(0) {
36 37
37 if (s_display == 0) 38 if (s_display == 0)
38 s_display = App::instance()->display(); 39 s_display = App::instance()->display();
@@ -83,6 +84,7 @@ void FbWindow::setBorderColor(const FbTk::Color &border_color) {
83} 84}
84void FbWindow::setBorderWidth(size_t size) { 85void FbWindow::setBorderWidth(size_t size) {
85 XSetWindowBorderWidth(s_display, m_window, size); 86 XSetWindowBorderWidth(s_display, m_window, size);
87 m_border_width = size;
86} 88}
87 89
88void FbWindow::setName(const char *name) { 90void FbWindow::setName(const char *name) {
@@ -170,7 +172,9 @@ void FbWindow::create(Window parent, int x, int y,
170 s_display = FbTk::App::instance()->display(); 172 s_display = FbTk::App::instance()->display();
171 173
172 assert(s_display); 174 assert(s_display);
173 175
176 m_border_width = 0;
177
174 long valmask = CWEventMask; 178 long valmask = CWEventMask;
175 XSetWindowAttributes values; 179 XSetWindowAttributes values;
176 values.event_mask = eventmask; 180 values.event_mask = eventmask;