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
1a1b902e
Commit
1a1b902e
authored
Oct 11, 2006
by
Nickolay V. Shmyrev
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Always set window type.
parent
7e9e599d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
window.c
dlls/winex11.drv/window.c
+10
-7
x11drv.h
dlls/winex11.drv/x11drv.h
+2
-0
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+2
-0
No files found.
dlls/winex11.drv/window.c
View file @
1a1b902e
...
...
@@ -465,6 +465,7 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
XClassHint
*
class_hints
;
XWMHints
*
wm_hints
;
Atom
protocols
[
3
];
Atom
window_type
;
MwmHints
mwm_hints
;
Atom
dndVersion
=
4
;
int
i
;
...
...
@@ -523,13 +524,15 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
_NET_WM_PID
),
XA_CARDINAL
,
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
i
,
1
);
/* map WS_EX_TOOLWINDOW to _NET_WM_WINDOW_TYPE_UTILITY */
if
(
ex_style
&
WS_EX_TOOLWINDOW
)
{
Atom
a
=
x11drv_atom
(
_NET_WM_WINDOW_TYPE_UTILITY
);
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
_NET_WM_WINDOW_TYPE
),
XA_ATOM
,
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
a
,
1
);
}
/* set the WM_WINDOW_TYPE */
window_type
=
x11drv_atom
(
_NET_WM_WINDOW_TYPE_NORMAL
);
if
(
ex_style
&
WS_EX_TOOLWINDOW
)
window_type
=
x11drv_atom
(
_NET_WM_WINDOW_TYPE_UTILITY
);
else
if
(
style
&
WS_THICKFRAME
)
window_type
=
x11drv_atom
(
_NET_WM_WINDOW_TYPE_NORMAL
);
else
if
(
style
&
WS_DLGFRAME
)
window_type
=
x11drv_atom
(
_NET_WM_WINDOW_TYPE_DIALOG
);
else
if
(
ex_style
&
WS_EX_DLGMODALFRAME
)
window_type
=
x11drv_atom
(
_NET_WM_WINDOW_TYPE_DIALOG
);
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
_NET_WM_WINDOW_TYPE
),
XA_ATOM
,
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
window_type
,
1
);
mwm_hints
.
flags
=
MWM_HINTS_FUNCTIONS
|
MWM_HINTS_DECORATIONS
;
mwm_hints
.
functions
=
MWM_FUNC_MOVE
;
...
...
dlls/winex11.drv/x11drv.h
View file @
1a1b902e
...
...
@@ -571,6 +571,8 @@ enum x11drv_atoms
XATOM__NET_WM_STATE
,
XATOM__NET_WM_STATE_FULLSCREEN
,
XATOM__NET_WM_WINDOW_TYPE
,
XATOM__NET_WM_WINDOW_TYPE_DIALOG
,
XATOM__NET_WM_WINDOW_TYPE_NORMAL
,
XATOM__NET_WM_WINDOW_TYPE_UTILITY
,
XATOM__XEMBED_INFO
,
XATOM_XdndAware
,
...
...
dlls/winex11.drv/x11drv_main.c
View file @
1a1b902e
...
...
@@ -134,6 +134,8 @@ static const char * const atom_names[NB_XATOMS - FIRST_XATOM] =
"_NET_WM_STATE"
,
"_NET_WM_STATE_FULLSCREEN"
,
"_NET_WM_WINDOW_TYPE"
,
"_NET_WM_WINDOW_TYPE_DIALOG"
,
"_NET_WM_WINDOW_TYPE_NORMAL"
,
"_NET_WM_WINDOW_TYPE_UTILITY"
,
"_XEMBED_INFO"
,
"XdndAware"
,
...
...
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