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
158d6caa
Commit
158d6caa
authored
Mar 30, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Rename imeData / data members and variables to himc.
parent
020b6e09
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
cocoa_window.h
dlls/winemac.drv/cocoa_window.h
+1
-1
cocoa_window.m
dlls/winemac.drv/cocoa_window.m
+7
-7
event.c
dlls/winemac.drv/event.c
+4
-4
ime.c
dlls/winemac.drv/ime.c
+2
-2
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+2
-2
unixlib.h
dlls/winemac.drv/unixlib.h
+2
-2
No files found.
dlls/winemac.drv/cocoa_window.h
View file @
158d6caa
...
...
@@ -65,7 +65,7 @@
NSRect
frameAtResizeStart
;
BOOL
resizingFromLeft
,
resizingFromTop
;
void
*
imeData
;
void
*
himc
;
BOOL
commandDone
;
NSSize
savedContentMinSize
;
...
...
dlls/winemac.drv/cocoa_window.m
View file @
158d6caa
...
...
@@ -403,7 +403,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
@property
(
nonatomic
)
CGFloat
colorKeyRed
,
colorKeyGreen
,
colorKeyBlue
;
@property
(
nonatomic
)
BOOL
usePerPixelAlpha
;
@property
(
assign
,
nonatomic
)
void
*
imeData
;
@property
(
assign
,
nonatomic
)
void
*
himc
;
@property
(
nonatomic
)
BOOL
commandDone
;
@property
(
readonly
,
copy
,
nonatomic
)
NSArray
*
childWineWindows
;
...
...
@@ -714,7 +714,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
WineWindow
*
window
=
(
WineWindow
*
)[
self
window
];
event
=
macdrv_create_event
(
IM_SET_TEXT
,
window
);
event
->
im_set_text
.
data
=
[
window
imeData
];
event
->
im_set_text
.
himc
=
[
window
himc
];
event
->
im_set_text
.
text
=
(
CFStringRef
)[
text
copy
];
event
->
im_set_text
.
complete
=
TRUE
;
...
...
@@ -797,7 +797,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
markedTextSelection
.
location
+=
replacementRange
.
location
;
event
=
macdrv_create_event
(
IM_SET_TEXT
,
window
);
event
->
im_set_text
.
data
=
[
window
imeData
];
event
->
im_set_text
.
himc
=
[
window
himc
];
event
->
im_set_text
.
text
=
(
CFStringRef
)[[
markedText
string
]
copy
];
event
->
im_set_text
.
complete
=
FALSE
;
event
->
im_set_text
.
cursor_pos
=
markedTextSelection
.
location
+
markedTextSelection
.
length
;
...
...
@@ -860,7 +860,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
query
=
macdrv_create_query
();
query
->
type
=
QUERY_IME_CHAR_RECT
;
query
->
window
=
(
macdrv_window
)[
window
retain
];
query
->
ime_char_rect
.
data
=
[
window
imeData
];
query
->
ime_char_rect
.
himc
=
[
window
himc
];
query
->
ime_char_rect
.
range
=
CFRangeMake
(
aRange
.
location
,
aRange
.
length
);
if
([
window
.
queue
query
:
query
timeout
:
0
.
3
flags
:
WineQueryNoPreemptWait
])
...
...
@@ -947,7 +947,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
@synthesize
shapeChangedSinceLastDraw
;
@synthesize
colorKeyed
,
colorKeyRed
,
colorKeyGreen
,
colorKeyBlue
;
@synthesize
usePerPixelAlpha
;
@synthesize
imeData
,
commandDone
;
@synthesize
himc
,
commandDone
;
+
(
WineWindow
*
)
createWindowWithFeatures
:(
const
struct
macdrv_window_features
*
)
wf
windowFrame
:(
NSRect
)
window_frame
...
...
@@ -3903,7 +3903,7 @@ uint32_t macdrv_window_background_color(void)
/***********************************************************************
* macdrv_send_text_input_event
*/
void
macdrv_send_text_input_event
(
int
pressed
,
unsigned
int
flags
,
int
repeat
,
int
keyc
,
void
*
data
,
int
*
done
)
void
macdrv_send_text_input_event
(
int
pressed
,
unsigned
int
flags
,
int
repeat
,
int
keyc
,
void
*
himc
,
int
*
done
)
{
OnMainThreadAsync
(
^
{
BOOL
ret
;
...
...
@@ -3922,7 +3922,7 @@ void macdrv_send_text_input_event(int pressed, unsigned int flags, int repeat, i
CGEventRef
c
;
NSEvent
*
event
;
window
.
imeData
=
data
;
window
.
himc
=
himc
;
fix_device_modifiers_by_generic
(
&
localFlags
);
// An NSEvent created with +keyEventWithType:... is internally marked
...
...
dlls/winemac.drv/event.c
View file @
158d6caa
...
...
@@ -154,7 +154,7 @@ static void macdrv_im_set_text(const macdrv_event *event)
struct
ime_set_text_params
*
params
;
CFIndex
length
=
0
,
size
;
TRACE_
(
imm
)(
"win %p/%p himc %p text %s complete %u
\n
"
,
hwnd
,
event
->
window
,
event
->
im_set_text
.
data
,
TRACE_
(
imm
)(
"win %p/%p himc %p text %s complete %u
\n
"
,
hwnd
,
event
->
window
,
event
->
im_set_text
.
himc
,
debugstr_cf
(
event
->
im_set_text
.
text
),
event
->
im_set_text
.
complete
);
if
(
event
->
im_set_text
.
text
)
...
...
@@ -163,7 +163,7 @@ static void macdrv_im_set_text(const macdrv_event *event)
size
=
offsetof
(
struct
ime_set_text_params
,
text
[
length
]);
if
(
!
(
params
=
malloc
(
size
)))
return
;
params
->
hwnd
=
HandleToUlong
(
hwnd
);
params
->
data
=
(
UINT_PTR
)
event
->
im_set_text
.
data
;
params
->
himc
=
(
UINT_PTR
)
event
->
im_set_text
.
himc
;
params
->
cursor_pos
=
event
->
im_set_text
.
cursor_pos
;
params
->
complete
=
event
->
im_set_text
.
complete
;
...
...
@@ -287,7 +287,7 @@ static BOOL query_drag_operation(macdrv_query *query)
BOOL
query_ime_char_rect
(
macdrv_query
*
query
)
{
HWND
hwnd
=
macdrv_get_window_hwnd
(
query
->
window
);
void
*
himc
=
query
->
ime_char_rect
.
data
;
void
*
himc
=
query
->
ime_char_rect
.
himc
;
CFRange
*
range
=
&
query
->
ime_char_rect
.
range
;
CGRect
*
rect
=
&
query
->
ime_char_rect
.
rect
;
struct
ime_query_char_rect_result
result
=
{
.
location
=
0
};
...
...
@@ -298,7 +298,7 @@ BOOL query_ime_char_rect(macdrv_query* query)
range
->
length
);
params
.
hwnd
=
HandleToUlong
(
hwnd
);
params
.
data
=
(
UINT_PTR
)
himc
;
params
.
himc
=
(
UINT_PTR
)
himc
;
params
.
result
=
(
UINT_PTR
)
&
result
;
params
.
location
=
range
->
location
;
params
.
length
=
range
->
length
;
...
...
dlls/winemac.drv/ime.c
View file @
158d6caa
...
...
@@ -1321,7 +1321,7 @@ NTSTATUS WINAPI macdrv_ime_set_text(void *arg, ULONG size)
{
struct
ime_set_text_params
*
params
=
arg
;
ULONG
length
=
(
size
-
offsetof
(
struct
ime_set_text_params
,
text
))
/
sizeof
(
WCHAR
);
void
*
himc
=
param_ptr
(
params
->
data
);
void
*
himc
=
param_ptr
(
params
->
himc
);
HWND
hwnd
=
UlongToHandle
(
params
->
hwnd
);
if
(
!
himc
)
himc
=
RealIMC
(
FROM_MACDRV
);
...
...
@@ -1365,7 +1365,7 @@ NTSTATUS WINAPI macdrv_ime_query_char_rect(void *arg, ULONG size)
{
struct
ime_query_char_rect_params
*
params
=
arg
;
struct
ime_query_char_rect_result
*
result
=
param_ptr
(
params
->
result
);
void
*
himc
=
param_ptr
(
params
->
data
);
void
*
himc
=
param_ptr
(
params
->
himc
);
IMECHARPOSITION
charpos
;
BOOL
ret
=
FALSE
;
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
158d6caa
...
...
@@ -378,7 +378,7 @@ typedef struct macdrv_event {
unsigned
long
time_ms
;
}
hotkey_press
;
struct
{
void
*
data
;
void
*
himc
;
CFStringRef
text
;
/* new text or NULL if just completing existing text */
unsigned
int
cursor_pos
;
unsigned
int
complete
;
/* is completing text? */
...
...
@@ -487,7 +487,7 @@ typedef struct macdrv_query {
CFTypeRef
pasteboard
;
}
drag_operation
;
struct
{
void
*
data
;
void
*
himc
;
CFRange
range
;
CGRect
rect
;
}
ime_char_rect
;
...
...
dlls/winemac.drv/unixlib.h
View file @
158d6caa
...
...
@@ -177,7 +177,7 @@ struct ime_query_char_rect_params
{
UINT32
hwnd
;
UINT32
location
;
UINT64
data
;
UINT64
himc
;
UINT64
result
;
/* FIXME: Use NtCallbackReturn instead */
UINT32
length
;
};
...
...
@@ -187,7 +187,7 @@ struct ime_set_text_params
{
UINT32
hwnd
;
UINT32
cursor_pos
;
UINT64
data
;
UINT64
himc
;
UINT32
complete
;
WCHAR
text
[
1
];
};
...
...
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