1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-10 04:58:16 +03:00

190 Commits

Author SHA1 Message Date
Ömer Fadıl Usta
e49404db7c Remove oldcode to sync with new KF5_MIN_VERSION ( 5.82 )
Now we based on 5.82 as KF5_MIN_VERSION so time to make a spring cleaning
2022-05-10 09:29:40 +00:00
Ömer Fadıl Usta
3c5b474a97 Make spring cleaning to match our KF5_MIN_VERSION
Since we already require 5.71.0 as min version of KF , it is meaning less to keep old checks for lower versions in code, this will make code more and more cleaner

Since all plasma using cpp17 and we recently switch to cpp14 think that it may be better to keep it more up-to-date and match with plasma
2022-01-09 12:21:55 +00:00
Michail Vourlakos
5ecb8ab767 window belongs in a screen whenever touching it
--whenever a window geometry is touching a screen geometry
is now considered that this window belongs to that screen.
This way a window could look active to more that one screens.
This way all last active window considerations now work
properly even when the window center is out of screen.
2021-12-27 23:31:08 +02:00
Michail Vourlakos
4e28392c3e fix broken initialization of windows tracking
--some improvements of 0.10.5 broke the windows tracking
initialization. This is a fix in order for windows tracking
to be enabled/disabled properly per dock/panel during
startup phase.
2021-12-17 11:59:05 +02:00
Michail Vourlakos
a033a20062 more startup improvements
--visibility: simplify and improve code
for restoring and saving values
--enable visibility mode early on the startup
sequence
--enable windows tracking after startup phase
has ended
--windows tracking respect also view geometry
changes and not only window changes from the
desktop environment
2021-12-15 21:32:23 +02:00
Michail Vourlakos
de61ff48ad enable strtus fro all alternative DEs 2021-12-14 17:20:57 +02:00
Michail Vourlakos
229f92b2c8 ignore window states when kwin is showing desktop
--this way every dock/panel and also applets that
are using the LastActiveWindow API behave like there
is no shown window
2021-12-07 20:58:26 +02:00
Michail Vourlakos
199effaf2b wayland:hide centered black line for alwaysvisible
--drop RasterWindow for always visible ghost windows and
use a fully transparent QQuickView

BUG:444419
FIXED-IN:0.10.4
2021-11-11 14:00:48 +02:00
Michail Vourlakos
90405fef8a update lastactivewindow based on changed signal 2021-10-31 19:11:47 +02:00
Michail Vourlakos
956b589764 wm:init vdswraparound value properly
BUG:444572
2021-10-29 22:50:30 +03:00
Michail Vourlakos
61d4ff64d8 support X11::GlobalScaling properly
--as it appears many users are using Plasma GlobalScaling
in conjuction with PLASMA_USE_QT_SCALING. This commit
provides plenty of fixes for that scenario in order to
make things workable.
--adjust X11::InputMask based on devicePixelRatio()
--adjust X11::GtkFrameExtents based on devicePixelRatio()
--adjust View::absoluteGeometry() based on devicePixelRatio()
--adjust WM::Tracker based on devicePixelRatio()
--adjust WM::AbstractInterface based on devicePixelRatio()

BUG:444222
FIXED-IN:0.10.3
2021-10-24 16:37:04 +03:00
Michail Vourlakos
58c7093be9 fix #85,respect kwin vds navigation wrapping around
--respect and track KWin option for Virtual Desktops
navigation wrapping around setting
2021-09-28 22:05:17 +03:00
Michail Vourlakos
834f71d266 major:update LastActiveWindow implementation
--new implementation keeps a more consistent history.
Each LastActiveWindow(LAW) now keeps track of all windows
that are related to its view even when these windows are not
currently shown. This way inactive windows history is
consistent and can be used from applets/visibility modes
more appropriately. VDs/Activities that are not
the current one(s) do not delete records from history
any more. Their respected windows are recorded and
flagged as NOT SHOWN, waiting this way to be valid
again after Activities/VDs changes.
2021-07-17 21:02:58 +03:00
Michail Vourlakos
19defa08cd drop WinTracker::availableScreenGeometry calcs
--Views WindowsTracker in using screen geometry only to
identify which windows are in the same view screen has nothing
to do with availablescreengeometry. This is why it is
dropped and replaced by View::screenGeometry() value
2021-07-11 11:39:38 +03:00
Michail Vourlakos
686d04f181 update scheme files when created
--plasma systemsettings colors dialog recreates
the color scheme file and is not updating it.
By adding a signal for file creation we can now
update color schemes properly when the user updates
colors based on plasma systemsettings dialog
2021-06-16 16:58:11 +03:00
Michail Vourlakos
f10ae3e239 layout:update default color scheme ref properly 2021-06-16 11:27:48 +03:00
Michail Vourlakos
6444cc6e2d provide access to scheme colors wm:engine
--this is going to be used in order from layouts
2021-06-16 09:29:36 +03:00
Michail Vourlakos
600d78afca release properly scheme objecs on destruction 2021-06-16 09:20:20 +03:00
Michail Vourlakos
2aec29a855 activate dragged window on start
--this way the window is activated properly
and its activation is not canceled from move
action

