Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wayland
weston
Commits
b36f7ef9
Commit
b36f7ef9
authored
Oct 10, 2012
by
Kristian Høgsberg
Browse files
terminal: Don't snap resize if we're maximized
We allow fullscreen to fill the requested size, do the same for maximize.
parent
b7ed4cbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
clients/terminal.c
View file @
b36f7ef9
...
...
@@ -763,7 +763,8 @@ resize_handler(struct widget *widget,
columns
=
(
width
-
m
)
/
(
int32_t
)
terminal
->
extents
.
max_x_advance
;
rows
=
(
height
-
m
)
/
(
int32_t
)
terminal
->
extents
.
height
;
if
(
window_is_fullscreen
(
terminal
->
window
))
{
if
(
!
window_is_fullscreen
(
terminal
->
window
)
&&
!
window_is_maximized
(
terminal
->
window
))
{
width
=
columns
*
terminal
->
extents
.
max_x_advance
+
m
;
height
=
rows
*
terminal
->
extents
.
height
+
m
;
widget_set_size
(
terminal
->
widget
,
width
,
height
);
...
...
@@ -777,7 +778,8 @@ terminal_resize(struct terminal *terminal, int columns, int rows)
{
int32_t
width
,
height
,
m
;
if
(
window_is_fullscreen
(
terminal
->
window
))
if
(
window_is_fullscreen
(
terminal
->
window
)
||
window_is_maximized
(
terminal
->
window
))
return
;
m
=
2
*
terminal
->
margin
;
...
...
Write
Preview
Supports
Markdown
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