From a9412b41bb7f1012402400e56d8dd71f93709f6f Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 21 Mar 2022 11:41:40 +0100 Subject: Issue #359 RFE: access the MacOS windowid . --- src/Fl_Window.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Fl_Window.cxx') diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 50f39f04e..e6f14141b 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -876,3 +876,10 @@ const Fl_Image* Fl_Window::shape() {return pWindowDriver->shape();} /** Returns true when a window is being rescaled */ bool Fl_Window::is_a_rescale() {return Fl_Window_Driver::is_a_rescale_;} + +/** Returns a platform-specific identification of a shown window, or 0 if not shown. + \li X11 platform: the window's XID. + \li macOS platform: The window number of the window’s window device. + \li other platforms: 0. + */ +fl_uintptr_t Fl_Window::os_id() { return pWindowDriver->os_id();} -- cgit v1.2.3