diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-06 10:18:13 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-06 10:18:29 +0100 |
| commit | 8bf62c67cfb8349064e2d2104ce9049a233fd914 (patch) | |
| tree | 0f5a13c9d0292cce0b5111a66277fe070844fa22 /src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | |
| parent | 915429194022a5e2823f0d9ce57c06e03a753363 (diff) | |
macOS platform: compute the screen number where a top window is mapped.
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H index 6f0f11d3f..4bc7d3783 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H @@ -85,6 +85,7 @@ private: // stores 3 binary flags: whether window is mapped to retina display; whether resolution just changed; // whether window's view received the [FLView view_did_resize] message unsigned window_flags_; + int screen_num_; // number of screen where window is mapped public: Fl_Cocoa_Window_Driver(Fl_Window*); ~Fl_Cocoa_Window_Driver(); @@ -133,6 +134,8 @@ public: virtual void size_range(); virtual void iconize(); virtual void decoration_sizes(int *top, int *left, int *right, int *bottom); + virtual int screen_num(); + virtual void screen_num(int n); // --- window cursor stuff virtual int set_cursor(Fl_Cursor); virtual int set_cursor(const Fl_RGB_Image*, int, int); |
