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
8e7dad93
Commit
8e7dad93
authored
Sep 17, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Compare the window position against the cached position in ConfigureNotify.
parent
ecf579b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
event.c
dlls/winex11.drv/event.c
+13
-12
No files found.
dlls/winex11.drv/event.c
View file @
8e7dad93
...
...
@@ -825,12 +825,6 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
event
->
x
,
event
->
y
,
event
->
width
,
event
->
height
);
X11DRV_X_to_window_rect
(
data
,
&
rect
);
x
=
rect
.
left
;
y
=
rect
.
top
;
cx
=
rect
.
right
-
rect
.
left
;
cy
=
rect
.
bottom
-
rect
.
top
;
flags
=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
if
(
is_net_wm_state_maximized
(
event
->
display
,
data
))
{
if
(
!
IsZoomed
(
data
->
hwnd
))
...
...
@@ -852,21 +846,28 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev )
/* Compare what has changed */
GetWindowRect
(
hwnd
,
&
rect
);
if
(
rect
.
left
==
x
&&
rect
.
top
==
y
)
flags
|=
SWP_NOMOVE
;
x
=
rect
.
left
;
y
=
rect
.
top
;
cx
=
rect
.
right
-
rect
.
left
;
cy
=
rect
.
bottom
-
rect
.
top
;
flags
=
SWP_NOACTIVATE
|
SWP_NOZORDER
;
if
(
data
->
window_rect
.
left
==
x
&&
data
->
window_rect
.
top
==
y
)
flags
|=
SWP_NOMOVE
;
else
TRACE
(
"%p moving from (%d,%d) to (%d,%d)
\n
"
,
hwnd
,
rect
.
left
,
rect
.
top
,
x
,
y
);
hwnd
,
data
->
window_rect
.
left
,
data
->
window_
rect
.
top
,
x
,
y
);
if
((
rect
.
right
-
rect
.
left
==
cx
&&
rect
.
bottom
-
rect
.
top
==
cy
)
||
(
IsRectEmpty
(
&
rect
)
&&
event
->
width
==
1
&&
event
->
height
==
1
))
if
((
data
->
window_rect
.
right
-
data
->
window_rect
.
left
==
cx
&&
data
->
window_rect
.
bottom
-
data
->
window_rect
.
top
==
cy
)
||
(
IsRectEmpty
(
&
data
->
window_rect
)
&&
event
->
width
==
1
&&
event
->
height
==
1
))
{
if
(
flags
&
SWP_NOMOVE
)
return
;
/* if nothing changed, don't do anything */
flags
|=
SWP_NOSIZE
;
}
else
TRACE
(
"%p resizing from (%dx%d) to (%dx%d)
\n
"
,
hwnd
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
cx
,
cy
);
hwnd
,
data
->
window_rect
.
right
-
data
->
window_rect
.
left
,
data
->
window_rect
.
bottom
-
data
->
window_rect
.
top
,
cx
,
cy
);
SetWindowPos
(
hwnd
,
0
,
x
,
y
,
cx
,
cy
,
flags
);
}
...
...
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