Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a76abc03
Commit
a76abc03
authored
Jan 23, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Leave it up to explorer to specify the correct size and position for the desktop.
parent
dbfe24c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
window.c
dlls/winex11.drv/window.c
+0
-4
desktop.c
programs/explorer/desktop.c
+4
-7
No files found.
dlls/winex11.drv/window.c
View file @
a76abc03
...
...
@@ -1234,10 +1234,6 @@ static void get_desktop_xwin( Display *display, struct x11drv_win_data *data )
SetPropA
(
data
->
hwnd
,
visual_id_prop
,
(
HANDLE
)
visualid
);
set_initial_wm_hints
(
display
,
data
);
}
SetWindowPos
(
data
->
hwnd
,
0
,
virtual_screen_rect
.
left
,
virtual_screen_rect
.
top
,
virtual_screen_rect
.
right
-
virtual_screen_rect
.
left
,
virtual_screen_rect
.
bottom
-
virtual_screen_rect
.
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
/**********************************************************************
...
...
programs/explorer/desktop.c
View file @
a76abc03
...
...
@@ -181,17 +181,14 @@ void manage_desktop( char *arg )
xwin
=
create_desktop
(
"Default"
,
width
,
height
);
}
if
(
!
xwin
)
/* using the root window */
{
using_root
=
TRUE
;
width
=
GetSystemMetrics
(
SM_CXSCREEN
);
height
=
GetSystemMetrics
(
SM_CYSCREEN
);
}
if
(
!
xwin
)
using_root
=
TRUE
;
/* using the root window */
/* create the desktop window */
hwnd
=
CreateWindowExW
(
0
,
DESKTOP_CLASS_ATOM
,
NULL
,
WS_POPUP
|
WS_VISIBLE
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
,
0
,
0
,
width
,
height
,
0
,
0
,
0
,
NULL
);
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
0
,
0
,
0
,
NULL
);
if
(
hwnd
==
GetDesktopWindow
())
{
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wnd_proc
);
...
...
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