3 // X does not echo back the window-map events (it probably should when
4 // override_redirect is off). Unfortunately this means you have to use
5 // this subclass if you want a "normal" fltk window, it will force a
6 // Frame to be created and destroy it upon hide.
8 // Warning: modal() does not work! Don't turn it on as it screws up the
9 // interface with the window borders. You can use set_non_modal() to
10 // disable the iconize box but the window manager must be written to
14 #include "FrameWindow.h"
17 extern int dont_set_event_mask
;
19 void FrameWindow::show() {
20 if (shown()) {Fl_Window::show(); return;}
22 dont_set_event_mask
= 1;
23 frame
= new Frame(fl_xid(this));
24 dont_set_event_mask
= 0;
27 void FrameWindow::hide() {
34 int FrameWindow::handle(int e
) {
35 if (Fl_Window::handle(e
)) return 1;
36 // make Esc close the window:
37 if (e
== FL_SHORTCUT
&& Fl::event_key()==FL_Escape
) {