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
7d53e27c
Commit
7d53e27c
authored
Dec 09, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move SetTaskmanWindow implementation from user32.
parent
592abf33
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
9 deletions
+27
-9
focus.c
dlls/user32/focus.c
+2
-9
input.c
dlls/win32u/input.c
+15
-0
win32u_private.h
dlls/win32u/win32u_private.h
+1
-0
window.c
dlls/win32u/window.c
+3
-0
ntuser.h
include/ntuser.h
+6
-0
No files found.
dlls/user32/focus.c
View file @
7d53e27c
...
...
@@ -97,16 +97,9 @@ HWND WINAPI GetProgmanWindow(void)
* hwnd = MSTaskSwWClass
* |-> SysTabControl32
*/
HWND
WINAPI
SetTaskmanWindow
(
HWND
hwnd
)
HWND
WINAPI
SetTaskmanWindow
(
HWND
hwnd
)
{
SERVER_START_REQ
(
set_global_windows
)
{
req
->
flags
=
SET_GLOBAL_TASKMAN_WINDOW
;
req
->
taskman_window
=
wine_server_user_handle
(
hwnd
);
if
(
wine_server_call_err
(
req
))
hwnd
=
0
;
}
SERVER_END_REQ
;
return
hwnd
;
return
NtUserSetTaskmanWindow
(
hwnd
);
}
/***********************************************************************
...
...
dlls/win32u/input.c
View file @
7d53e27c
...
...
@@ -2233,3 +2233,18 @@ HWND set_progman_window( HWND hwnd )
SERVER_END_REQ
;
return
hwnd
;
}
HWND
set_taskman_window
(
HWND
hwnd
)
{
/* hwnd = MSTaskSwWClass
* |-> SysTabControl32
*/
SERVER_START_REQ
(
set_global_windows
)
{
req
->
flags
=
SET_GLOBAL_TASKMAN_WINDOW
;
req
->
taskman_window
=
wine_server_user_handle
(
hwnd
);
if
(
wine_server_call_err
(
req
))
hwnd
=
0
;
}
SERVER_END_REQ
;
return
hwnd
;
}
dlls/win32u/win32u_private.h
View file @
7d53e27c
...
...
@@ -279,6 +279,7 @@ extern BOOL set_caret_blink_time( unsigned int time ) DECLSPEC_HIDDEN;
extern
BOOL
set_caret_pos
(
int
x
,
int
y
)
DECLSPEC_HIDDEN
;
extern
BOOL
set_foreground_window
(
HWND
hwnd
,
BOOL
mouse
)
DECLSPEC_HIDDEN
;
extern
HWND
set_progman_window
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
HWND
set_taskman_window
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
toggle_caret
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
update_mouse_tracking_info
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
...
...
dlls/win32u/window.c
View file @
7d53e27c
...
...
@@ -5432,6 +5432,9 @@ ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code )
case
NtUserCallHwnd_SetProgmanWindow
:
return
HandleToUlong
(
set_progman_window
(
hwnd
));
case
NtUserCallHwnd_SetTaskmanWindow
:
return
HandleToUlong
(
set_taskman_window
(
hwnd
));
/* temporary exports */
case
NtUserGetFullWindowHandle
:
return
HandleToUlong
(
get_full_window_handle
(
hwnd
));
...
...
include/ntuser.h
View file @
7d53e27c
...
...
@@ -1182,6 +1182,7 @@ enum
NtUserCallHwnd_IsWindowVisible
,
NtUserCallHwnd_SetForegroundWindow
,
NtUserCallHwnd_SetProgmanWindow
,
NtUserCallHwnd_SetTaskmanWindow
,
/* temporary exports */
NtUserGetFullWindowHandle
,
NtUserIsCurrehtProcessWindow
,
...
...
@@ -1284,6 +1285,11 @@ static inline HWND NtUserSetProgmanWindow( HWND hwnd )
return
UlongToHandle
(
NtUserCallHwnd
(
hwnd
,
NtUserCallHwnd_SetProgmanWindow
));
}
static
inline
HWND
NtUserSetTaskmanWindow
(
HWND
hwnd
)
{
return
UlongToHandle
(
NtUserCallHwnd
(
hwnd
,
NtUserCallHwnd_SetTaskmanWindow
));
}
/* NtUserCallHwndParam codes, not compatible with Windows */
enum
{
...
...
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