Commit Graph

40 Commits (f955c6a40c00fb06754223cbdc16ba40e379ca59)

Author SHA1 Message Date
Michail Vourlakos f955c6a40c improve reconsiderScreens code for multi-screens
--try to make screens assignment and window geometry
more consistent. There are three variables in a dock
window for its screen and positioning to be accurate,
screen(), m_screenToFollow, m_screenToFollowId

BUG: 399456
6 years ago
Michail Vourlakos 64a40429a4 option/define who will be used at global shortcuts
--add an option in Tweaks page in order for the user
to define which dock/panel will have the highest priority
for global shortcuts activation. This option can be
used is per layout basis. Each layout can have its own
high priority dock/panel for Latte unified shortcuts.

BUG: 398914
6 years ago
Michail Vourlakos 09fe5e385b on startup explicit dock faulty moving onPrimary
--multi-screen fix for explicit docks. There were
cases that explicit docks during startup were
moving to onprimary screen even though they shouldnt
based on the new multi-screens implementation.
Bug was tracked down at a faulty series of signals
that were overwriting dockView config values
to default values and that was creating the fault.
-- one more fix for multi-screens, a missing return
statement in case an explicit dock is called and its
edge at that specific screen is occuppied by an
onPrimary one.

BUG: 398219
FIXED-IN: 0.8.1
7 years ago
Yuri Chornoivan 7323068f36 Fix minor EBN issues 7 years ago
Michail Vourlakos 87094a6fe7 dont draw panel shadows when theme doesnot provide
when the plasma theme was not supporting shadows then
Latte was double drawing the panel background when
the user has chosen that wanted shadows

BUG: 397980
FIXED-IN: 0.8.1
7 years ago
Michail Vourlakos b2f1f98b57 remove deprecated code from old multi-screens arch
--Latte will no longer try to be too smart concerning
the multi-screens behavior. At the old implementation
Latte wouldnt let you reach at a state that you dont
have a tasks plasmoid available. Such a case could be
when the user moves a dock from primary to explicit
screen and disables the screen afterwards. That case
should be thought better in the future in order to be
identified and handled properly without making the
code unnecessary complex. Such an example could be by
identifing the case and asking the user for actions.
7 years ago
Michail Vourlakos 78b41eff91 use current transparency to update effects
--the background contrast effect should be applied
only when the dock/panel is visually solid otherwise
it may block the transparency settings

BUG: 397431
FIXED-IN: v0.8.1
7 years ago
Michail Vourlakos 03b469eff5 IMPORTANT: Update multi-screen codepage!!!
--after v0.8 release many issues with multi-architecture
were identified. An alternative approach was needed
in order for Latte to get a more user-predictable state.
In new approach:
--onPrimary docks have always higher value
and should be shown, this is also like how plasma is
moving its panels.
--explicit docks are removed if their edge in their screen
is occupied by an onPrimary dock
--be stupid smart in order to check if docks contain
tasks and try to not remove them based on screen-changes
is removed! Over-Complicated code that doesnt help
in maintainability...

one of the issues was reported at following bug report...

BUG: 396806
7 years ago
Michail Vourlakos 393342ad9e revert one fix for blur effect
--limiting the qregion returned for blur effect
it created in some cases broken visuals concerning
the bluring of the background
7 years ago
Michail Vourlakos 7a9c0504db improve effects area calculations
--blur effect is costly this way we limit effects area
to respect the windows boundaries and at cases that
the QRegion returns too main QRects to just use the main
effects rectangle
--this fix possibly fixes the crash related to Blur effect and
moving the dock to another edge bug:396040
7 years ago
Michail Vourlakos 6efeaa7d51 update code to new astyle conditions 7 years ago
Michail Vourlakos 745b9ea075 dont apply too early blur effect
dont delay the corona destruction under wayland
because that creates a crash with kwin effects