BUG:437679
2021-06-12 17:36:11 +03:00
Michail Vourlakos
5d3e04eed9 wayland:set isOnAllActivities flag properly 2021-06-12 16:25:27 +03:00
Michail Vourlakos
c3c2c8a7f1 wayland:request all windows properties properly 2021-06-12 15:51:29 +03:00
Michail Vourlakos
7bc31fc9ea support wayland activities since kf5>=5.81 2021-06-12 14:18:03 +03:00
Alexander Lohnau
505379ed04 Use spdx syntax for all files 2021-05-27 15:01:00 +00:00
Michail Vourlakos
4e2c6da514 activate dragged window before moving
BUG:437679
2021-05-26 18:43:08 +03:00
Ömer Fadıl Usta
03e9c6c954 Reorder inits to Fix wrong initialize problem and fixes for string compares 2021-05-22 13:45:10 +00:00
Andreas Sturmlechner
53aad2f979 Port away from deprecated API (NET::StaysOnTop -> NET::KeepAbove)
Deprecated since 5.0.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-05-14 23:13:51 +00:00
Michail Vourlakos
7a1b920aba init default color scheme based on plasma version 2021-02-19 18:05:26 +02:00
Michail Vourlakos
d437ed8c3d specify plasma default color scheme 2021-02-19 14:42:19 +02:00
Michail Vourlakos
1e8ec1380d track lastActiveWindows for OnAllActivities layout
--fix the typo that identifies when a view in present
OnAllActivities, {0} that is.

BUG:431763
2021-02-03 00:34:53 +02:00
Michail Vourlakos
f27f938042 support XDG_CONFIG_PATH for app code
BUG:428210
2021-02-02 22:29:27 +02:00
Michail Vourlakos
939c0573f9 x11:accept signals from Desktop windows
--this way we make sure that if Desktop windows
were not filtered out in the past they will be
in the future
2020-10-28 10:27:35 +02:00
Michail Vourlakos
5af3036613 fixes for identifying Unity vertical view showing
--more specific identifying properly when a vertical
view is shown and is touching a top or bottom view
that has requested to be fully trasparent when no
maximized window exists
2020-08-31 19:27:42 +03:00
Michail Vourlakos
3689cc406d retrieve available screen space through activityid 2020-08-28 17:58:39 +03:00
Michail Vourlakos
3b3388d673 rename SideBar to SidebarOnDemand
--improve semantics all over the place now
that we provide two different sidebar
visibility modes
2020-07-29 00:02:50 +03:00
Martijn Vogelaar
2e4f7da4c2 Introduction and implementation of the SidebarAutohide
as discussed in #19.
2020-07-28 15:49:55 +00:00
Michail Vourlakos
24696fcf06 check plasmashell windows always to track desktops 2020-07-19 18:05:44 +03:00
Michail Vourlakos
6de05c92e8 support XCP::SHAPE for Views
--views can now specify their input area under X11 and
give valuable space to underlying windows
2020-07-19 15:04:46 +03:00
Michail Vourlakos
7084953672 wayland:fix multi-config views behavior 2020-07-11 19:00:05 +03:00
Michail Vourlakos
f7e89a6d6e update some config views wayland code 2020-07-11 18:13:47 +03:00
Michail Vourlakos
0c577d68da fix active window maximized in wm tracking
--consider also the maximized window is touching
view edge case
2020-06-09 10:21:15 +03:00
Michail Vourlakos
b264854a98 Dodge visibility mode now ignores edge touches
--The new implementation for snapping needed to remove
the touching view edge from touching algorithm. The
windows trakers now provide two separate values for each
touching.
----First value is for regular window touches for which
their window geometry intersects with view published
absoluteGeometry
----Second value is for windows that are touching
view edge without intersecting with view geometry
2020-05-17 11:42:09 +03:00
Michail Vourlakos
ec949948b6 fix View recraetion and frameExtents freezes
--View recreation path was broken from new implementation
for Latte::Interfaces that pass objects to containment
interface. This is now fixed and Interfaces::View object is updated
and broadcasted correctly when changed
--when GtkFrameExtents are zeroed for behaveAsPlasmaPanels
then it is better to recreate the view to avoid freezes and
hidings of the view because of compositor strange behavior
2020-05-12 14:45:31 +03:00
Michail Vourlakos
8b32be15b9 support GtkFrameExtents under X11
--this way to dock windows can now snap beautifully
with windows around them, very beautiful behavior!
That was pretty annoying in the past.
2020-05-11 17:31:51 +03:00
Michail Vourlakos
63187ce5b4 remove Latte library as requirement
--implement things simpler by using the same
CoreTypes header file both for LatteCore.Types
import statement and App c++ implementation.
Let's leave in the future to decide if
a LibLatte is really necessary.
2020-04-24 14:52:16 +03:00
Michail Vourlakos
2526ab7e17 rename to MemoryUsage::LayoutsMemory
--easier to read in the code as that type
provides:
MemoryUsage::SingleLayout
MemoryUsage::MultipleLayouts
2020-04-24 12:31:03 +03:00
Michail Vourlakos
6e4779e6ab require new official Latte library 2020-04-22 21:10:17 +03:00
Michail Vourlakos
ac3ccb5b98 try to support a public liblatte library 2020-04-22 14:09:42 +03:00
Michail Vourlakos
5073939335 REFACTOR:split up and refactor liblatte2 and types
--use a more logical organization for types. LibLatte2
is split to become LatteCore library and Latte types
are now moved to application level. The Latte Types will
be split even more... Tasks-Only related types will
become Latte.Tasks types

BUG:420210
2020-04-18 13:39:45 +03:00
Michail Vourlakos
ce245ab253 ignore some windows in LastActiveWindow
--LastActiveWindow is providing information to
applets thus special windows that contain
the following flags:
skipTaskBar AND (skipPager OR skipSwitcher)
these windows can be totally ignored.
In such window case the LastActiveWindow used
are provided.

BUG:419384
2020-04-07 13:00:45 +03:00
Michail Vourlakos
f90e86fa88 introduce hasSkipPager/Switcher for window infos 2020-04-07 12:51:44 +03:00