Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
5be188fe
Commit
5be188fe
authored
May 04, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Iconified test works for linux
parent
627c45e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
2 deletions
+56
-2
src/lib/co/motif/co_mrm_util.c
src/lib/co/motif/co_mrm_util.c
+56
-2
No files found.
src/lib/co/motif/co_mrm_util.c
View file @
5be188fe
/**
* Proview $Id: co_mrm_util.c,v 1.
1 2007-02-07 15:37:44
claes Exp $
* Proview $Id: co_mrm_util.c,v 1.
2 2007-05-04 08:16:39
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -354,7 +354,61 @@ int mrm_IsIconicState( Widget W)
}
return
Iconic
;
#else
return
0
;
#define WM_STATE_ELEMENTS 1
static
Atom
WmStateAtom
=
0
;
int
sts
;
int
Iconic
=
0
;
unsigned
long
*
IconStateData
=
0
;
Atom
atom_ret
;
int
format_ret
;
unsigned
long
nitems_ret
,
bytesleft
;
Widget
Shell
;
if
(
W
==
NULL
)
return
FALSE
;
Shell
=
W
;
while
(
!
XtIsShell
(
Shell
))
Shell
=
XtParent
(
Shell
);
if
(
WmStateAtom
==
0
)
{
WmStateAtom
=
XInternAtom
(
XtDisplay
(
Shell
),
"WM_STATE"
,
1
);
}
if
(
WmStateAtom
)
{
sts
=
XGetWindowProperty
(
XtDisplay
(
Shell
),
XtWindow
(
Shell
),
WmStateAtom
,
0L
,
WM_STATE_ELEMENTS
,
FALSE
,
WmStateAtom
,
&
atom_ret
,
&
format_ret
,
&
nitems_ret
,
&
bytesleft
,
(
unsigned
char
**
)
&
IconStateData
);
if
(
!
(
sts
==
Success
&&
atom_ret
==
WmStateAtom
&&
nitems_ret
==
WM_STATE_ELEMENTS
))
if
(
IconStateData
!=
NULL
)
XFree
(
IconStateData
);
if
(
IconStateData
)
Iconic
=
TRUE
;
else
Iconic
=
FALSE
;
}
return
Iconic
;
// return 0;
#endif
}
...
...
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