Commit Graph

172 Commits (4f93251d8c635c6150483ecb321eb276f34d4280)

Author SHA1 Message Date
Ömer Fadıl Usta e49404db7c Remove oldcode to sync with new KF5_MIN_VERSION ( 5.82 )
Now we based on 5.82 as KF5_MIN_VERSION so time to make a spring cleaning
3 years ago
Michail Vourlakos b1d57051c2 wayland:support Plasma primaryscreen protocol
--use ScreenPool as reference for primary screen.
The new code uses PrimaryOutputWatcher class from
Plasma Shell in order to keep track of primary
screen at all cases.

BUG:448418
FIXED-IN:0.11.0
3 years ago
Michail Vourlakos 21d8728498 tasks:fix launchers behavior in different applets
BUG:450986
3 years ago
Michail Vourlakos c7bb46b217 introduce new MultipleLayouts mechanism
--the new approach does not load/unload layouts
during startup/exit. When the user loads layouts
in multiple layouts mode the layouts are inserted
and when exit they still remain in the hidden
multiple layouts file. These layouts present in the
multiple layouts file from now are called preloaded
layouts.
--the new approach fixes also the wayland exit
issue and in general the message for Latte not
closed properly has been totally dropped.

BUG:448702
BUG:446205
3 years ago
Michail Vourlakos 60095bba3b fix #96,FEATURE:AllScreens and AllSecondaryScreens
--This is a HUGE FEATURE and so important for multi-screens
users. It is introduced as one single commit because it
reimplements plenty of infrastructure changes and it will
be easier to identify newly introduced bugs.
--Users can now choose for their docks and panels to belong
at various screen groups. The first two screen groups introduced
are AllScreens and AllSecondayScreens. In the future it might
be possible to provide CustomScreensGroup that the user will
be able to define specific screens in which a dock or panel
should be always present.
--Current solution specifies an Original dock or panel and clones/copies
itself automatically to other screens. So docks and panels in other screens
are just real docks and panels that reference themselves to original
docks and panels.
--Clones are destroyed during layout startup and are automaticaly
recreated. It is suggested to export your layouts through the
official Layouts Editor in order to share them because in that case
clones are not included in the new generated layout file. If in any
case you do not this and you share your layout with any previous
versions then your clones will just appear as separate docks and
panels that belong to specific screens.
--Automatic syncing was introduced in order to keep up-to-date
the configuration of Original docks and panels with their referenced
Clones.
--Automatic syncing currently works for all docks and panels settings,
for all normal applets configurations and for all subcontaiments
configuration such as systrays.
--Automatic syncing does not work for applets inside subcontainments
such as Group Plasmoid. In such case it is suggested to configure
your applets inside your Group Plasmoid in the original dock or panel
and afterwards to trigger a recreation for the relevant clones
--Manual recreation of clones is easily possible by just choosing
the dock or panel to be OnPrimary or OnSpecificScreen and rechoosing
afterwards the AllScreensGroup or AllSecondaryScreensGroup
3 years ago
Michail Vourlakos fb4cfaa399 view:copy properly screen edge margin
Consider -1 as screen edge margin default value
and not zero. This way when duplicating a default
dock AllBorders are not enabled in the new dock.

BUG:446903
FIXED-IN:0.10.5
3 years ago
Michail Vourlakos 24fc1e8709 singlelayout:fix borderless activation/deactivation 3 years ago
Michail Vourlakos bce0d74e5f multiple:do not update borderless when no needed
--when activating activities under multiple layouts
the currentActivityChanged() signal is sent from
KActivities before the runningActivitiesChanged() and
as such we can end in considering borderless maximized
window flag before all appropriate layouts have been enabled.
The patch adds a timer and delays borderlessMaximized consideration
when currentActivityChanged signal is received.
3 years ago
Michail Vourlakos e88aaf27a9 cmd:support "add-dock" through command line
-- "add-dock" option now works even when application
is not running and the user is executing it through
command line.

BUG: 446526
FIXED-IN: 0.10.5
3 years ago
Michail Vourlakos 3067b6d51c autostart: do not overwrite startup file 3 years ago
Michail Vourlakos e0bfff4c48 get ready for Plasma LookNFeel packages
--introduce enable/disableAutostart from command line
--accept import-layout from command line when latte is already running
--introduce --suggested-layout-name to be used with
  import-layout in order to provide a preferred layout name
  e.g. latte-dock --import-layout /blah/blah/mywhat.layout.latte
       --suggested-layout-name MyAwesomeLayout
--dbus:introduce "setAutostart" function
--dbus:introduce "importLayoutFile" function

