Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
85358b10
Commit
85358b10
authored
Mar 31, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Add a more general way of posting messages to the desktop window.
parent
437a8384
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
user.h
server/user.h
+2
-1
window.c
server/window.c
+4
-3
winstation.c
server/winstation.c
+1
-1
No files found.
server/user.h
View file @
85358b10
...
@@ -143,7 +143,8 @@ extern int rect_in_region( struct region *region, const rectangle_t *rect );
...
@@ -143,7 +143,8 @@ extern int rect_in_region( struct region *region, const rectangle_t *rect );
extern
struct
process
*
get_top_window_owner
(
struct
desktop
*
desktop
);
extern
struct
process
*
get_top_window_owner
(
struct
desktop
*
desktop
);
extern
void
get_top_window_rectangle
(
struct
desktop
*
desktop
,
rectangle_t
*
rect
);
extern
void
get_top_window_rectangle
(
struct
desktop
*
desktop
,
rectangle_t
*
rect
);
extern
void
close_desktop_window
(
struct
desktop
*
desktop
);
extern
void
post_desktop_message
(
struct
desktop
*
desktop
,
unsigned
int
message
,
lparam_t
wparam
,
lparam_t
lparam
);
extern
void
destroy_window
(
struct
window
*
win
);
extern
void
destroy_window
(
struct
window
*
win
);
extern
void
destroy_thread_windows
(
struct
thread
*
thread
);
extern
void
destroy_thread_windows
(
struct
thread
*
thread
);
extern
int
is_child_window
(
user_handle_t
parent
,
user_handle_t
child
);
extern
int
is_child_window
(
user_handle_t
parent
,
user_handle_t
child
);
...
...
server/window.c
View file @
85358b10
...
@@ -402,11 +402,12 @@ void get_top_window_rectangle( struct desktop *desktop, rectangle_t *rect )
...
@@ -402,11 +402,12 @@ void get_top_window_rectangle( struct desktop *desktop, rectangle_t *rect )
else
*
rect
=
win
->
window_rect
;
else
*
rect
=
win
->
window_rect
;
}
}
/* attempt to close the desktop window when the last process using it is gone */
/* post a message to the desktop window */
void
close_desktop_window
(
struct
desktop
*
desktop
)
void
post_desktop_message
(
struct
desktop
*
desktop
,
unsigned
int
message
,
lparam_t
wparam
,
lparam_t
lparam
)
{
{
struct
window
*
win
=
desktop
->
top_window
;
struct
window
*
win
=
desktop
->
top_window
;
if
(
win
&&
win
->
thread
)
post_message
(
win
->
handle
,
WM_CLOSE
,
0
,
0
);
if
(
win
&&
win
->
thread
)
post_message
(
win
->
handle
,
message
,
wparam
,
lparam
);
}
}
/* create a new window structure (note: the window is not linked in the window tree) */
/* create a new window structure (note: the window is not linked in the window tree) */
...
...
server/winstation.c
View file @
85358b10
...
@@ -376,7 +376,7 @@ static void close_desktop_timeout( void *private )
...
@@ -376,7 +376,7 @@ static void close_desktop_timeout( void *private )
desktop
->
close_timeout
=
NULL
;
desktop
->
close_timeout
=
NULL
;
unlink_named_object
(
&
desktop
->
obj
);
/* make sure no other process can open it */
unlink_named_object
(
&
desktop
->
obj
);
/* make sure no other process can open it */
close_desktop_window
(
desktop
);
/* and signal the owner to quit */
post_desktop_message
(
desktop
,
WM_CLOSE
,
0
,
0
);
/* and signal the owner to quit */
}
}
/* close the desktop of a given process */
/* close the desktop of a given process */
...
...
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