Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5fbc3f3a
Commit
5fbc3f3a
authored
Apr 29, 1995
by
Karl Heuer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(x_non_menubar_window_to_frame): New function.
parent
10ceaf03
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
src/xfns.c
src/xfns.c
+29
-0
No files found.
src/xfns.c
View file @
5fbc3f3a
...
...
@@ -326,6 +326,35 @@ x_any_window_to_frame (dpyinfo, wdesc)
return
0
;
}
/* Likewise, but exclude the menu bar widget. */
struct
frame
*
x_non_menubar_window_to_frame
(
dpyinfo
,
wdesc
)
struct
x_display_info
*
dpyinfo
;
int
wdesc
;
{
Lisp_Object
tail
,
frame
;
struct
frame
*
f
;
struct
x_display
*
x
;
for
(
tail
=
Vframe_list
;
GC_CONSP
(
tail
);
tail
=
XCONS
(
tail
)
->
cdr
)
{
frame
=
XCONS
(
tail
)
->
car
;
if
(
!
GC_FRAMEP
(
frame
))
continue
;
f
=
XFRAME
(
frame
);
if
(
f
->
display
.
nothing
==
1
||
FRAME_X_DISPLAY_INFO
(
f
)
!=
dpyinfo
)
continue
;
x
=
f
->
display
.
x
;
/* This frame matches if the window is any of its widgets. */
if
(
wdesc
==
XtWindow
(
x
->
widget
)
||
wdesc
==
XtWindow
(
x
->
column_widget
)
||
wdesc
==
XtWindow
(
x
->
edit_widget
))
return
f
;
}
return
0
;
}
/* Return the frame whose principal (outermost) window is WDESC.
If WDESC is some other (smaller) window, we return 0. */
...
...
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