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
8382bf01
Commit
8382bf01
authored
Mar 09, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added WM_X11DRV_DELETE_WINDOW message to handle close requests so that
we can send the WM_SYSCOMMAND with SendMessage instead of PostMessage. Added missing NONAMELESSUNION define.
parent
f7e0f7ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
event.c
dlls/x11drv/event.c
+6
-3
x11drv.h
dlls/x11drv/x11drv.h
+2
-1
No files found.
dlls/x11drv/event.c
View file @
8382bf01
...
...
@@ -34,7 +34,9 @@
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#include "wine/winuser16.h"
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
...
...
@@ -48,7 +50,6 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
event
);
WINE_DECLARE_DEBUG_CHANNEL
(
clipboard
);
extern
BOOL
ximInComposeMode
;
...
...
@@ -393,7 +394,7 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
* and we are in managed mode. This is to disallow applications from
* being closed by the window manager while in a modal state.
*/
if
(
IsWindowEnabled
(
hwnd
))
PostMessageW
(
hwnd
,
WM_
SYSCOMMAND
,
SC_CLOSE
,
0
);
if
(
IsWindowEnabled
(
hwnd
))
PostMessageW
(
hwnd
,
WM_
X11DRV_DELETE_WINDOW
,
0
,
0
);
}
else
if
(
protocol
==
x11drv_atom
(
WM_TAKE_FOCUS
))
{
...
...
@@ -946,6 +947,8 @@ LRESULT X11DRV_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
case
WM_X11DRV_ACQUIRE_SELECTION
:
X11DRV_AcquireClipboard
(
hwnd
);
return
0
;
case
WM_X11DRV_DELETE_WINDOW
:
return
SendMessageW
(
hwnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
0
);
default:
FIXME
(
"got window msg %x hwnd %p wp %x lp %lx
\n
"
,
msg
,
hwnd
,
wp
,
lp
);
return
0
;
...
...
dlls/x11drv/x11drv.h
View file @
8382bf01
...
...
@@ -619,7 +619,8 @@ extern DWORD EVENT_x11_time_to_win32_time(Time time);
/* X11 driver private messages, must be in the range 0x80001000..0x80001fff */
enum
x11drv_window_messages
{
WM_X11DRV_ACQUIRE_SELECTION
=
0x80001000
WM_X11DRV_ACQUIRE_SELECTION
=
0x80001000
,
WM_X11DRV_DELETE_WINDOW
};
/* x11drv private window data */
...
...
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