fix windows

This commit is contained in:
Lucas Nogueira
2024-02-06 08:28:54 -03:00
parent 4ea6666769
commit ae8efc4818
2 changed files with 23 additions and 4 deletions

View File

@@ -44,7 +44,10 @@ enum HitTestResult {
#[cfg(windows)]
mod windows {
use super::HitTestResult;
use super::{
HitTestResult, BORDERLESS_RESIZE_INSET, BOTTOM, BOTTOMLEFT, BOTTOMRIGHT, CLIENT, LEFT, RIGHT,
TOP, TOPLEFT, TOPRIGHT,
};
use tao::{
dpi::PhysicalSize,
@@ -130,9 +133,9 @@ mod windows {
}
// Returns whether handled or not
pub fn handle_request<T: super::UserEvent>(
context: super::Context<T>,
window_id: super::WindowId,
pub fn handle_request<T: crate::UserEvent>(
context: crate::Context<T>,
window_id: crate::WindowId,
request: &str,
) -> bool {
if let Some(args) = request.strip_prefix(MESSAGE_MOUSEMOVE) {

View File

@@ -72,6 +72,22 @@ Enables the inner_size command without any pre-configured scope.
Denies the inner_size command without any pre-configured scope.
## allow-internal-on-mousedown
Enables the internal_on_mousedown command without any pre-configured scope.
## deny-internal-on-mousedown
Denies the internal_on_mousedown command without any pre-configured scope.
## allow-internal-on-mousemove
Enables the internal_on_mousemove command without any pre-configured scope.
## deny-internal-on-mousemove
Denies the internal_on_mousemove command without any pre-configured scope.
## allow-internal-toggle-maximize
Enables the internal_toggle_maximize command without any pre-configured scope.