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
86675edf
Commit
86675edf
authored
Apr 02, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Replace the lock_changes flag by a check on the event currently being processed.
parent
a442d3b4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
event.c
dlls/winex11.drv/event.c
+0
-4
winpos.c
dlls/winex11.drv/winpos.c
+16
-4
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-1
No files found.
dlls/winex11.drv/event.c
View file @
86675edf
...
@@ -743,17 +743,13 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent
...
@@ -743,17 +743,13 @@ static void handle_wm_state_notify( struct x11drv_win_data *data, XPropertyEvent
TRACE
(
"restoring win %p/%lx
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
TRACE
(
"restoring win %p/%lx
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
data
->
iconic
=
FALSE
;
data
->
iconic
=
FALSE
;
data
->
lock_changes
++
;
SetWindowPlacement
(
data
->
hwnd
,
&
wp
);
SetWindowPlacement
(
data
->
hwnd
,
&
wp
);
data
->
lock_changes
--
;
}
}
else
if
(
!
data
->
iconic
&&
data
->
wm_state
==
IconicState
)
else
if
(
!
data
->
iconic
&&
data
->
wm_state
==
IconicState
)
{
{
TRACE
(
"minimizing win %p/%lx
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
TRACE
(
"minimizing win %p/%lx
\n
"
,
data
->
hwnd
,
data
->
whole_window
);
data
->
iconic
=
TRUE
;
data
->
iconic
=
TRUE
;
data
->
lock_changes
++
;
ShowWindow
(
data
->
hwnd
,
SW_MINIMIZE
);
ShowWindow
(
data
->
hwnd
,
SW_MINIMIZE
);
data
->
lock_changes
--
;
}
}
}
}
...
...
dlls/winex11.drv/winpos.c
View file @
86675edf
...
@@ -300,10 +300,12 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
...
@@ -300,10 +300,12 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
const
RECT
*
rectWindow
,
const
RECT
*
rectClient
,
const
RECT
*
rectWindow
,
const
RECT
*
rectClient
,
const
RECT
*
visible_rect
,
const
RECT
*
valid_rects
)
const
RECT
*
visible_rect
,
const
RECT
*
valid_rects
)
{
{
Display
*
display
=
thread_display
();
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
Display
*
display
=
thread_data
->
display
;
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
DWORD
new_style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
DWORD
new_style
=
GetWindowLongW
(
hwnd
,
GWL_STYLE
);
RECT
old_window_rect
,
old_whole_rect
,
old_client_rect
;
RECT
old_window_rect
,
old_whole_rect
,
old_client_rect
;
int
event_type
;
if
(
!
data
)
if
(
!
data
)
{
{
...
@@ -379,7 +381,19 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
...
@@ -379,7 +381,19 @@ void X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, UINT swp_flags,
X11DRV_sync_client_position
(
display
,
data
,
swp_flags
,
&
old_client_rect
,
&
old_whole_rect
);
X11DRV_sync_client_position
(
display
,
data
,
swp_flags
,
&
old_client_rect
,
&
old_whole_rect
);
if
(
!
data
->
whole_window
||
data
->
lock_changes
)
return
;
/* nothing more to do */
if
(
!
data
->
whole_window
)
return
;
/* check if we are currently processing an event relevant to this window */
event_type
=
0
;
if
(
thread_data
->
current_event
&&
thread_data
->
current_event
->
xany
.
window
==
data
->
whole_window
)
event_type
=
thread_data
->
current_event
->
type
;
if
(
event_type
==
ConfigureNotify
||
event_type
==
PropertyNotify
)
{
TRACE
(
"not changing window %p/%lx while processing event %u
\n
"
,
hwnd
,
data
->
whole_window
,
event_type
);
return
;
}
if
(
data
->
mapped
&&
(
!
(
new_style
&
WS_VISIBLE
)
||
!
X11DRV_is_window_rect_mapped
(
rectWindow
)))
if
(
data
->
mapped
&&
(
!
(
new_style
&
WS_VISIBLE
)
||
!
X11DRV_is_window_rect_mapped
(
rectWindow
)))
{
{
...
@@ -578,9 +592,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
...
@@ -578,9 +592,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
TRACE
(
"%p resizing from (%dx%d) to (%dx%d)
\n
"
,
TRACE
(
"%p resizing from (%dx%d) to (%dx%d)
\n
"
,
hwnd
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
cx
,
cy
);
hwnd
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
cx
,
cy
);
data
->
lock_changes
++
;
SetWindowPos
(
hwnd
,
0
,
x
,
y
,
cx
,
cy
,
flags
);
SetWindowPos
(
hwnd
,
0
,
x
,
y
,
cx
,
cy
,
flags
);
data
->
lock_changes
--
;
}
}
...
...
dlls/winex11.drv/x11drv.h
View file @
86675edf
...
@@ -678,7 +678,6 @@ struct x11drv_win_data
...
@@ -678,7 +678,6 @@ struct x11drv_win_data
BOOL
iconic
:
1
;
/* is window in iconic state? */
BOOL
iconic
:
1
;
/* is window in iconic state? */
int
wm_state
;
/* current value of the WM_STATE property */
int
wm_state
;
/* current value of the WM_STATE property */
DWORD
net_wm_state
;
/* bit mask of active x11drv_net_wm_state values */
DWORD
net_wm_state
;
/* bit mask of active x11drv_net_wm_state values */
unsigned
int
lock_changes
;
/* lock count for X11 change requests */
HBITMAP
hWMIconBitmap
;
HBITMAP
hWMIconBitmap
;
HBITMAP
hWMIconMask
;
HBITMAP
hWMIconMask
;
};
};
...
...
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