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
ba1517fa
Commit
ba1517fa
authored
Mar 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Allow setting WM hints for the desktop window.
parent
1625b385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
window.c
dlls/x11drv/window.c
+16
-4
No files found.
dlls/x11drv/window.c
View file @
ba1517fa
...
...
@@ -301,10 +301,15 @@ static void set_size_hints( Display *display, struct x11drv_win_data *data, DWOR
if
((
size_hints
=
XAllocSizeHints
()))
{
size_hints
->
win_gravity
=
StaticGravity
;
size_hints
->
x
=
data
->
whole_rect
.
left
;
size_hints
->
y
=
data
->
whole_rect
.
top
;
size_hints
->
flags
=
PWinGravity
|
PPosition
;
size_hints
->
flags
=
0
;
if
(
data
->
hwnd
!=
GetDesktopWindow
())
/* don't force position of desktop */
{
size_hints
->
win_gravity
=
StaticGravity
;
size_hints
->
x
=
data
->
whole_rect
.
left
;
size_hints
->
y
=
data
->
whole_rect
.
top
;
size_hints
->
flags
|=
PWinGravity
|
PPosition
;
}
if
(
!
(
style
&
WS_THICKFRAME
)
)
{
...
...
@@ -371,6 +376,13 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
HWND
owner
=
GetWindow
(
data
->
hwnd
,
GW_OWNER
);
char
*
process_name
=
get_process_name
();
if
(
data
->
hwnd
==
GetDesktopWindow
())
{
/* force some styles for the desktop to get the correct decorations */
style
|=
WS_CAPTION
|
WS_SYSMENU
|
WS_MINIMIZEBOX
;
owner
=
0
;
}
/* transient for hint */
if
(
owner
)
{
...
...
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