Commit Graph

11984 Commits

Author SHA1 Message Date
Sebastian Kügler
1c0f221ac5 One pixel offset needed for Fitt
The panel would be one pixel above the bottom edge, which prevents us
from using the invisible space beyond the panel. This makes the panel
flush with the bottom edge.
2013-12-18 01:38:21 +01:00
Aleix Pol
e5b435f53d Use the availableGeometry to calculate the struts
The virtualGeometry comprises all the screens and it's not what we're aiming
for in this case.
2013-12-18 01:11:30 +01:00
Aleix Pol
653d044292 Consistency
Use the thickness() method to query the thickness instead of querying
KConfig directly
2013-12-18 01:11:30 +01:00
Aleix Pol
d988b6f5da Consistency change
Deal with length like we deal with thickness
2013-12-18 01:11:30 +01:00
Alex Merry
de868b6047 Fix build now DNSSD is KDNSSD 2013-12-18 00:05:04 +00:00
Sebastian Kügler
79b7a3b271 Fix borders in dialog depending on location
- We would only check for the available screen, but not for the location
  when applying borders. Fix that.
- Cache dialog geometry when going fullscreen, so we can restore it when
  we're not fullscreen anymore.
- Remove temporary var l, we have m_location for that.
2013-12-18 00:47:09 +01:00
Sebastian Kügler
c0624d27e7 constness++ 2013-12-17 23:31:49 +01:00
Àlex Fiestas
dfcfad1182 [plasma-shell] Mute all debug output when started from autostart
This enables other developers to use journalctl/~.xsession-errors and
do not drown on warnings.

CCMAIL: plasma-devel@kde.org
2013-12-17 19:44:47 +01:00
Àlex Fiestas
c047dd5f68 [plasma-shell] Add an option to suppress any output (--shut-up)
The amount of warnings that plasma-shell has, makes it super hard to
make use of tools like journalctl or to grep ~/.xsession-errors.

We need these tools to diagnose possible bugs in the session start or
any other software that redirects stderr or those places.

We can remove this option once all the Warnings are fixed, specially
the one in Qt: https://codereview.qt-project.org/#change,73943

CCMAIL: plasma-devel@kde.org
2013-12-17 19:41:16 +01:00
Aleix Pol
8c80c1f96c Make sure we're not quitting when all screens are closed 2013-12-17 17:54:20 +01:00
David Edmundson
8c8bdbdca5 Remove debug 2013-12-17 16:54:27 +01:00
David Edmundson
a36c2787b9 Merge branch 'davidedmundson/containmentcleanup2' 2013-12-17 16:44:54 +01:00
David Edmundson
6fface8cd0 Move panels and containments to the relevant screen on screen add/remove 2013-12-17 16:43:52 +01:00
David Edmundson
68d36e4e8c Don't pernamently block signals if creating applet fails 2013-12-17 16:43:01 +01:00
David Edmundson
37840b1490 Add default screenForContainment implementation 2013-12-17 15:46:57 +01:00
Àlex Fiestas
bdbab34e21 [plasma-shell] Set plasma-shell as a Unique kind of app.
Mostly makes KLauncher not to execute a new instance if one
is already running
2013-12-17 13:00:33 +01:00
Àlex Fiestas
a9adcd8c6f [plasma-shell] Register org.kde.plasma_shell in the bus
This is needed to let KLauncher know that Plasma Shell has been
executed.
We are using plasma_shell because there is a bug in KDBusService
that prevents us from using plasma-shell. Fix is already done
but repositoiries at this very moment are frozen.
2013-12-17 13:00:33 +01:00
Sebastian Kügler
5c96de0c57 Minor cleanups in dialog.cpp 2013-12-17 05:11:50 +01:00
Sebastian Kügler
5ff0605529 Compile-time connection for dialog sizing 2013-12-17 03:54:37 +01:00
Sebastian Kügler
e352eb9157 Remove activeWindow property
This shadows and QWindow.active, so use that.
2013-12-17 03:37:32 +01:00
Sebastian Kügler
462cfdcdc7 Port from activateWindow to requestActivate 2013-12-17 03:05:16 +01:00
Sebastian Kügler
2edebc57c3 Remove windowFlags property
This is a needless duplication of the property, and it causes bugs.

Removing it, and porting all users to the flags property from QWindow
magically makes layering and resizability bugs vanish.

