diff options
author | fluxgen <fluxgen> | 2003-01-05 22:58:11 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-01-05 22:58:11 (GMT) |
commit | 459f2563d2470712a969cf48f6a1474b364dd3c4 (patch) | |
tree | ce25767b246b439387a101871dac664f4d19e6a8 /src/FbTk/FbWindow.cc | |
parent | b36851a47620c6035b2987bdff72f0ba26afe580 (diff) | |
download | fluxbox_pavel-459f2563d2470712a969cf48f6a1474b364dd3c4.zip fluxbox_pavel-459f2563d2470712a969cf48f6a1474b364dd3c4.tar.bz2 |
added border size
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r-- | src/FbTk/FbWindow.cc | 10 |
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 | ||
33 | Display *FbWindow::s_display = 0; | 33 | Display *FbWindow::s_display = 0; |
34 | 34 | ||
35 | FbWindow::FbWindow():m_parent(0), m_screen_num(0), m_window(0) { | 35 | FbWindow::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 | } |
84 | void FbWindow::setBorderWidth(size_t size) { | 85 | void 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 | ||
88 | void FbWindow::setName(const char *name) { | 90 | void 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; |