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
a726387a
Commit
a726387a
authored
Jul 25, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 25, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Take into account CS_NOCLOSE window class style and SC_CLOSE system
menu item state while handling WM_X11DRV_DELETE_WINDOW request.
parent
0cc138dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
event.c
dlls/x11drv/event.c
+14
-1
No files found.
dlls/x11drv/event.c
View file @
a726387a
...
...
@@ -394,7 +394,20 @@ 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_X11DRV_DELETE_WINDOW
,
0
,
0
);
if
(
IsWindowEnabled
(
hwnd
))
{
HMENU
hSysMenu
;
if
(
GetClassLongW
(
hwnd
,
GCL_STYLE
)
&
CS_NOCLOSE
)
return
;
hSysMenu
=
GetSystemMenu
(
hwnd
,
FALSE
);
if
(
hSysMenu
)
{
UINT
state
=
GetMenuState
(
hSysMenu
,
SC_CLOSE
,
MF_BYCOMMAND
);
if
(
state
==
0xFFFFFFFF
||
(
state
&
(
MF_DISABLED
|
MF_GRAYED
)))
return
;
}
PostMessageW
(
hwnd
,
WM_X11DRV_DELETE_WINDOW
,
0
,
0
);
}
}
else
if
(
protocol
==
x11drv_atom
(
WM_TAKE_FOCUS
))
{
...
...
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