One problem is left: the dialog dismisses too easily, it should not
dismiss when being resized, moved or when a child dialog or QMenu opens
from it.
2013-12-17 02:39:26 +01:00
Sebastian Kügler
4c17887657 Remove hack, it does more harm than good. :/
CCMAIL:mgraesslin@kde.org
2013-12-17 02:39:10 +01:00
Sebastian Kügler
04fd5d719a Use visible property from QQuickWindow
Don't override it anymore, but react to the changed signal to do our
magic.
2013-12-17 01:21:59 +01:00
Sebastian Kügler
714042904f Abuse flags
Interestingly, this hack yields the correct behaviour in my system. We
quickly set the always on top hint once we're supposed to hide, so the
window stays on top for the duration of the animation -- without
apparent side effects on the positioning and resizability.

CCMAIL:mgraesslin@kde.org
2013-12-17 01:10:58 +01:00
David Edmundson
36e4a45377 Set the panel config to the same screen as the panel 2013-12-16 19:17:32 +01:00
David Edmundson
4336262d31 Connect to the right geometrychanged signal 2013-12-16 16:52:46 +01:00
David Edmundson
5baf0c8554 Use convenience method insertContainment in ShellCorona 2013-12-16 16:51:02 +01:00
David Edmundson
547f356edd Return valid screenForContainment on panels 2013-12-16 15:30:13 +01:00
David Edmundson
e5ef979ba1 Simplify assigning panels to screens 2013-12-16 15:30:13 +01:00
David Edmundson
be021453a2 Make it possible to modify PanelView screen property 2013-12-16 15:30:13 +01:00
David Edmundson
906caec817 Expose screen to MouseEventListener events 2013-12-16 15:30:13 +01:00
David Edmundson
a26913ccac Move screen management logic in ShellCorona
Previously shells, activities, shellcorona and corona all tried to
manage
which screen a containment was on.

This version moves all screen management into ShellCorona so we have a
central place for keeping tracking of containments, activities and
screens.
2013-12-16 15:30:13 +01:00
David Edmundson
56b2e75b2b Removed unused variable 2013-12-16 15:30:13 +01:00
David Edmundson
fb4d79e566 Remove unused signalWhenExists argument
It's unused and it's a hack.
2013-12-16 15:30:13 +01:00
David Edmundson
98e8731910 Remove unused "force" argument
force is always false. We don't need an argument
2013-12-16 15:30:12 +01:00
David Edmundson
1b9225491d Remove unused commented code 2013-12-16 15:30:12 +01:00
David Edmundson
51890d1337 Check if shell needs updating when a handler is deregistered 2013-12-16 15:30:03 +01:00
David Edmundson
c95642caec Add documentation on ShellManager 2013-12-16 15:30:02 +01:00
Aleix Pol
d9a4c3e0eb Adapt scripts to changes in kdelibs 2013-12-14 16:38:48 +01:00
Aleix Pol
361a1eebbe More macros to port 2013-12-14 14:32:03 +01:00
Aleix Pol
b0f9e8c773 fix scripts
ki18n_wrap_ui now exists
make kde4_add_plugin detection more flexible
2013-12-14 13:43:04 +01:00
l10n daemon script
acd85836bd SVN_SILENT made messages (.desktop file) 2013-12-13 04:39:08 +00:00
Sebastian Kügler
6b4ca35897 hideOnWindowDeactivate property for plasmoid object
This allows to control whether to automatically close panel popups when
they lose focus. Applets can set this to false in case they want to keep
the popup open (even temporarily).
2013-12-12 00:22:47 +01:00
Aurélien Gâteau
78276bd589 Treat *Config.cmake files as well 2013-12-11 23:12:48 +01:00
Aurélien Gâteau
7c74c27a25 Add missing alias 2013-12-11 21:40:54 +01:00
Aurélien Gâteau
02d6b37976 Renames for the KF5 prefix 2013-12-11 21:40:54 +01:00
Aurélien Gâteau
175204c453 KF5 prefix fixes 2013-12-11 21:40:54 +01:00
Antonis Tsiapaliokas
4efb85e5d2 Replace tab with spaces 2013-12-11 21:40:54 +01:00
Martin Klapetek
3214bd8132 Add KF5 prefix to plasma framework
This changes the lib name and package names to follow other frameworks

libFoo -> libKF5Foo
find_package(KFoo) -> find_package(KF5Foo)

REVIEW: 114389
2013-12-11 21:40:54 +01:00