1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-21 14:03:39 +03:00

1083 Commits

Author SHA1 Message Date
Michail Vourlakos
69b49d42dd the user must enable shortcuts based on position
--the option is now present to Behavior page in order
for the user to enable global shortcuts based on position.
2019-02-03 00:32:00 +02:00
Michail Vourlakos
b15bd24218 refactor:move shortcutsEngine to its own class
--in that way all environment related shortcuts
management (e.g. plasma related shortcuts) is moved
in its own class
2019-02-03 00:10:07 +02:00
Michail Vourlakos
9cd851faea show only one Meta badge
--more fixes for globalshortcuts
2019-02-02 20:37:34 +02:00
Michail Vourlakos
66b2e4bd9c fixes and improvements for globalshortcuts 2019-02-02 20:19:20 +02:00
Michail Vourlakos
7740649c85 show all views that contain shortcuts 2019-02-02 19:30:56 +02:00
Michail Vourlakos
43acc40ac3 improve names in global shortcuts 2019-02-02 18:46:48 +02:00
Michail Vourlakos
fef791d8e1 improve names for globalshortcuts qml calls 2019-02-02 18:34:40 +02:00
Michail Vourlakos
aa2b607fb8 refactor:improve naming in globalshortcuts 2019-02-02 18:16:17 +02:00
Michail Vourlakos
898ab9f9e0 improve hideViewsSlot for globalshortcuts 2019-02-02 18:06:16 +02:00
Michail Vourlakos
aae2ecc78b refactor:update names in globalshortcuts
--use Latte View as a reference instead of the
deprecated Latte Dock
2019-02-02 18:01:52 +02:00
Michail Vourlakos
608275cc6b refactor:move modifiers code at its own class 2019-02-02 17:46:35 +02:00
Michail Vourlakos
f2f8f0eb8b improvements for Meta behavior
--global shortcuts now tracks modifiers changes
and trys to do the best for the user.
1. When Meta is pressed and holded latte views are
shown
2. When Meta is clicked but without been holded then
the Application Launcher code path is preferred
3. Activating Latte entries does not follow the
Meta pressedAndHolded code path
4. Pressing any other modifier except Meta cancels the
Meta pressed code path

BUG: 403734
2019-02-01 20:19:58 +02:00
Michail Vourlakos
6008f080bd remove x11 hack for global shortcuts
--enhance modifiers tracking at globalshortcuts
class
2019-02-01 20:01:00 +02:00
Michail Vourlakos
6f1c66f7d2 Display shortcut badges while holding Super
Summary:
Use `KModifierKeyInfo` to display shortcut badges while holding Super

BUG: 401768

Test Plan:
Just playing with it.
I still don't understand the `GlobalShortcut` class very well, correct me if I make any mistake.

Reviewers: #latte_dock, mvourlakos

Reviewed By: #latte_dock, mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18620
2019-02-01 19:14:18 +02:00
Michail Vourlakos
f31df4ee71 show plasma shortcuts for applets
--when shortcuts badges are shown then the
plasma assigned shortcuts are preferred to
be presented to the user
2019-01-30 20:04:00 +02:00
Michail Vourlakos
a2569664b3 Latte is now informed for applets shortcuts
--meaning that Latte now has provide information
for applets when these applets have shortcuts been set
by plasma infrastructure.
2019-01-30 19:52:32 +02:00
Michail Vourlakos
e45ab91d65 heal layout file from deprecated applets
--there are deprecated applets that are not
used, I dont know under which circumstances
this ghost applet configurations are created,
they are shown more commonly under plasma
systrays
2019-01-27 20:21:37 +02:00
Michail Vourlakos
46dd59b65a cleanup applet shortcuts on startup
--when Latte crashes the global shortcuts from applets
remain untouched in kglobalshortcutsrc file. That fact
based on the Latte architecture that can alter applet
ids during layout loading can break the global shortcuts
experience by creating multiple global shortcuts records
for the same applet and by disabling some shortcuts because
these shortcuts are already enabled for ghost applets of
the crashed layout. This patch fixes this by removing all
applet global shortcuts during startup. Applet global shortcuts
are already saved in the layout file based on the current
plasma architecture, that fact simplifies things a lot.

BUG: 401184
2019-01-27 16:06:05 +02:00
Michail Vourlakos
62f396e86f add shortcuts for layout 2019-01-27 13:42:19 +02:00
Pino Toscano
72341142a2 fix project_license in appstream file
use the right SPDX tag
2019-01-27 08:57:23 +01:00
Michail Vourlakos
62033157f6 unblock View after AppLaucher shortcut trigger
--the Application Launcher triggering through global
shortcuts (codepath) was missing a release for
visibilitymanager in order to work correctly after
the applet trigerring.

BUG: 403471
2019-01-23 23:02:42 +02:00
Michail Vourlakos
5416b1c0ef REFACTOR:move layout to its own folder 2019-01-22 18:17:55 +02:00
Michail Vourlakos
130bb32c8e move view config window for advanced mode
--there were cases for small screen resolutions
that because the view settings windows did not
change its height, it was not changing its placement
to the side of the screen
2019-01-20 20:36:35 +02:00
Michail Vourlakos
990b8868cd guard m_parent caller at secconfigview
BUG: 403406
2019-01-19 22:00:27 +02:00
Michail Vourlakos
ad3b5abeaf enhance background solidness when touching window
--When the user has chosen a solid background when
there are windows touching the Latte panel then in
such case windows that are touching the panel not
just at the edge but at the at any point of the latte
panel are also considered as touching windows
--The "snapped" term that was used before in the
visibilitymanager was changed to "touching"
2019-01-19 18:55:19 +02:00
Michail Vourlakos
42f6bef738 dont close settings windows with no reason
--there were cases that the focusOutEvent from
secondary config window was sent before the
primary config window has become active. In that
case all config windows were closing with no
reason

