Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
9824ec40
Commit
9824ec40
authored
26 years ago
by
Dirk Thierbach
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set the class hints for managed windows.
parent
30f503fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
include/ts_xutil.h
+1
-0
1 addition, 0 deletions
include/ts_xutil.h
tsx11/X11_calls
+1
-0
1 addition, 0 deletions
tsx11/X11_calls
tsx11/ts_xutil.c
+11
-0
11 additions, 0 deletions
tsx11/ts_xutil.c
windows/x11drv/wnd.c
+13
-5
13 additions, 5 deletions
windows/x11drv/wnd.c
with
26 additions
and
5 deletions
include/ts_xutil.h
+
1
−
0
View file @
9824ec40
...
...
@@ -32,6 +32,7 @@ extern int TSXPointInRegion(Region, int, int);
extern
Region
TSXPolygonRegion
(
XPoint
*
,
int
,
int
);
extern
int
TSXRectInRegion
(
Region
,
int
,
int
,
unsigned
int
,
unsigned
int
);
extern
int
TSXSaveContext
(
Display
*
,
XID
,
XContext
,
const
char
*
);
extern
int
TSXSetClassHint
(
Display
*
,
Window
,
XClassHint
*
);
extern
void
TSXSetWMProperties
(
Display
*
,
Window
,
XTextProperty
*
,
XTextProperty
*
,
char
**
,
int
,
XSizeHints
*
,
XWMHints
*
,
XClassHint
*
);
extern
void
TSXSetWMSizeHints
(
Display
*
,
Window
,
XSizeHints
*
,
Atom
);
extern
int
TSXSetRegion
(
Display
*
,
GC
,
Region
);
...
...
This diff is collapsed.
Click to expand it.
tsx11/X11_calls
+
1
−
0
View file @
9824ec40
...
...
@@ -113,6 +113,7 @@ XSaveContext
XSendEvent
XSetArcMode
XSetBackground
XSetClassHint
XSetClipMask
XSetClipOrigin
XSetClipRectangles
...
...
This diff is collapsed.
Click to expand it.
tsx11/ts_xutil.c
+
11
−
0
View file @
9824ec40
...
...
@@ -219,6 +219,17 @@ int TSXSaveContext(Display* a0, XID a1, XContext a2, const char* a3)
return
r
;
}
int
TSXSetClassHint
(
Display
*
a0
,
Window
a1
,
XClassHint
*
a2
)
{
int
r
;
TRACE
(
x11
,
"Call XSetClassHint
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XSetClassHint
(
a0
,
a1
,
a2
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
x11
,
"Ret XSetClassHint
\n
"
);
return
r
;
}
void
TSXSetWMProperties
(
Display
*
a0
,
Window
a1
,
XTextProperty
*
a2
,
XTextProperty
*
a3
,
char
**
a4
,
int
a5
,
XSizeHints
*
a6
,
XWMHints
*
a7
,
XClassHint
*
a8
)
{
TRACE
(
x11
,
"Call XSetWMProperties
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
windows/x11drv/wnd.c
+
13
−
5
View file @
9824ec40
...
...
@@ -128,13 +128,20 @@ BOOL32 X11DRV_WND_CreateWindow(WND *wndPtr, CLASS *classPtr, CREATESTRUCT32A *cs
if
(
!
wndPtr
->
window
)
return
FALSE
;
if
((
wndPtr
->
flags
&
WIN_MANAGED
)
&&
(
cs
->
dwExStyle
&
WS_EX_DLGMODALFRAME
))
{
if
(
wndPtr
->
flags
&
WIN_MANAGED
)
{
XClassHint
*
class_hints
=
TSXAllocClassHint
();
if
(
class_hints
)
{
class_hints
->
res_name
=
"wineManaged"
;
class_hints
->
res_class
=
"Wine"
;
TSXSetClassHint
(
display
,
wndPtr
->
window
,
class_hints
);
TSXFree
(
class_hints
);
}
if
(
cs
->
dwExStyle
&
WS_EX_DLGMODALFRAME
)
{
XSizeHints
*
size_hints
=
TSXAllocSizeHints
();
if
(
size_hints
)
{
if
(
size_hints
)
{
size_hints
->
min_width
=
size_hints
->
max_width
=
cs
->
cx
;
size_hints
->
min_height
=
size_hints
->
max_height
=
cs
->
cy
;
size_hints
->
flags
=
(
PSize
|
PMinSize
|
PMaxSize
);
...
...
@@ -143,6 +150,7 @@ BOOL32 X11DRV_WND_CreateWindow(WND *wndPtr, CLASS *classPtr, CREATESTRUCT32A *cs
TSXFree
(
size_hints
);
}
}
}
if
(
cs
->
hwndParent
)
/* Get window owner */
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment