Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
525b8232
Commit
525b8232
authored
Oct 08, 1994
by
Richard M. Stallman
Browse files
(fit_to_screen): Don't put the menu off the left or top.
parent
4edaa169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lwlib/xlwmenu.c
lwlib/xlwmenu.c
+4
-0
No files found.
lwlib/xlwmenu.c
View file @
525b8232
...
...
@@ -750,6 +750,8 @@ fit_to_screen (mw, ws, previous_ws, horizontal_p)
ws
->
x
=
previous_ws
->
x
-
ws
->
width
;
else
ws
->
x
=
screen_width
-
ws
->
width
;
if
(
ws
->
x
<
0
)
ws
->
x
=
0
;
}
if
(
ws
->
y
<
0
)
ws
->
y
=
0
;
...
...
@@ -759,6 +761,8 @@ fit_to_screen (mw, ws, previous_ws, horizontal_p)
ws
->
y
=
previous_ws
->
y
-
ws
->
height
;
else
ws
->
y
=
screen_height
-
ws
->
height
;
if
(
ws
->
y
<
0
)
ws
->
y
=
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