Commit Graph

143 Commits (132410d84892e9e002361d1e325189a4667dec34)

Author SHA1 Message Date
Michail Vourlakos 132410d848 MultipleLayouts availableScreenRegion
--it is used to position correctly the separate dock/panels
in different activities
7 years ago
Michail Vourlakos 4280c14acd many improvements for MultipleLayouts case 7 years ago
Michail Vourlakos bc91aefd89 add more MultipleLayouts code
--move code from dockCorona to layoutManager
--add more code related to MultipleLayouts
7 years ago
Michail Vourlakos e3a3cb5a52 re-use copyDock code to make it more generic
--fix crash from containments deletion when closing corona
--reuse copyDock code in order to prepare it for
loading multiple layouts at the same time
7 years ago
Michail Vourlakos f617a9178e support multiple active layouts in layoutmanager 7 years ago
Michail Vourlakos f81433be8b try to link containments to layouts 7 years ago
Michail Vourlakos dd8c8271b6 IMPORTANT: move logic from corona to layout
--refactoring code for #808...
Latte gets prepared for multiple layouts running
at the same time.
7 years ago
Michail Vourlakos a01b7f100b move copyDock from corona to Layout 7 years ago
Michail Vourlakos ef48a70bd9 improve semantics 7 years ago
Michail Vourlakos 2a911d34b8 improve semantics for availableScreenRect
--improve the function to calculate the availableScreenRect
of a specific screen. Now the function accepts two arguments
specifing which visibility modes and locations(edges) are
going to be taken into account to calculate the
availableScreenRect.
7 years ago
Michail Vourlakos d86fdfd2ff fix #810,support smart/dynamic background
the dynamic background feature is enhanced and
becomes smarter. It understands snapped windows, windows
that touch the panel edge etc. The criteria in
order for the background to become solid are:
   - any active window that is touching the panel
edge (that includes krunner)
   - any inactive window that is snapped and touches
the panel edge (concerning its geometry: quarter-snapped or half-snapped)
   - maximized windows
   - an inactive window but keepAbove is touching
the panel edge (this catches also the yakuake case)
   - panel popups
