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
a0d03ef1
Commit
a0d03ef1
authored
Apr 18, 1999
by
Noel Borthwick
Committed by
Alexandre Julliard
Apr 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
While handling the WM_DELETEWINDOW client message check if a window
has been disabled and if so prevent an SC_CLOSE message from being sent.
parent
b0ebeeb0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
event.c
windows/x11drv/event.c
+10
-0
No files found.
windows/x11drv/event.c
View file @
a0d03ef1
...
...
@@ -1457,7 +1457,17 @@ static void EVENT_ClientMessage( HWND hWnd, XClientMessageEvent *event )
if
(
event
->
message_type
!=
None
&&
event
->
format
==
32
)
{
if
((
event
->
message_type
==
wmProtocols
)
&&
(((
Atom
)
event
->
data
.
l
[
0
])
==
wmDeleteWindow
))
{
/* Ignore the delete window request if the window has been disabled
* and we are in managed mode. This is to disallow applications from
* being closed by the window manager while in a modal state.
*/
BOOL
bIsDisabled
;
bIsDisabled
=
GetWindowLongA
(
hWnd
,
GWL_STYLE
)
&
WS_DISABLED
;
if
(
!
Options
.
managed
||
!
bIsDisabled
)
SendMessage16
(
hWnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
0
);
}
else
if
(
event
->
message_type
==
dndProtocol
&&
(
event
->
data
.
l
[
0
]
==
DndFile
||
event
->
data
.
l
[
0
]
==
DndFiles
)
)
EVENT_DropFromOffiX
(
hWnd
,
event
);
...
...
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