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
80b997a2
Commit
80b997a2
authored
Nov 14, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for the QS_ALLPOSTMESSAGE flag.
parent
0dcf2a45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
input.c
dlls/user/input.c
+6
-3
queue.c
server/queue.c
+5
-4
No files found.
dlls/user/input.c
View file @
80b997a2
...
...
@@ -236,11 +236,14 @@ DWORD WINAPI GetQueueStatus( UINT flags )
{
DWORD
ret
=
0
;
if
(
flags
&
~
0xff
)
FIXME
(
"QS_xxxx flags (%04x) are not handled
\n
"
,
flags
&
~
0xff
);
if
(
flags
&
~
(
QS_ALLINPUT
|
QS_ALLPOSTMESSAGE
|
QS_SMRESULT
))
{
SetLastError
(
ERROR_INVALID_FLAGS
);
return
0
;
}
/* check for pending X events */
USER_Driver
->
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_ALLINPUT
,
0
);
USER_Driver
->
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
flags
,
0
);
SERVER_START_REQ
(
get_queue_status
)
{
...
...
server/queue.c
View file @
80b997a2
...
...
@@ -471,7 +471,7 @@ static void remove_queue_message( struct msg_queue *queue, struct message *msg,
if
(
list_empty
(
&
queue
->
msg_list
[
kind
]
))
clear_queue_bits
(
queue
,
QS_SENDMESSAGE
);
break
;
case
POST_MESSAGE
:
if
(
list_empty
(
&
queue
->
msg_list
[
kind
]
))
clear_queue_bits
(
queue
,
QS_POSTMESSAGE
);
if
(
list_empty
(
&
queue
->
msg_list
[
kind
]
))
clear_queue_bits
(
queue
,
QS_POSTMESSAGE
|
QS_ALLPOSTMESSAGE
);
break
;
}
free_message
(
msg
);
...
...
@@ -1420,7 +1420,7 @@ void post_message( user_handle_t win, unsigned int message,
msg
->
data_size
=
0
;
list_add_tail
(
&
thread
->
queue
->
msg_list
[
POST_MESSAGE
],
&
msg
->
entry
);
set_queue_bits
(
thread
->
queue
,
QS_POSTMESSAGE
);
set_queue_bits
(
thread
->
queue
,
QS_POSTMESSAGE
|
QS_ALLPOSTMESSAGE
);
}
release_object
(
thread
);
}
...
...
@@ -1592,7 +1592,7 @@ DECL_HANDLER(send_message)
break
;
}
list_add_tail
(
&
recv_queue
->
msg_list
[
POST_MESSAGE
],
&
msg
->
entry
);
set_queue_bits
(
recv_queue
,
QS_POSTMESSAGE
);
set_queue_bits
(
recv_queue
,
QS_POSTMESSAGE
|
QS_ALLPOSTMESSAGE
);
break
;
case
MSG_HARDWARE
:
queue_hardware_message
(
recv_queue
,
msg
);
...
...
@@ -1631,7 +1631,8 @@ DECL_HANDLER(get_message)
if
(
req
->
flags
&
GET_MSG_SENT_ONLY
)
goto
done
;
/* nothing else to check */
/* clear changed bits so we can wait on them if we don't find a message */
queue
->
changed_bits
=
0
;
if
(
req
->
get_first
==
0
&&
req
->
get_last
==
~
0U
)
queue
->
changed_bits
=
0
;
else
queue
->
changed_bits
&=
QS_ALLPOSTMESSAGE
;
/* then check for posted messages */
if
(
get_posted_message
(
queue
,
get_win
,
req
->
get_first
,
req
->
get_last
,
req
->
flags
,
reply
))
...
...
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