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/drivers/X11/Fl_X11_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/drivers/X11/Fl_X11_Window_Driver.cxx')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Window_Driver.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx index 6de56f229..7beb6d9af 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx @@ -485,6 +485,20 @@ void Fl_X11_Window_Driver::unmap() { XUnmapWindow(fl_display, fl_xid(pWindow)); } + +// Turning the border on/off by changing the motif_wm_hints property +// works on Irix 4DWM. Does not appear to work for any other window +// manager. Fullscreen still works on some window managers (fvwm is one) +// because they allow the border to be placed off-screen. + +// Unfortunately most X window managers ignore changes to the border +// and refuse to position the border off-screen, so attempting to make +// the window full screen will lose the size of the border off the +// bottom and right. +void Fl_X11_Window_Driver::use_border() { + if (pWindow->shown()) Fl_X::i(pWindow)->sendxjunk(); +} + // // End of "$Id$". // |