BUG: 402776
2019-01-19 17:22:19 +02:00
Michail Vourlakos
582b59dae2 enable/disable colorizing from user
--when the user has enabled the monochrome colorizing
in that case in applet options there is now a new option
in order for the user to choose if wants or not that
applet to be colorized. Such an example are colorful
applets that lose their proper appearance through
monochrome option.
2019-01-15 21:17:38 +02:00
Michail Vourlakos
5c28b2194a Wait forever until the lock file can be locked
Summary:
- `timeout = 3000` is a bit short on some computer. Use `timeout = -1` will work for any case.

BUG: 401041

Test Plan: BUG: 401041 is fixed on my computer.

Reviewers: mvourlakos, #latte_dock

Reviewed By: mvourlakos

Tags: #latte_dock, #plasma

Differential Revision: https://phabricator.kde.org/D18258
2019-01-15 21:16:52 +02:00
Steffen Coenen
56cfb42734 Fix autohide behaviour after dragging a panel
Summary:
Currently, when dragging a window from the panel to move it, it breaks the autohide behaviour of active docks/panels. This change imitates a release event on X11 to circumvent these problems.

BUG: 403104

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #latte_dock, #plasma

Differential Revision: https://phabricator.kde.org/D18194
2019-01-14 18:50:10 +02:00
Michail Vourlakos
cf6641a089 dont unblock for !editMode
--when containment changes status it was
unblocking the visibility manager. This patch
fixes that situation and the blocker remains
under editMode. This way the dock can not be
hidden when it is in editMode.
2019-01-11 20:09:46 +02:00
Michail Vourlakos
daa4d0f003 recreate view only when is really needed
--recreate view only when the window
ByPass flag must be really changed
2019-01-11 20:08:33 +02:00
Michail Vourlakos
8c21ca9072 create local autostart folder if is missing
BUG: 402934
2019-01-06 20:54:48 +02:00
Yuri Chornoivan
8d7110f761 Fix minor typos
Summary: Fix minor typos in messages and comments

Test Plan: No major changes to prevent compilation and usage

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17894
2019-01-02 19:37:43 +02:00
Michail Vourlakos
63e9fbc99f dont block mouse events with no reason
BUG: 402572
2018-12-29 20:20:36 +02:00
Michail Vourlakos
e19cbd46f6 delete secondary window when no needed
BUG: 402627
2018-12-28 17:11:43 +02:00
Michail Vourlakos
ca5ea55816 disable debug message 2018-12-28 16:42:23 +02:00
l10n daemon script
5b5aec055d GIT_SILENT made messages (after extraction) 2018-12-28 02:44:54 +01:00
Michail Vourlakos
5c8a2bb380 reorganize settings in view settings window 2018-12-27 18:59:20 +02:00
Michail Vourlakos
aeb7877546 improve ExpertSettings location 2018-12-27 12:15:25 +02:00
Michail Vourlakos
5d6d1730f2 improve syncGeometry at settings windows 2018-12-26 18:35:58 +02:00
Michail Vourlakos
79ccc37e31 delay latte view showing for Meta global shortcut 2018-12-26 17:53:17 +02:00
Michail Vourlakos
32a34d7c47 show latte view for all cases of Meta+A 2018-12-26 17:33:59 +02:00
Michail Vourlakos
40bd5a83e2 update settings to new complexity level 2018-12-26 00:34:45 +02:00
Michail Vourlakos
7d66434244 introduce complexity for view settings 2018-12-25 23:57:41 +02:00
Michail Vourlakos
5e09a41e99 refactor:remove no needed colorizer signals
--the new infrastructure to track background
brightness does not need communication between
universalsettings and view colorizer enabler
2018-12-25 20:33:47 +02:00
Michail Vourlakos
b418923c03 move from luminas to brightness
--the luminas functions didnt work well
for all cases. Latte is now using brightness
functions as described at:

   https://www.w3.org/TR/AERT/#color-contrast

this patch fixes all cases mentioned in the bug
that Latte contrast identification did not work well

BUG: 402115
2018-12-25 20:20:06 +02:00
Michail Vourlakos
418799ed30 fix crashes from latteView recreation code
--in order to update window manager flags properly
in some cases a dock recreation is needed. But that
dock recreation when takes place when the user choses
to move its panel between different screens (that recreation
shouldnt be needed) in such case it creates crashes
2018-12-25 19:01:19 +02:00
Michail Vourlakos
095048223a refactor:move backgroundtracker under liblatte 2018-12-25 13:03:20 +02:00
Michail Vourlakos
e81ef199b3 refactor:drop visibilitymanager private class 2018-12-20 18:59:38 +02:00
Michail Vourlakos
3b8c52cc59 refactor:move lattepackage to simpler directory 2018-12-13 21:01:51 +02:00