Disable AppKit's native resize handling for client-side decorated macOS windows so AppKit does not show a resize cursor for points it will not deliver to Ladybird. Reapply this after Qt creates the native surface, since Qt may restore the resizable style mask during Cocoa window setup. Handle the resize gesture in BrowserWindow instead, with thin side edges and a slightly larger corner target that avoids the rounded corner cutouts.
32 lines
765 B
C++
32 lines
765 B
C++
/*
|
|
* Copyright (c) 2026-present, the Ladybird developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Platform.h>
|
|
|
|
class QWidget;
|
|
class QColor;
|
|
namespace Gfx {
|
|
|
|
class Color;
|
|
|
|
}
|
|
|
|
namespace Ladybird {
|
|
|
|
#if defined(AK_OS_MACOS)
|
|
void set_rounded_window_corners(QWidget&, bool enabled, double radius, QColor const& background_color);
|
|
void set_appkit_window_resizable(QWidget&, bool enabled);
|
|
void install_always_active_window_control_hover_tracking(QWidget&, void (*hover_changed)(QWidget*));
|
|
void install_appkit_event_capture();
|
|
void make_appkit_window_first_responder(QWidget&);
|
|
bool start_appkit_window_drag(QWidget&);
|
|
Gfx::Color appkit_web_inactive_selection_color();
|
|
Gfx::Color appkit_web_inactive_selection_text_color();
|
|
#endif
|
|
|
|
}
|