Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4ad9d5f0
Commit
4ad9d5f0
authored
Sep 18, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Sep 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Send WM_ENTER/EXITSIZEMOVE messages at start/end of a resizing operation.
parent
d55d2ec8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
0 deletions
+29
-0
cocoa_window.m
dlls/winemac.drv/cocoa_window.m
+7
-0
event.c
dlls/winemac.drv/event.c
+4
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-0
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+1
-0
window.c
dlls/winemac.drv/window.c
+16
-0
No files found.
dlls/winemac.drv/cocoa_window.m
View file @
4ad9d5f0
...
@@ -1476,6 +1476,13 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
...
@@ -1476,6 +1476,13 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
-
(
void
)
windowDidEndLiveResize
:
(
NSNotification
*
)
notification
-
(
void
)
windowDidEndLiveResize
:
(
NSNotification
*
)
notification
{
{
macdrv_query
*
query
=
macdrv_create_query
();
query
->
type
=
QUERY_RESIZE_END
;
query
->
window
=
(
macdrv_window
)[
self
retain
];
[
self
.
queue
query
:
query
timeout
:
0
.
3
];
macdrv_release_query
(
query
);
self
.
liveResizeDisplayTimer
=
nil
;
self
.
liveResizeDisplayTimer
=
nil
;
}
}
...
...
dlls/winemac.drv/event.c
View file @
4ad9d5f0
...
@@ -146,6 +146,10 @@ static void macdrv_query_event(HWND hwnd, const macdrv_event *event)
...
@@ -146,6 +146,10 @@ static void macdrv_query_event(HWND hwnd, const macdrv_event *event)
TRACE
(
"QUERY_PASTEBOARD_DATA
\n
"
);
TRACE
(
"QUERY_PASTEBOARD_DATA
\n
"
);
success
=
query_pasteboard_data
(
hwnd
,
query
->
pasteboard_data
.
type
);
success
=
query_pasteboard_data
(
hwnd
,
query
->
pasteboard_data
.
type
);
break
;
break
;
case
QUERY_RESIZE_END
:
TRACE
(
"QUERY_RESIZE_END
\n
"
);
success
=
query_resize_end
(
hwnd
);
break
;
case
QUERY_RESIZE_START
:
case
QUERY_RESIZE_START
:
TRACE
(
"QUERY_RESIZE_START
\n
"
);
TRACE
(
"QUERY_RESIZE_START
\n
"
);
success
=
query_resize_start
(
hwnd
);
success
=
query_resize_start
(
hwnd
);
...
...
dlls/winemac.drv/macdrv.h
View file @
4ad9d5f0
...
@@ -161,6 +161,7 @@ extern void macdrv_app_deactivated(void) DECLSPEC_HIDDEN;
...
@@ -161,6 +161,7 @@ extern void macdrv_app_deactivated(void) DECLSPEC_HIDDEN;
extern
void
macdrv_app_quit_requested
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_app_quit_requested
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_did_minimize
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_did_minimize
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_did_unminimize
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_window_did_unminimize
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_resize_end
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_resize_start
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_resize_start
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_mouse_button
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_mouse_button
(
HWND
hwnd
,
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
4ad9d5f0
...
@@ -272,6 +272,7 @@ enum {
...
@@ -272,6 +272,7 @@ enum {
QUERY_DRAG_OPERATION
,
QUERY_DRAG_OPERATION
,
QUERY_IME_CHAR_RECT
,
QUERY_IME_CHAR_RECT
,
QUERY_PASTEBOARD_DATA
,
QUERY_PASTEBOARD_DATA
,
QUERY_RESIZE_END
,
QUERY_RESIZE_START
,
QUERY_RESIZE_START
,
NUM_QUERY_TYPES
NUM_QUERY_TYPES
};
};
...
...
dlls/winemac.drv/window.c
View file @
4ad9d5f0
...
@@ -1991,6 +1991,22 @@ fail:
...
@@ -1991,6 +1991,22 @@ fail:
BOOL
query_resize_start
(
HWND
hwnd
)
BOOL
query_resize_start
(
HWND
hwnd
)
{
{
TRACE
(
"hwnd %p
\n
"
,
hwnd
);
TRACE
(
"hwnd %p
\n
"
,
hwnd
);
sync_window_min_max_info
(
hwnd
);
sync_window_min_max_info
(
hwnd
);
SendMessageW
(
hwnd
,
WM_ENTERSIZEMOVE
,
0
,
0
);
return
TRUE
;
}
/***********************************************************************
* query_resize_end
*
* Handler for QUERY_RESIZE_END query.
*/
BOOL
query_resize_end
(
HWND
hwnd
)
{
TRACE
(
"hwnd %p
\n
"
,
hwnd
);
SendMessageW
(
hwnd
,
WM_EXITSIZEMOVE
,
0
,
0
);
return
TRUE
;
return
TRUE
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment