Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfwm4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
xfwm4
Commits
8ecfb0d0
Commit
8ecfb0d0
authored
16 years ago
by
Olivier Fourdan
Browse files
Options
Downloads
Patches
Plain Diff
* src/placement.c: Prevent "fill" from expanding beyound physical
monitor. (Old svn revision: 29029)
parent
f6465a2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/placement.c
+13
-9
13 additions, 9 deletions
src/placement.c
with
19 additions
and
9 deletions
ChangeLog
+
5
−
0
View file @
8ecfb0d0
2008-12-16 olivier
* src/placement.c: Prevent "fill" from expanding beyound physical
monitor.
2008-12-14 olivier
* src/placement.c, src/placement.h, src/client.c, src/client.h:
...
...
This diff is collapsed.
Click to expand it.
NEWS
+
1
−
0
View file @
8ecfb0d0
...
...
@@ -8,6 +8,7 @@
- Remove maximization if a client updates its size max size hint (Bug #4706).
- String review by Josh Saddler <nightmorph@gentoo.org> (Bug #4703).
- Fix fill horizontally and vertically not working as expected (Bug #4712).
- Prevent "fill" from expanding beyound physical monitor.
4.5.92 (Xfce 4.6beta2)
======================
...
...
This diff is collapsed.
Click to expand it.
src/placement.c
+
13
−
9
View file @
8ecfb0d0
...
...
@@ -918,43 +918,47 @@ clientFill (Client * c, int fill_type)
}
/* If there are neighbours, resize to their borders.
* If not, resize to the largest size available t
a
ht you just have computed.
* If not, resize to the largest size available th
a
t you just have computed.
*/
wc
.
x
=
frameLeft
(
c
);
if
(
east_neighbour
)
{
wc
.
x
=
frameX
(
east_neighbour
)
+
frameWidth
(
east_neighbour
)
+
frameLeft
(
c
);
wc
.
x
+
=
MAX
(
frameX
(
east_neighbour
)
+
frameWidth
(
east_neighbour
)
,
full_x
);
}
else
{
wc
.
x
=
full_x
+
frameLeft
(
c
)
;
wc
.
x
+
=
full_x
;
}
wc
.
width
=
full_x
-
frameRight
(
c
)
-
wc
.
x
;
if
(
west_neighbour
)
{
wc
.
width
=
full_x
+
frameX
(
west_neighbour
)
-
frameRight
(
c
)
-
wc
.
x
;
wc
.
width
+
=
MIN
(
frameX
(
west_neighbour
)
,
full_w
)
;
}
else
{
wc
.
width
=
full_
x
+
full_w
-
frameRight
(
c
)
-
wc
.
x
;
wc
.
width
+
=
full_
w
;
}
wc
.
y
=
frameTop
(
c
);
if
(
north_neighbour
)
{
wc
.
y
=
frameY
(
north_neighbour
)
+
frameHeight
(
north_neighbour
)
+
frameTop
(
c
);
wc
.
y
+
=
MAX
(
frameY
(
north_neighbour
)
+
frameHeight
(
north_neighbour
)
,
full_y
);
}
else
{
wc
.
y
=
full_y
+
frameTop
(
c
)
;
wc
.
y
+
=
full_y
;
}
wc
.
height
=
full_y
-
frameBottom
(
c
)
-
wc
.
y
;
if
(
south_neighbour
)
{
wc
.
height
=
full_y
+
frameY
(
south_neighbour
)
-
frameBottom
(
c
)
-
wc
.
y
;
wc
.
height
+
=
MIN
(
frameY
(
south_neighbour
)
,
full_h
)
;
}
else
{
wc
.
height
=
full_
y
+
full_h
-
frameBottom
(
c
)
-
wc
.
y
;
wc
.
height
+
=
full_
h
;
}
TRACE
(
"Fill size request: (%d,%d) %dx%d"
,
wc
.
x
,
wc
.
y
,
wc
.
width
,
wc
.
height
);
...
...
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