BUG:446249
FIXED-IN:0.10.5
3 years ago
Michail Vourlakos 27062087ea startup:avoid kwin reconfiguring with no reason
--during startup borderless maximized windows should not be
enabled or not as long as kwin has already been configured
in the proper way. This way we make Latte startup lighter
because KWin is not reconfiguring when not needed.
3 years ago
Michail Vourlakos f7032f7f19 crash:dont show settings dialog in early startup
--showing settings dialog too early before layout(s)
are loaded can possible create crashes. Settings dialog
is considering that everything is in place and ready
to be used.

BUG:440731
4 years ago
Michail Vourlakos c3c2c8a7f1 wayland:request all windows properties properly 4 years ago
Michail Vourlakos 7eff55b793 wayland:multiple layouts load properly on activities 4 years ago
Alexander Lohnau 505379ed04 Use spdx syntax for all files 4 years ago
Ömer Fadıl Usta 03e9c6c954 Reorder inits to Fix wrong initialize problem and fixes for string compares 4 years ago
Michail Vourlakos 21b187b94c sort layouts in context menu based on their names 4 years ago
Ömer Fadıl Usta e8cc5603ac Portaway from obsolete qsort
qstringlist's own sort method uses std::sort
void QtPrivate::QStringList_sort(QStringList *that, Qt::CaseSensitivity cs)
{
    if (cs == Qt::CaseSensitive)
        std::sort(that->begin(), that->end());
    else
        std::sort(that->begin(), that->end(), CaseInsensitiveLessThan());
}
4 years ago
Michail Vourlakos 01e60e0aab update layout viewsScreens function
--use Layout::views() function to implement this
4 years ago
Michail Vourlakos 8e9de84e01 contextmenu:expose layouts icon data 4 years ago
Michail Vourlakos cbd8d5d88c layoutsmanager:take responsibility for layout icons 4 years ago
Michail Vourlakos bc475da115 fixes for plural translation strings 4 years ago
Michail Vourlakos 274ad37685 viewsdialog:support export as template action 4 years ago
Michail Vourlakos 4f0830eb8a fix orphanesubs warning for active layouts 4 years ago
Michail Vourlakos 321a6ba512 protect from plural translations crashes 4 years ago
Michail Vourlakos 7fa05eaea3 fix plural for translated strings 4 years ago
Michail Vourlakos ed3352b807 fix translation strings parameters counting 4 years ago
Michail Vourlakos ce62b31901 drop .arg() from translation strings 4 years ago
Michail Vourlakos 6234253342 viewdialog:provide nice Repair for #W201 4 years ago
Michail Vourlakos 837842f1f1 layout:add function to remove orphan subcontainment 4 years ago
Michail Vourlakos 44d4c5a4de viewsdialog:report for error #107
--orphaned pseudo applets lost connection with their
subcontainment
4 years ago
Michail Vourlakos faa79dfc75 use KMessageBox for removing indicator confirmation 4 years ago
Michail Vourlakos e1cf44240e use KMessageBox for Multiple Layout warning 4 years ago
Michail Vourlakos c5c61dffe3 storage:use knownErrors both for errors and warns 4 years ago
Michail Vourlakos c33623a809 storage:provide orphaned parent applet checker 4 years ago
Michail Vourlakos ceda380e49 improve errors semantics 4 years ago
Michail Vourlakos a5d289eb89 storage errors fix adding error data 4 years ago
Michail Vourlakos 27d9f209ea layout:drop isBroken in favor of errors/warnings 4 years ago
Michail Vourlakos 51044ce630 layout:provide errors/warnings structured nicely 4 years ago
Michail Vourlakos 2be67b11c5 storage:provide appletAndContainmentSameId checker 4 years ago
Michail Vourlakos c74f5cf7fc appletdata:provide storageId
--in case any consumer wants to use that info
4 years ago
Michail Vourlakos 11aa2abd2e storage provide differentAppletsSameId checker 4 years ago
Michail Vourlakos 849e66fd80 storage:provide orphaned subcontainments checker 4 years ago
Michail Vourlakos a2bf28054f add known errors in layouts storage 4 years ago
Michail Vourlakos 18233dc6ee viewsdialog:support moving between active layouts 4 years ago
Michail Vourlakos 5fd18ee0af add LayoutsManager::moveView function
--moveView for active layouts under MultipleLayouts
becomes more generic and can be used either from
onscreens and offscreens views
4 years ago
Michail Vourlakos 447f0e549c do not delay exit at all cases
--in the past a delay was needed in order for
docks panels to slide out nicely, this is not
needed any more because kwin takes responsibility
for this.
4 years ago
Michail Vourlakos a14312b227 Storage:sync containment config before storedView 4 years ago
Michail Vourlakos 1afe12ad71 fix how not-installed plugins are identified 4 years ago