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
ecf579b8
Commit
ecf579b8
authored
Sep 17, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Ignore the initial WM_STATE transition out of withdrawn state.
parent
3cb23d34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
event.c
dlls/winex11.drv/event.c
+7
-2
No files found.
dlls/winex11.drv/event.c
View file @
ecf579b8
...
@@ -911,16 +911,21 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent
...
@@ -911,16 +911,21 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent
switch
(
event
->
state
)
switch
(
event
->
state
)
{
{
case
PropertyDelete
:
case
PropertyDelete
:
TRACE
(
"%p/%lx: WM_STATE deleted from %d
\n
"
,
data
->
hwnd
,
data
->
whole_window
,
data
->
wm_state
);
data
->
wm_state
=
WithdrawnState
;
data
->
wm_state
=
WithdrawnState
;
TRACE
(
"%p/%lx: WM_STATE deleted
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
break
;
break
;
case
PropertyNewValue
:
case
PropertyNewValue
:
{
{
int
old_state
=
data
->
wm_state
;
int
new_state
=
get_window_wm_state
(
event
->
display
,
data
);
int
new_state
=
get_window_wm_state
(
event
->
display
,
data
);
if
(
new_state
!=
-
1
&&
new_state
!=
data
->
wm_state
)
if
(
new_state
!=
-
1
&&
new_state
!=
data
->
wm_state
)
{
{
TRACE
(
"%p/%lx: new WM_STATE %d
\n
"
,
data
->
hwnd
,
data
->
whole_window
,
new_state
);
TRACE
(
"%p/%lx: new WM_STATE %d from %d
\n
"
,
data
->
hwnd
,
data
->
whole_window
,
new_state
,
old_state
);
data
->
wm_state
=
new_state
;
data
->
wm_state
=
new_state
;
/* ignore the initial state transition out of withdrawn state */
/* metacity does Withdrawn->NormalState->IconicState when mapping an iconic window */
if
(
!
old_state
)
return
;
}
}
}
}
break
;
break
;
...
...
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