Bug 345401 - Cashew can't be put in corner due to panels
Summary: Cashew can't be put in corner due to panels
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.2.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-21 21:05 UTC by Kenneth Graunke
Modified: 2015-03-26 15:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of the cashew placement (2.22 MB, image/png)
2015-03-21 21:06 UTC, Kenneth Graunke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Graunke 2015-03-21 21:05:07 UTC
I have small centered panels at the top and left, which don't take up the full screen width/height.  In Plasma 4, I could put the cashew in the corner, where it was available but unintrusive - technically in the same space as the panels.

In Plasma 5, it refuses to share the same space as a panel, always moving itself below my top panel and to the right of my left panel, leaving it floating in the middle of the screen.

Reproducible: Always
Comment 1 Kenneth Graunke 2015-03-21 21:06:37 UTC
Created attachment 91671 [details]
Screenshot of the cashew placement

This screenshot shows my panel configuration and where the cashew ends up.  I want it to be flush against the screen edge in both directions.
Comment 2 Marco Martin 2015-03-26 10:09:59 UTC
closely related, even if not exactly duplicate of bug #338343
Comment 3 Marco Martin 2015-03-26 15:51:05 UTC
Git commit 22796e978d731b81454ab273ed1fa09b94727f6e by Marco Martin.
Committed on 26/03/2015 at 15:48.
Pushed by mart into branch 'master'.

function to adjust a rect to availableScreenRect

Given a geometry, it adjusts it moving it completely inside of the boundaries
of availableScreenRegion, returning the topLeft point of the adjusted
rectangle

reviewed-by: David Edmundson <david@davidedmundson.co.uk>

Change-Id: Ib58cbf521d5def1cd5bb34fe90366d4b628f8a89
Related: bug 345002

M  +101  -0    src/scriptengines/qml/plasmoid/containmentinterface.cpp
M  +7    -0    src/scriptengines/qml/plasmoid/containmentinterface.h

http://commits.kde.org/plasma-framework/22796e978d731b81454ab273ed1fa09b94727f6e
Comment 4 Marco Martin 2015-03-26 15:54:17 UTC
Git commit 3cc4e647946bf28ce6864a1287d5e57937cc679d by Marco Martin.
Committed on 26/03/2015 at 15:51.
Pushed by mart into branch 'master'.

position considering availableScreenRegion

position toolbox and applets considering availableScreenRegion
make possible to use the empty space in panels that don't have
a 100% width/height
Related: bug 345002

M  +8    -2    containments/desktop/package/contents/code/LayoutManager.js
M  +2    -9    containments/desktop/package/contents/ui/main.qml
M  +2    -2    toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
M  +27   -25   toolboxes/desktoptoolbox/contents/ui/ToolBoxRoot.qml

http://commits.kde.org/plasma-desktop/3cc4e647946bf28ce6864a1287d5e57937cc679d