BUG: 392890
7 years ago
Michail Vourlakos f287d37ac0 add a dock geometry validator
-- under X11 it was identified that windows
many times especially under screen changes
dont end up at the correct position and size.
This vailidator(timer) will enforce repositionings
and resizes every 500ms if the window hasnt end up
to correct values and until this is achieved.
7 years ago
Michail Vourlakos ba2acef2c1 fix warning 7 years ago
Michail Vourlakos bd211c9d29 disable blur under wayland 7 years ago
Michail Vourlakos 83bad3374e expose screen Tracker interval value
--different hardware can have different delays
in order to inform for screen changes. The tracker
(an internal timer that is) informs Latte after
a specific interval in order to track these changes
and respond accordingly.
7 years ago
Michail Vourlakos 6163cecb6b [wayland] add a protection for updateEffects
--Blur effect under Plasma 5.12(wayland) creates
many crashes. As it appears for 5.13 this has been
greatly improved.
7 years ago
Michail Vourlakos 9e8406c419 reenable blur for wayland
--as it appears the crash and the support
for blur has been fixed for Plasma 5.13
7 years ago
Michail Vourlakos 1f0acbc3b5 Support KWin Edges mechanism
--by default now Latte supports the KWin Edges mechanism,
this way the following issues are fixed:
fix #935, fix #721, fix #687, fix #512, fix #514
--improve dock behavior when the user user touch
gestures
--fix #144, support KWin bright placeholders
--this behavior can be disabled if the user prefers
the old one from the Tweaks page
--in !compositing no more is shown a 1px line at
the screen edge when the dock is hidden
--support KWin Edges in Multiple Layouts state under
X11
7 years ago
Michail Vourlakos eb3feb4a4e fix #934,change quit button to close button
--exhausted to discuss this so often so in the
end it may be my perspective wrong. Quit button
in dock settings window changed to Close button
and the Quit option moved to menu bar of the
general Latte settings window with shortcut
Ctrl+Q
7 years ago
Scarlett Clark 71d339516e Minor spelling corrections.
Closes: https://phabricator.kde.org/D11101
7 years ago
Michail Vourlakos b8321fb829 fix #905,smart colorize transparent panels
--enhanche the dynamic background feature and
in ordre to improve contrast with the underlying
background Latte now calculates the luminosity of the area
underneath the panel and based on that chooses the
best color to create contrast. The colors are chosen
only between textColor and backgroundColor.
7 years ago
Michail Vourlakos cb88d134f4 fix #889,dont crash on applcation exit
--the wayland interface couldnt orchestrate correctly
with the corona and the application exit. The whole
architecture changed and the window manager now is
provided by corona and corona is also responsible to
keep only one instance of it and close on exit.
7 years ago
Michail Vourlakos b4b68e5bb1 add wayland debug messages 7 years ago
Michail Vourlakos 0a1488b643 update wayland code based on plasma 7 years ago
Michail Vourlakos d6740bb378 fixes for wayland 7 years ago
Michail Vourlakos 1ff161a030 updates and improvements at applets glob.shortcuts 7 years ago
Michail Vourlakos 1e57260c5f asynchronous calls for quiting application
--this gives the time for docks to close and also
to not create any rare crashes because qml settings
window calls this code path from its Quit button.
7 years ago
Michail Vourlakos d2495b3350 apply layout's activities on config showing 7 years ago
Michail Vourlakos 1a3cb13094 use same font metrics for qml and c++ code 7 years ago
Michail Vourlakos c2e72b7f67 do not update struts during location change 7 years ago
Michail Vourlakos 61c28978e6 publish internal ediMode to dock
--use internal edit mode to wm's visibilitymanager.
More specific use it in AlwaysVisible mode in order
to not publish the new struts because the animations
have ended.
7 years ago
Michail Vourlakos a1c672a864 create independent secondary config window 7 years ago
Michail Vourlakos cbfc7da27b dont show two configuration windows(systrays) 7 years ago
Michail Vourlakos 43cc5da6fa complete containmentactions support
--this way the Layouts menu in now accesible
even from plasma taskmanagers. The codebase is also
the same for every component that is showing its
menus.
7 years ago
Michail Vourlakos f9afa1bc1f move completely to containmentactions 7 years ago
Michail Vourlakos d3756e0ce1 add containmentactions 7 years ago
Michail Vourlakos 4b07ae7457 move dock contextmenu to dockmenumanager 7 years ago
Michail Vourlakos afe9a2e09d rename latteconfigdialog to settingsdialog 7 years ago
Michail Vourlakos acb77c6cd4 update header files and move files around 7 years ago