7 years ago
Michail Vourlakos 9f16ef5d4e load specific layout on startup from command line 7 years ago
Michail Vourlakos 0615dcf084 add --default-layout option for command line
--this option enables the user to load the default
layout from start.
7 years ago
Michail Vourlakos 3679c1c0cf load the default layout when cant find previous
--load the default layout when cant find the previous
layout for some reason. This means that something went
really wrong actually and the previous stored layout
doesnt exist anymore, at least with the same name
ised.
7 years ago
Michail Vourlakos 91ff26882e fix #784,ignore top/bottom auto-hide panels
--a bottom or top auto-hide panel is not considered
in the calculations for the availableScreenRegion
7 years ago
Michail Vourlakos 2e3139239e fix clang warnings
--improve readability of the build process when
using clang by fixing small things to not show
some warnings
7 years ago
Yuri Chornoivan fd1ae873c4 Fix minor typos 8 years ago
Michail Vourlakos 9a72f394ee fix crash,when alternatives shown + change layouts 8 years ago
Michail Vourlakos f2ab6cbc9c block hiding when alternatives is shown 8 years ago
Michail Vourlakos 7d4344637c fix #635,never add primary dock over an explicit
--the addDock code now checks if at the primary screen
in the specific edge there is already assigned an explicit
dock. In that case it doesnt add that primary dock
8 years ago
Michail Vourlakos db0d084ed2 include all tasks plasmoids in heurestics
--during startup Latte checks if a tasks plasmoid
is going to be present (because of multi-screen settings).
Now these checks are also considering the case of
plasma taskmanagers
8 years ago
Michail Vourlakos a1fac1a29c remove deprecated code 8 years ago
Michail Vourlakos 7b8bb2fc73 fix copy dock method loading part
-- copy dock method wasnt using correctly the signals
and the methods from containments during first loading
the new copied containments. That could create crashes
if the user was trying to remove a copied dock directly
after used the copy method
8 years ago
Michail Vourlakos cc94677817 remove deprecated code 8 years ago
Michail Vourlakos 3f90c61d53 include plasma taskmanagers in startup identify
--Latte when loading a layout tries to identify if based
on the docks settings there will be at least one dock
containing a tasks plasmoid. This code was extended in order
to identify also the plasma taskmanagers. One more improvement
is that this code now is executed also when dynamically
changing layouts
8 years ago
Michail Vourlakos 68a5223b47 fix #616,use unique ids for applets and containme 8 years ago
Michail Vourlakos ecf67a2a9d dynamic changing to layouts based on activities 8 years ago
Michail Vourlakos 9f16814780 remove deprecated globalsettings 8 years ago
Michail Vourlakos 747fe2fd02 expose a QMultiComboBox for activities in layouts 8 years ago
Michail Vourlakos 5b10280500 expose activities properties through corona 8 years ago
Michail Vourlakos 02ec39fda2 fix a crash, add dockviews deletion in unload
--during changing layouts there were cases that Latte
would crash because between deleting containment and
triggering the event to delete the dockview, there was
a race condition. The dockview wasnt deleted and as
a consequence the libtaskmanager or kwindowsystem were
forwarding events to them
8 years ago
Michail Vourlakos f2de335d35 move functionality to new architecture
--add functionality for layoutManager
--add widgets action and alternative layout action to
layoutManager
--remove more functionality that belongs to globalSettings
8 years ago
Michail Vourlakos 14e61b3a59 update currentLayout,create Alternative if !exists 8 years ago
Michail Vourlakos 0889d2224d cleanup unload() corona function 8 years ago
Michail Vourlakos f30c9056b3 support Alternative switching for new architecture 8 years ago
Michail Vourlakos b15e919bab remove all the session functionality
--the session functionality is not removed only from
globalsettings class which is just waiting to be removed
tottaly when its functionality moves to the new classes
8 years ago
Michail Vourlakos 091295126d support loading for the new architecture 8 years ago
Michail Vourlakos db08a09bbf Importer importes the containments correctly 8 years ago
Michail Vourlakos 1a9ea88bc8 add LayoutSettings class and expose classes 8 years ago
Michail Vourlakos 06ddef8506 cnew architectures classes,add missing licenses 8 years ago
Michail Vourlakos 720a5e5123 update main layout config files 2s after loading
--we update the main layout config files 2secs after
the main layout loading
8 years ago
Michail Vourlakos 67d1f1d4f9 fix #565,full dynamic reload the layout
--the new layout is loaded without closing
Latte and with properly loading globalSettings
and screen from the layout file. The layout
new files are updated when Latte is closing
8 years ago
Michail Vourlakos b417ae52c3 support dynamic layouts loading 8 years ago
Michail Vourlakos c72f7f4531 fix #573,improve the primary docks behavior
--users reported that when activating an external screen
as primary and at the same time disabling the original
screen e.g. the laptop one, latte wasnt showing docks at
all. This could also occur on startup. This commit
fixes this and improves more the multi-screen code in
various corner cases
8 years ago
Johan Smith Agudelo Rodriguez 1e8fc4a739 Wait for ContainmentView destruction 8 years ago
Johan Smith Agudelo Rodriguez ae3c856346 keeping compatibility with gcc 4.8 8 years ago
Michail Vourlakos 0bd90b8fd2 improve recreate dock implementation
--the new implementation possibly fixes two crashes
that could occur occasionaly. First it is ensured
that the new dock in created after the old one has been
removed. We also use directly the containment instead
of using a reference for it which could create a crash
in some cases. One more fix, setting dock visible to false
had no reason as long as it is going to be deleted either
way.
8 years ago
Michail Vourlakos 69c28eff7a fix #537,reenable show() on dock creation
--this code has been checked to not break both
wayland with plasma 5.10 and x11
8 years ago
Michail Vourlakos 5e1d851888 delay the recreation of a dock
--when recreating a dock it might be a good idea
to delay a bit in order to give to the config
window the time to delete itself
8 years ago
Johan Smith Agudelo Rodriguez a6bcc53aad Cleaning up a bit before implementing always visible 8 years ago