diff options
| author | Manolo Gouy <Manolo> | 2016-03-23 16:14:35 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-23 16:14:35 +0000 |
| commit | 6608db0b0c88fb01a903c47b9e1bbed477766ec2 (patch) | |
| tree | 7a09e9b7e9d568e2b06092d5850850044bcb9ecf /src/Fl_Window_Driver.cxx | |
| parent | c2eb9d730f7bafa7a701ddaa4c094978c57f41af (diff) | |
Rewrite Fl_Window::border(int) under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11409 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
| -rw-r--r-- | src/Fl_Window_Driver.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx index 6122d69d4..ef6c49c3b 100644 --- a/src/Fl_Window_Driver.cxx +++ b/src/Fl_Window_Driver.cxx @@ -196,6 +196,14 @@ int Fl_Window_Driver::hide_common() { return 0; } + +void Fl_Window_Driver::use_border() { + if (pWindow->shown()) { + pWindow->hide(); // hide and then show to reflect the new state of the window border + pWindow->show(); + } +} + // // End of "$Id$". // |
