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
2164815a
Commit
2164815a
authored
May 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Prefer SendMessageW over SendMessageA where possible.
parent
964cbcbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
event.c
dlls/x11drv/event.c
+1
-1
winpos.c
dlls/x11drv/winpos.c
+8
-8
No files found.
dlls/x11drv/event.c
View file @
2164815a
...
...
@@ -535,7 +535,7 @@ static void EVENT_FocusOut( HWND hwnd, XEvent *xev )
wine_tsx11_unlock
();
}
if
(
hwnd
!=
GetForegroundWindow
())
return
;
SendMessage
A
(
hwnd
,
WM_CANCELMODE
,
0
,
0
);
SendMessage
W
(
hwnd
,
WM_CANCELMODE
,
0
,
0
);
/* don't reset the foreground window, if the window which is
getting the focus is a Wine window */
...
...
dlls/x11drv/winpos.c
View file @
2164815a
...
...
@@ -743,7 +743,7 @@ BOOL X11DRV_SetWindowPos( WINDOWPOS *winpos )
{
/* child windows get WM_CHILDACTIVATE message */
if
((
GetWindowLongW
(
winpos
->
hwnd
,
GWL_STYLE
)
&
(
WS_CHILD
|
WS_POPUP
))
==
WS_CHILD
)
SendMessage
A
(
winpos
->
hwnd
,
WM_CHILDACTIVATE
,
0
,
0
);
SendMessage
W
(
winpos
->
hwnd
,
WM_CHILDACTIVATE
,
0
,
0
);
else
SetForegroundWindow
(
winpos
->
hwnd
);
}
...
...
@@ -1102,7 +1102,7 @@ void X11DRV_MapNotify( HWND hwnd, XEvent *event )
WIN_SetStyle
(
hwnd
,
style
,
WS_MINIMIZE
);
WIN_ReleasePtr
(
win
);
SendMessage
A
(
hwnd
,
WM_SHOWWINDOW
,
SW_RESTORE
,
0
);
SendMessage
W
(
hwnd
,
WM_SHOWWINDOW
,
SW_RESTORE
,
0
);
data
->
lock_changes
++
;
SetWindowPos
(
hwnd
,
0
,
rect
.
left
,
rect
.
top
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
SWP_NOZORDER
);
...
...
@@ -1137,7 +1137,7 @@ void X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
WIN_ReleasePtr
(
win
);
EndMenu
();
SendMessage
A
(
hwnd
,
WM_SHOWWINDOW
,
SW_MINIMIZE
,
0
);
SendMessage
W
(
hwnd
,
WM_SHOWWINDOW
,
SW_MINIMIZE
,
0
);
data
->
lock_changes
++
;
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
GetSystemMetrics
(
SM_CXICON
),
GetSystemMetrics
(
SM_CYICON
),
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
);
...
...
@@ -1602,7 +1602,7 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
/* repaint the window before moving it around */
RedrawWindow
(
hwnd
,
NULL
,
0
,
RDW_UPDATENOW
|
RDW_ALLCHILDREN
);
SendMessage
A
(
hwnd
,
WM_ENTERSIZEMOVE
,
0
,
0
);
SendMessage
W
(
hwnd
,
WM_ENTERSIZEMOVE
,
0
,
0
);
set_movesize_capture
(
hwnd
);
/* grab the server only when moving top-level windows without desktop */
...
...
@@ -1695,7 +1695,7 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
/* determine the hit location */
if
(
hittest
>=
HTLEFT
&&
hittest
<=
HTBOTTOMRIGHT
)
wpSizingHit
=
WMSZ_LEFT
+
(
hittest
-
HTLEFT
);
SendMessage
A
(
hwnd
,
WM_SIZING
,
wpSizingHit
,
(
LPARAM
)
&
newRect
);
SendMessage
W
(
hwnd
,
WM_SIZING
,
wpSizingHit
,
(
LPARAM
)
&
newRect
);
if
(
!
iconic
)
{
...
...
@@ -1741,8 +1741,8 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if
(
HOOK_CallHooks
(
WH_CBT
,
HCBT_MOVESIZE
,
(
WPARAM
)
hwnd
,
(
LPARAM
)
&
sizingRect
,
TRUE
))
moved
=
FALSE
;
SendMessage
A
(
hwnd
,
WM_EXITSIZEMOVE
,
0
,
0
);
SendMessage
A
(
hwnd
,
WM_SETVISIBLE
,
!
IsIconic
(
hwnd
),
0L
);
SendMessage
W
(
hwnd
,
WM_EXITSIZEMOVE
,
0
,
0
);
SendMessage
W
(
hwnd
,
WM_SETVISIBLE
,
!
IsIconic
(
hwnd
),
0L
);
/* window moved or resized */
if
(
moved
)
...
...
@@ -1776,7 +1776,7 @@ void X11DRV_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if
(
!
moved
)
{
if
(
style
&
WS_SYSMENU
)
SendMessage
A
(
hwnd
,
WM_SYSCOMMAND
,
SendMessage
W
(
hwnd
,
WM_SYSCOMMAND
,
SC_MOUSEMENU
+
HTSYSMENU
,
MAKELONG
(
pt
.
x
,
pt
.
y
));
}
else
WINPOS_ShowIconTitle
(
hwnd
,
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