1999-02-03 11:43:35 +03:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// "$Id$"
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|
|
|
|
// Grab/release code for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
2018-02-09 17:39:42 +03:00
|
|
|
// Copyright 1998-2018 by Bill Spitzak and others.
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// This library is free software. Distribution and use rights are outlined in
|
|
|
|
// the file "COPYING" which should have been included with this file. If this
|
|
|
|
// file is missing or damaged, see the license at:
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|
2011-07-19 08:49:30 +04:00
|
|
|
// http://www.fltk.org/COPYING.php
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|
2005-04-16 04:13:17 +04:00
|
|
|
// Please report all bugs and problems on the following page:
|
|
|
|
//
|
|
|
|
// http://www.fltk.org/str.php
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|
|
|
|
|
|
|
|
#include <FL/Fl.H>
|
2016-02-13 19:12:57 +03:00
|
|
|
#include <FL/Fl_Screen_Driver.H>
|
1999-02-03 11:43:35 +03:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////
|
|
|
|
// "Grab" is done while menu systems are up. This has several effects:
|
|
|
|
// Events are all sent to the "grab window", which does not even
|
2001-11-22 18:35:02 +03:00
|
|
|
// have to be displayed (and in the case of Fl_Menu.cxx it isn't).
|
1999-02-03 11:43:35 +03:00
|
|
|
// The system is also told to "grab" events and send them to this app.
|
|
|
|
// This also modifies how Fl_Window::show() works, on X it turns on
|
2018-02-09 17:39:42 +03:00
|
|
|
// override_redirect, it does similar things on Windows.
|
1999-02-03 11:43:35 +03:00
|
|
|
|
2016-02-13 19:12:57 +03:00
|
|
|
void Fl::grab(Fl_Window *win)
|
|
|
|
{
|
|
|
|
screen_driver()->grab(win);
|
1999-02-03 11:43:35 +03:00
|
|
|
}
|
|
|
|
|
2016-02-13 19:12:57 +03:00
|
|
|
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|
2005-02-25 00:55:12 +03:00
|
|
|
// End of "$Id$".
|
1999-02-03 11:43:35 +03:00
|
|
|
//
|