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
0edc848b
Commit
0edc848b
authored
May 29, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Don't call driver create_desktop if desktop name is "root".
parent
dbb63987
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
desktop.c
dlls/winex11.drv/desktop.c
+0
-11
desktop.c
programs/explorer/desktop.c
+4
-2
No files found.
dlls/winex11.drv/desktop.c
View file @
0edc848b
...
...
@@ -359,21 +359,10 @@ void X11DRV_init_desktop( Window win, unsigned int width, unsigned int height )
*/
NTSTATUS
x11drv_create_desktop
(
void
*
arg
)
{
static
const
WCHAR
rootW
[]
=
{
'r'
,
'o'
,
'o'
,
't'
,
0
};
const
struct
create_desktop_params
*
params
=
arg
;
XSetWindowAttributes
win_attr
;
Window
win
;
Display
*
display
=
thread_init_display
();
WCHAR
name
[
MAX_PATH
];
if
(
!
NtUserGetObjectInformation
(
NtUserGetThreadDesktop
(
GetCurrentThreadId
()
),
UOI_NAME
,
name
,
sizeof
(
name
),
NULL
))
name
[
0
]
=
0
;
TRACE
(
"%s %ux%u
\n
"
,
debugstr_w
(
name
),
params
->
width
,
params
->
height
);
/* magic: desktop "root" means use the root window */
if
(
!
wcsicmp
(
name
,
rootW
))
return
FALSE
;
/* Create window */
win_attr
.
event_mask
=
ExposureMask
|
KeyPressMask
|
KeyReleaseMask
|
EnterWindowMask
|
...
...
programs/explorer/desktop.c
View file @
0edc848b
...
...
@@ -42,7 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(explorer);
static
const
WCHAR
default_driver
[]
=
{
'm'
,
'a'
,
'c'
,
','
,
'x'
,
'1'
,
'1'
,
0
};
static
BOOL
using_root
;
static
BOOL
using_root
=
TRUE
;
struct
launcher
{
...
...
@@ -1089,6 +1089,8 @@ void manage_desktop( WCHAR *arg )
if
(
name
&&
width
&&
height
)
{
/* magic: desktop "root" means use the root window */
using_root
=
!
wcsicmp
(
name
,
L"root"
);
if
(
!
(
desktop
=
CreateDesktopW
(
name
,
NULL
,
NULL
,
0
,
DESKTOP_ALL_ACCESS
,
NULL
)))
{
WINE_ERR
(
"failed to create desktop %s error %ld
\n
"
,
wine_dbgstr_w
(
name
),
GetLastError
()
);
...
...
@@ -1109,7 +1111,7 @@ void manage_desktop( WCHAR *arg )
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wnd_proc
);
using_root
=
!
desktop
||
!
create_desktop
(
graphics_driver
,
name
,
width
,
height
);
if
(
!
using_root
)
using_root
=
!
create_desktop
(
graphics_driver
,
name
,
width
,
height
);
SendMessageW
(
hwnd
,
WM_SETICON
,
ICON_BIG
,
(
LPARAM
)
LoadIconW
(
0
,
MAKEINTRESOURCEW
(
OIC_WINLOGO
)));
if
(
name
)
set_desktop_window_title
(
hwnd
,
name
);
SetWindowPos
(
hwnd
,
0
,
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
...
...
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