Commit Graph

30 Commits (b1569b4468b119352dbacd118cd3fcd8d59ce348)

Author SHA1 Message Date
Michail Vourlakos 6ba99f2724 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.
Michail Vourlakos ac30a9eb4f 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
Alexander Lohnau 505379ed04 Use spdx syntax for all files
Michail Vourlakos 8e9de84e01 contextmenu:expose layouts icon data
Michail Vourlakos 050b454b5a support screen changes for offline containments
Michail Vourlakos 22fa4c8fc8 rename property single active layout
--renaming active layout in single mode is a little
tricky in order to not leave any deprecated data behind.
Successful steps would be:
1. unload current single layout
2. load new single layout for the new file
3. remove deprecated layout file after new file loaded correctly
Michail Vourlakos 7c542e6246 update layouts activities when activity is removed
Michail Vourlakos 8448f36ed9 check layout valid activities
Michail Vourlakos a83d26a35b multiple:make switch funtion work properly
--when the user requests a specific layout in Multiple
Layout mode the new approach is the following. If
the layout has assigned activities this is respected
but if its activities are empty that layout is assigned
only on the current activity and any other layouts assigned
explicitly to that activity are released
Michail Vourlakos eb627dd070 multiple mode:animate properly layouts unloading
Michail Vourlakos 41c2e2b033 refactor:improve Synchronizer:swithToLayout
--the new approach is much clearer and easy to
read that the deprecated one
Michail Vourlakos d8f1f7e4b9 refactor:settings layouts controller
--the controller does not need to host its own
CentralLayouts any more. It retrieves original
data for Synchronizer, updates layouts accordingly
and sends back to Synchronizer all the updated
layouts data
Michail Vourlakos d5e83280d2 refactor:simplify layout data access
Michail Vourlakos 7393ac02eb drop currentLayoutName as signal from synchronizer
Michail Vourlakos a9774ff13f update Switch button in Layouts table
Michail Vourlakos 0ee31eead6 update kwin disabled borders infrastructure
Michail Vourlakos 3689cc406d retrieve available screen space through activityid
Michail Vourlakos 9026f931fd fixes for corona available areas calcs
Michail Vourlakos 2e120f9446 make Multiple mode work correctly
Michail Vourlakos caf9bf7b78 REFACTOR:Drop Shared Layouts infrastructure
--Move in a simpler layouts approach.
--Single Layout mode loads ONLY ONE Layout for ALL Activities
--Multiple Layouts mode loads any combination of Layouts based
on the following settings:
  -- OnAllActivities
  -- ForFreeActivities
  -- SpecificActivities
Michail Vourlakos ba178e534d add missing signals when adding new layout
Michail Vourlakos 50c419d4e4 upgrade importDefaultLayout codepaths
--use Templates::Manger in order to import
default layout on startup
Michail Vourlakos 0ff8f2b74f force plasmageometries updates for activitieschange
Michail Vourlakos 748ca87bb8 simplify code for switch button-single layout
Michail Vourlakos 00e6fbba5b update synchronizer semantics to freeactivities
Michail Vourlakos b71baccc14 fix screenForContainment in MulitpleShared mode
Michail Vourlakos 3a3823add3 Assign/Remove properly Shares from INACTIVE Centrals
Michail Vourlakos a661fbb032 refactor:drop LAYOUTSMANAGER apis moved to SYNCHER
Michail Vourlakos bea8247b84 refactor:move syncActiveShares to Synchronizer
Michail Vourlakos c4b226def5 REFACTOR:Add Synchronizer for Layouts::Manager
--Split the Layouts::Manager to Synchronizer and
Manager classes. The Synchronizer is responsible
to keep all Active layouts in sync with user
preferences