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
30d84fcd
Commit
30d84fcd
authored
Jan 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32,server: Set the initial window rectangles to 0,0-0,0.
parent
e2578c5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
win.c
dlls/user32/win.c
+2
-0
window.c
dlls/winex11.drv/window.c
+3
-16
window.c
server/window.c
+2
-0
No files found.
dlls/user32/win.c
View file @
30d84fcd
...
...
@@ -166,6 +166,8 @@ static WND *create_window_handle( HWND parent, HWND owner, LPCWSTR name,
win
->
dwMagic
=
WND_MAGIC
;
win
->
flags
=
0
;
win
->
cbWndExtra
=
extra_bytes
;
SetRectEmpty
(
&
win
->
rectWindow
);
SetRectEmpty
(
&
win
->
rectClient
);
memset
(
win
->
wExtra
,
0
,
extra_bytes
);
CLASS_AddWindow
(
class
,
win
,
unicode
);
return
win
;
...
...
dlls/winex11.drv/window.c
View file @
30d84fcd
...
...
@@ -1203,22 +1203,9 @@ static struct x11drv_win_data *alloc_win_data( Display *display, HWND hwnd )
{
struct
x11drv_win_data
*
data
;
if
((
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
))))
{
data
->
hwnd
=
hwnd
;
data
->
whole_window
=
0
;
data
->
icon_window
=
0
;
data
->
fbconfig_id
=
0
;
data
->
gl_drawable
=
0
;
data
->
pixmap
=
0
;
data
->
xic
=
0
;
data
->
managed
=
FALSE
;
data
->
wm_state
=
0
;
data
->
dce
=
NULL
;
data
->
lock_changes
=
0
;
data
->
hWMIconBitmap
=
0
;
data
->
hWMIconMask
=
0
;
if
((
data
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
data
))))
{
data
->
hwnd
=
hwnd
;
wine_tsx11_lock
();
if
(
!
winContext
)
winContext
=
XUniqueContext
();
if
(
!
win_data_context
)
win_data_context
=
XUniqueContext
();
...
...
server/window.c
View file @
30d84fcd
...
...
@@ -424,6 +424,7 @@ void close_desktop_window( struct desktop *desktop )
static
struct
window
*
create_window
(
struct
window
*
parent
,
struct
window
*
owner
,
atom_t
atom
,
void
*
instance
)
{
static
const
rectangle_t
empty_rect
;
int
extra_bytes
;
struct
window
*
win
;
struct
desktop
*
desktop
;
...
...
@@ -462,6 +463,7 @@ static struct window *create_window( struct window *parent, struct window *owner
win
->
prop_alloc
=
0
;
win
->
properties
=
NULL
;
win
->
nb_extra_bytes
=
extra_bytes
;
win
->
window_rect
=
win
->
visible_rect
=
win
->
client_rect
=
empty_rect
;
memset
(
win
->
extra_bytes
,
0
,
extra_bytes
);
list_init
(
&
win
->
children
);
list_init
(
&
win
->
unlinked
);
...
...
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