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
c4cf9024
Commit
c4cf9024
authored
Dec 19, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Hardcode the MWM hints for the desktop window.
parent
1be40082
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
window.c
dlls/winex11.drv/window.c
+17
-8
No files found.
dlls/winex11.drv/window.c
View file @
c4cf9024
...
...
@@ -1007,19 +1007,28 @@ static void set_mwm_hints( Display *display, struct x11drv_win_data *data, DWORD
{
MwmHints
mwm_hints
;
mwm_hints
.
flags
=
MWM_HINTS_FUNCTIONS
|
MWM_HINTS_DECORATIONS
;
mwm_hints
.
decorations
=
get_mwm_decorations
(
data
,
style
,
ex_style
);
mwm_hints
.
functions
=
MWM_FUNC_MOVE
;
if
(
is_window_resizable
(
data
,
style
))
mwm_hints
.
functions
|=
MWM_FUNC_RESIZE
;
if
(
!
(
style
&
WS_DISABLED
))
if
(
data
->
hwnd
==
GetDesktopWindow
())
{
if
(
style
&
WS_MINIMIZEBOX
)
mwm_hints
.
functions
|=
MWM_FUNC_MINIMIZE
;
if
(
style
&
WS_MAXIMIZEBOX
)
mwm_hints
.
functions
|=
MWM_FUNC_MAXIMIZE
;
if
(
style
&
WS_SYSMENU
)
mwm_hints
.
functions
|=
MWM_FUNC_CLOSE
;
mwm_hints
.
decorations
=
MWM_DECOR_TITLE
|
MWM_DECOR_BORDER
|
MWM_DECOR_MENU
|
MWM_DECOR_MINIMIZE
;
mwm_hints
.
functions
=
MWM_FUNC_MOVE
|
MWM_FUNC_MINIMIZE
|
MWM_FUNC_CLOSE
;
}
else
{
mwm_hints
.
decorations
=
get_mwm_decorations
(
data
,
style
,
ex_style
);
mwm_hints
.
functions
=
MWM_FUNC_MOVE
;
if
(
is_window_resizable
(
data
,
style
))
mwm_hints
.
functions
|=
MWM_FUNC_RESIZE
;
if
(
!
(
style
&
WS_DISABLED
))
{
if
(
style
&
WS_MINIMIZEBOX
)
mwm_hints
.
functions
|=
MWM_FUNC_MINIMIZE
;
if
(
style
&
WS_MAXIMIZEBOX
)
mwm_hints
.
functions
|=
MWM_FUNC_MAXIMIZE
;
if
(
style
&
WS_SYSMENU
)
mwm_hints
.
functions
|=
MWM_FUNC_CLOSE
;
}
}
TRACE
(
"%p setting mwm hints to %lx,%lx (style %x exstyle %x)
\n
"
,
data
->
hwnd
,
mwm_hints
.
decorations
,
mwm_hints
.
functions
,
style
,
ex_style
);
mwm_hints
.
flags
=
MWM_HINTS_FUNCTIONS
|
MWM_HINTS_DECORATIONS
;
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
_MOTIF_WM_HINTS
),
x11drv_atom
(
_MOTIF_WM_HINTS
),
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
mwm_hints
,
sizeof
(
mwm_hints
)
/
sizeof
(
long
)
);
...
...
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