1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-26 23:21:37 +03:00
Commit Graph

1105 Commits

Author SHA1 Message Date
Michail Vourlakos
14afda3dc1 under wayland recognize plasma shell better
--the plasma desktop is now identified as the
org.kde.plasmashell window that has the size
of a QScreen->geometry()
2019-02-11 19:40:24 +02:00
Michail Vourlakos
68805c4a98 ignore latte windows from wm tracking 2019-02-11 18:40:13 +02:00
Michail Vourlakos
c8b58d5acf x11:ignore latte related window from tracking 2019-02-10 11:38:55 +02:00
Michail Vourlakos
20b76a182c add/enable option for MetaPressAndHold action
--user can now enable/disable the Meta pressAndHold
behavior that shows shortcuts badges. The new option
is located at Latte preferences.

BUG: 403840
2019-02-10 02:39:09 +02:00
Michail Vourlakos
7a95408c06 update Actions for Meta key in Preferences 2019-02-10 02:03:33 +02:00
Michail Vourlakos
6072741374 do not erase userBackgroundRoundness == -1 2019-02-09 21:54:04 +02:00
Michail Vourlakos
dfd115f380 Move Meta key option to new Actions section 2019-02-09 21:50:23 +02:00
Michail Vourlakos
e780184d0c update option for Plasma Background Roundness
--that option now supports also Automatic in order
for Latte background parts to use the Latte heuristics
in order to identify the proper roundness
2019-02-09 21:43:53 +02:00
Michail Vourlakos
031e19a8ab expose activeWindowScheme through windowTracker 2019-02-07 20:45:56 +02:00
Michail Vourlakos
9263b3e890 improvements for window tracker 2019-02-07 20:34:07 +02:00
Michail Vourlakos
1e65211277 DodgeAllWindows now uses WindowsTracker
--this way we use the same code for Dynamic
Background and DodgeAllWindows
2019-02-07 20:24:52 +02:00
Michail Vourlakos
9b9072d8f6 update qml code to follow windowTracker 2019-02-07 19:32:29 +02:00
Michail Vourlakos
78096b4181 refactor:move window functions to its own class
--all windows related functions present at visibility
manager are moved at their own class WindowsTracker
2019-02-07 19:15:25 +02:00
Michail Vourlakos
5db22022c1 refactor:cleanup globalshortcuts
--move out from globalshortcuts functions that were
related to latte views functions such as sorting,
highest priority etc. All these were moved to their
appropriate places in layout manager or layout classes
2019-02-07 09:38:01 +02:00
Michail Vourlakos
0be2048d16 improve code style 2019-02-06 18:22:31 +02:00
Tranter Madi
fede9feb2d improvements for global shortcuts
Summary: BUG: 403880

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18717
2019-02-06 18:17:32 +02:00
Michail Vourlakos
499ae015c1 fix publishing launchersSignals in qml
--fix headers in order to work correctly
2019-02-06 08:52:33 +02:00
Michail Vourlakos
c1bcd5c5ca improvements for global shortcuts based on position
BUG: 403880
2019-02-03 18:50:08 +02:00
Michail Vourlakos
cf93b7516d improve global shortcuts options
--the user can disable "global shortcuts based
on position" by disabling the global shortcuts
for the first two latte items
--improve texts readability

BUG: 403880
2019-02-03 09:55:01 +02:00
Michail Vourlakos
50dc45c61f fix headers references for classes 2019-02-03 01:48:37 +02:00
Michail Vourlakos
d53c2cbea3 fix indents / text appearance 2019-02-03 01:36:39 +02:00
Michail Vourlakos
668c2ff139 dont close view settings when Alternatives shown
--this way the user can also choose different Alternatives
without having false applets replacements or Latte failing

BUG: 403658
2019-02-03 01:31:52 +02:00
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