Aleix Pol
130c276033
Fix DesktopView cleanup
...
Use the same strategy as the PanelView, overriding the screenDestroyed slot.
12 years ago
Aleix Pol
fd4a44af04
Move DesktopView code to DesktopView
12 years ago
Aleix Pol
edb3a358df
Return the correct number of screens
...
Sometimes we discard added screens because they map on another screen.
Reflect on that.
12 years ago
Vishesh Handa
9fd2842d78
DesktopView: Launch krunner on typing
...
This is consistent with the behaviour in Plasma 4.
BUG: 336692
REVIEW: 118937
12 years ago
Marco Martin
a327504d7b
don't break in windowed mode
12 years ago
Aleix Pol
e70aa21f1e
Fix crash
...
Either way, set the screen, QWindow crashes if it gets to the
destructor with an old screen.
12 years ago
Aleix Pol
a2b7ad5ef4
small code simplification
12 years ago
Aleix Pol
d299e849ba
Make sure we get to decide where our panels go
...
Workaround a lack of API from Qt where it will decide to move the panels
around without us being able to control it.
This patch overrides the QWindow::screenDestroyed slot to be able to decide
where to move the Panel or whether it needs to be removed. This is
considered a workaround and should be removed once the new API is in and
released.
See also: https://codereview.qt-project.org/#/c/88351/
BUG: 335710
12 years ago
Aleix Pol
5c23021151
Only trigger the restoreAutoHide timer if we're on AutoHide mode
...
Otherwise it's just triggering the timer that will set the panel to the same
state it was.
12 years ago
Marco Martin
8bc843e5bf
use thickness, not the size
12 years ago
Marco Martin
019b573a97
availableScreenRect not availableScreenRegion
...
independent yet similar computation of the rect as opposed to the region
this way is more reliable
12 years ago
Aleix Pol
48832760cf
When removing a screen, properly clean up the panels
...
We're connecting to a destroyed signal, and it's a screen being destroyed
so we need to react according to the type.
12 years ago
Martin Gräßlin
0a040bc498
[plasmashell] Show a warning if there are no Shaders and exit
...
If there are no Shaders Plasma doesn't work. If we detect this we show
a warning (without GL) and exit.
This doesn't really work as Qt has a bug which doesn't allow to detect
whether Shaders are supported and the exit just doesn't work.
REVIEW: 118812
12 years ago
Aleix Pol
629adbfd92
Share code between panelview and shellcorona
...
Leverage on the PanelView to decide where the panel should be when the
distance is 0
12 years ago
Aleix Pol
0ba755ca29
Leverage the QRegion to get the available screen region
...
No need to have the same code to calculate it twice
12 years ago
Aleix Pol
fa3126f716
Improve how we figure out the screenGeometry for a screen
...
Leverage on the vector position rather than looking through it, this way
it works even before the containment is set.
CCBUG: 335710
12 years ago
Aleix Pol
d70dfd2c94
remove redundant code
12 years ago
Kai Uwe Broulik
9125d30037
Brightness icon name has changed
12 years ago
Marco Martin
60133e0f16
delete the view if its panel gets deleted
...
so don't crash at its own garbage collecting
12 years ago
Marco Martin
10e241cf8e
expose dashboardshown as readonly
...
remove the transparency stuff from the c++ part, beloongs to the qml part
12 years ago
Vishesh Handa
d23129b4ce
OSD: Show display brightness icon
12 years ago
Bhushan Shah
e11e9c7c6c
Set alignment of the panel before setting the thickness
...
if we will not set it panel geometry will end up being wrong and hence availableScreenRect
This fixes plasmoids and icons being disappeared when adding panels.
BUG: 336376
REVIEW: 118847
12 years ago
Marco Martin
4a0c17f2e8
make sure the slidewindow atom is always set
...
BUG:336460
12 years ago
Marco Martin
d798163811
default icon for windows
...
use "plasma" as default icon for windows created by the process, as plasma1
CCBUG:336461
12 years ago
Aleix Pol
9ba732aca3
Small code cleanup
12 years ago
Marco Martin
0349b3114d
initialize
12 years ago
Aleix Pol
d4d9a39072
Explicitly call panelview::show
...
This way, we don't need to have everything being repainted when geometries
change while constructing the panel.
Also don't connect to screen changed until everything is initialized and
the panel is displayed.
12 years ago
Aleix Pol
4d88422b64
No need to write config and re-position everything upon resize event
...
To set the sizes, we use the thickness and length properties, those will
also trigger the position timer.
This reduces quite a bit the amount of random changes happening when
initializing and when moving the panel around
12 years ago
Martin Klapetek
ce249a80f7
Revert "Polished the output sorting function"
...
This reverts commit a1a985c1f5 .
12 years ago
Marco Martin
5c906d7314
delay corona creation
...
the corona should be created after QCoreapplication::Exec() is called
12 years ago
Marco Martin
a970abf7c9
delay sync of the screen a bit
...
when the panel view changes screen, delay sync of the screen and syncGeometry a bit
the difference is huge (it's actually reliable now)
12 years ago
Aleix Pol
b5589fe3da
Recursively figure out the screen a containment is in
...
If a containment is in an applet, then recursively ask for the screen
until we get to an actual root containment that can tell us the screen.
CCBUG: 334500
12 years ago
Marco Martin
26ac36e27d
fire adaptToScreen only once
...
this makes the desktops and panels more deterministically
follow the primary screen
* adaptToScreen is useless per se in moveEvent, but what's worse will cause a recursion loop
* disconnect the geometry sync from the old screen
CCBUG:335710
12 years ago
Aleix Pol
a1a985c1f5
Polished the output sorting function
12 years ago
Lukáš Tinkl
fd17db12d4
i18n fixes
...
boy... there's a LOT of work here
12 years ago
Marco Martin
a7f39bdef5
friendlier window title
...
BUG:336282
12 years ago
Marco Martin
76426316b8
set a mask when no compositing
12 years ago
Marco Martin
b65eb9a635
don't try to translate QByteArray()
...
also, proper contexts for containmentactions messages
BUG:336149
12 years ago
l10n daemon script
31ad166b6b
SVN_SILENT made messages (.desktop file)
12 years ago
Marco Martin
2345ebb0b2
proper category name
12 years ago
Martin Gräßlin
5ea23e3814
Improve finding of all X11 dependencies
...
* Don't find what is not used
* Don't find things multiple times
* Use XCB::XCB and similar instead of ${XCB_XCB_LIBRARY}
REVIEW: 118659
12 years ago
Marco Martin
e9abcfe012
fix flags test
...
dismiss when clicking on desktop
12 years ago
Marco Martin
844d5b8d10
show config view only once per applet
12 years ago
Aleix Pol
61dec2e635
Move away from QDesktopWidget
...
0 screen is always primary
Use QGuiApplication::screens to count screens
12 years ago
Aleix Pol
a86411e598
Remove unused headers
12 years ago
David Edmundson
4a77c91d83
replace [] with .value()
...
accessing via [] operator will make new entries in a hash table with
null pointers.
12 years ago
Marco Martin
03c3725fdc
ignore destroyes for containments we throw away
12 years ago
Marco Martin
297f835b60
if there are conflicting containments, destroy one
...
if the config file was damaged at the point there were more than one containment
with same screen, same activity, leave only one intact
12 years ago
Marco Martin
b7de0d4138
as dialog, don't close when dialog has focus
12 years ago
Marco Martin
d2c7ee7aae
don't show dashboard in task manager
...
since people find it too weird, hide dashboard from task manager
*but* it's going to stay under the panel, and windows are still
going to be capable to cover it
BUG:332691
12 years ago