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
72565191
Commit
72565191
authored
May 04, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Move foreign_window_proc to systray.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
21d269f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
25 deletions
+26
-25
systray.c
dlls/winex11.drv/systray.c
+24
-1
window.c
dlls/winex11.drv/window.c
+0
-23
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-1
No files found.
dlls/winex11.drv/systray.c
View file @
72565191
...
...
@@ -142,7 +142,7 @@ static void create_tooltip(struct tray_icon *icon)
}
}
void
update_systray_balloon_position
(
void
)
static
void
update_systray_balloon_position
(
void
)
{
RECT
rect
;
POINT
pos
;
...
...
@@ -783,3 +783,26 @@ int CDECL wine_notify_icon( DWORD msg, NOTIFYICONDATAW *data )
}
return
ret
;
}
/* window procedure for foreign windows */
LRESULT
WINAPI
foreign_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
switch
(
msg
)
{
case
WM_WINDOWPOSCHANGED
:
update_systray_balloon_position
();
break
;
case
WM_PARENTNOTIFY
:
if
(
LOWORD
(
wparam
)
==
WM_DESTROY
)
{
TRACE
(
"%p: got parent notify destroy for win %lx
\n
"
,
hwnd
,
lparam
);
PostMessageW
(
hwnd
,
WM_CLOSE
,
0
,
0
);
/* so that we come back here once the child is gone */
}
return
0
;
case
WM_CLOSE
:
if
(
GetWindow
(
hwnd
,
GW_CHILD
))
return
0
;
/* refuse to die if we still have children */
break
;
}
return
DefWindowProcW
(
hwnd
,
msg
,
wparam
,
lparam
);
}
dlls/winex11.drv/window.c
View file @
72565191
...
...
@@ -1987,29 +1987,6 @@ static struct x11drv_win_data *X11DRV_create_win_data( HWND hwnd, const RECT *wi
}
/* window procedure for foreign windows */
static
LRESULT
WINAPI
foreign_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
switch
(
msg
)
{
case
WM_WINDOWPOSCHANGED
:
update_systray_balloon_position
();
break
;
case
WM_PARENTNOTIFY
:
if
(
LOWORD
(
wparam
)
==
WM_DESTROY
)
{
TRACE
(
"%p: got parent notify destroy for win %lx
\n
"
,
hwnd
,
lparam
);
NtUserPostMessage
(
hwnd
,
WM_CLOSE
,
0
,
0
);
/* so that we come back here once the child is gone */
}
return
0
;
case
WM_CLOSE
:
if
(
NtUserGetWindowRelative
(
hwnd
,
GW_CHILD
))
return
0
;
/* refuse to die if we still have children */
break
;
}
return
DefWindowProcW
(
hwnd
,
msg
,
wparam
,
lparam
);
}
/***********************************************************************
* create_foreign_window
*
...
...
dlls/winex11.drv/x11drv.h
View file @
72565191
...
...
@@ -642,7 +642,6 @@ extern Window create_dummy_client_window(void) DECLSPEC_HIDDEN;
extern
Window
create_client_window
(
HWND
hwnd
,
const
XVisualInfo
*
visual
)
DECLSPEC_HIDDEN
;
extern
void
set_window_visual
(
struct
x11drv_win_data
*
data
,
const
XVisualInfo
*
vis
,
BOOL
use_alpha
)
DECLSPEC_HIDDEN
;
extern
void
change_systray_owner
(
Display
*
display
,
Window
systray_window
)
DECLSPEC_HIDDEN
;
extern
void
update_systray_balloon_position
(
void
)
DECLSPEC_HIDDEN
;
extern
HWND
create_foreign_window
(
Display
*
display
,
Window
window
)
DECLSPEC_HIDDEN
;
extern
BOOL
update_clipboard
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
init_win_context
(
void
)
DECLSPEC_HIDDEN
;
...
...
@@ -853,6 +852,8 @@ extern NTSTATUS x11drv_ime_set_cursor_pos( UINT pos ) DECLSPEC_HIDDEN;
extern
NTSTATUS
x11drv_ime_set_open_status
(
UINT
open
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
x11drv_ime_update_association
(
UINT
arg
)
DECLSPEC_HIDDEN
;
extern
LRESULT
WINAPI
foreign_window_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
x11drv_client_func
(
enum
x11drv_client_funcs
func
,
const
void
*
params
,
ULONG
size
)
DECLSPEC_HIDDEN
;
...
...
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