GDK/Win32: Rename "window" for event handling code

We want to make the distinction between GdkSurface's and native Windows
HWNDs clearer.
This commit is contained in:
Chun-wei Fan
2024-08-19 19:20:06 +08:00
parent 1e0ab6f249
commit df51d474fc
4 changed files with 351 additions and 346 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -36,7 +36,7 @@ HKL _gdk_input_locale;
gboolean _gdk_input_locale_is_ime = FALSE;
GdkWin32ModalOpKind _modal_operation_in_progress = GDK_WIN32_MODAL_OP_NONE;
HWND _modal_move_resize_window = NULL;
HWND _modal_move_resize_hwnd = NULL;
/* The singleton clipdrop object pointer */
GdkWin32Clipdrop *_win32_clipdrop = NULL;

View File

@@ -168,7 +168,7 @@ typedef enum {
/* Non-zero while a modal sizing, moving, or dnd operation is in progress */
extern GdkWin32ModalOpKind _modal_operation_in_progress;
extern HWND _modal_move_resize_window;
extern HWND _modal_move_resize_hwnd;
void _gdk_win32_begin_modal_call (GdkWin32ModalOpKind kind);
void _gdk_win32_end_modal_call (GdkWin32ModalOpKind kind);

View File

@@ -989,7 +989,7 @@ gdk_win32_surface_move_resize_internal (GdkSurface *surface,
{
/* We ignore changes to the surface being moved or resized by the
user, as we don't want to fight the user */
if (GDK_SURFACE_HWND (surface) == _modal_move_resize_window)
if (GDK_SURFACE_HWND (surface) == _modal_move_resize_hwnd)
goto out;
if (with_move && (width < 0 && height < 0))