[macOS] Use native window drag for the custom editor title bars.

This commit is contained in:
Pāvels Nadtočajevs 2024-11-24 19:27:08 +02:00
parent d741a646a5
commit b248d66265
6 changed files with 36 additions and 2 deletions

View file

@ -153,6 +153,7 @@ public:
FEATURE_NATIVE_DIALOG_INPUT,
FEATURE_NATIVE_DIALOG_FILE,
FEATURE_NATIVE_DIALOG_FILE_EXTRA,
FEATURE_WINDOW_DRAG,
};
virtual bool has_feature(Feature p_feature) const = 0;
@ -490,6 +491,8 @@ public:
virtual bool window_maximize_on_title_dbl_click() const { return false; }
virtual bool window_minimize_on_title_dbl_click() const { return false; }
virtual void window_start_drag(WindowID p_window = MAIN_WINDOW_ID) {}
// necessary for GL focus, may be able to use one of the existing functions for this, not sure yet
virtual void gl_window_make_current(DisplayServer::WindowID p_window_id);