1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00
Commit Graph

60 Commits

Author SHA1 Message Date
Michail Vourlakos
72777d18c1 add functionality to latte window manager
--the Latte window manager has gained now
functions in order to set the window flags
properly and to update KeepAbove/KeepBelow
flags for windows
2019-12-26 16:53:37 +02:00
Michail Vourlakos
896afcc068 support screen edge margin for behaveAsPlasmaPanel 2019-12-24 20:35:48 +02:00
Michail Vourlakos
8cf49b672c remove obsolete draggingStarted signals/slots
--draggingStarted signals/slots were used in order
to handle the active window dragging from empty areas.
The new approach ungrabs the mouse properly through
View relevant function and at the same time sends a
QEvent::Leave event to inform applets that the mouse
has left the view. This is enough in order to remove
any older draggingStarted workarounds and hacks.
2019-08-26 16:35:03 +03:00
Michail Vourlakos
057edb87f1 send QEvent::Leave for view when dragging started
--this way the applets in the view will be informed for
mouse exited the view window
2019-08-26 16:34:51 +03:00
Michail Vourlakos
f7d968ff6d update struts when normalThickness value changes
--the issue was pretty obvious when the user was
using a top view with thickness < 24px. and a
bottom view always visible. In that case the top
view struts on startup did not decrease below
at 24px.

BUG:410707
2019-08-08 09:51:11 +03:00
Michail Vourlakos
3afd0eb643 set minimum hide timer interval 50ms
--when hide timer is set below 50ms. there are
cases that does not let the view to be shown after
a containmouse trigerring. By setting a minimum
value for the timer to 50ms this is fixed.

BUG:410370
2019-07-30 18:03:02 +03:00
Michail Vourlakos
9a10cd1e26 fix SharedLayout VisibilityManager::isCurrent state
--when KWin edges are used in a SharedLayout then the
all view Layout::isCurrent() function must be used
otherwise the layout is not identified properly as
current based on different layouts per activities
2019-07-16 14:08:47 +03:00
Michail Vourlakos
c5b1e9bbf5 x11:drop QWindow::setVisible() function
--this function creates irrelevant crashes even
under x11 environment... Dropped in favour of
show()/hide() functions that seem to not create
any issues
2019-07-15 19:39:21 +03:00
Michail Vourlakos
dac692bec4 dont block updating hidden state for drag enter 2019-07-10 16:33:14 +03:00
Michail Vourlakos
9e9003870b show view immediately for DragEnter
--when the user had activated KWin Edges and the
Show Timer was too high when the View delayed a
lot to show for DragEnter events
2019-07-10 16:23:06 +03:00
Michail Vourlakos
a9310a3de3 disable KWin edges for ByPassWMHint
--KWin edges do not support trigerring
above fullscreen windows
2019-06-20 10:25:18 +03:00
Michail Vourlakos
3c5c59e149 Revert "consider mask thickness for struts"
This reverts commit a4764024db.
2019-06-15 15:43:32 +03:00
Michail Vourlakos
359b120360 Revert "remove workaround for struts gap"
This reverts commit 137cd36547.
2019-06-15 15:43:12 +03:00
Michail Vourlakos
137cd36547 remove workaround for struts gap
--consider always the maskThickness when
settings struts in order to avoid gaps
at all cases
2019-06-15 10:55:38 +03:00
Michail Vourlakos
a4764024db consider mask thickness for struts 2019-06-15 09:59:08 +03:00
Michail Vourlakos
4cc4bfd6de REFACTOR WindowsTracker to provide more information
--View::WindowsTracker now provides all the time
information about CurrentScreen and AllScreens!
This way all consumers (Latte::Containment, Applets etc.)
can choose whatever suits them best.
2019-06-08 17:36:14 +03:00
Michail Vourlakos
e5673a9cfa fix type for DodgeMaximized 2019-06-03 19:20:06 +03:00
Michail Vourlakos
3f3560aab5 update dodgeAllWindows on startup properly 2019-06-03 19:16:48 +03:00
Michail Vourlakos
b251ea7b8e protect visibility destructor
--this protects a crash when closing Latte
immediately after startup
2019-05-27 10:57:16 +03:00
Michail Vourlakos
ffced101e1 apply visibilitymanager::struts when are needed 2019-05-14 17:56:22 +03:00
Michail Vourlakos
f63a0ad658 update/improve hack part of screenghostwindow
--related to KWin faulty behavior for visibility
2019-05-14 17:40:44 +03:00
Michail Vourlakos
945c6e50e2 remove deprecated m_views from AbstractWMInterface 2019-05-11 16:12:03 +03:00
Michail Vourlakos
a295352514 limit WM::setViewExtraFlags calls 2019-05-11 16:06:53 +03:00
Michail Vourlakos
ad788130ab REFACTOR:add WindowSystem namespace 2019-05-11 15:47:22 +03:00
Michail Vourlakos
a6b8fbcaff consider view::hidden state after slide-out 2019-05-11 09:08:18 +03:00
Michail Vourlakos
a27ff3ec48 REFACTOR:Update LayoutManager to Layouts::Manager
--create "layouts" own directory in order to host
all LAYOUTS management/control code and classes
2019-05-09 17:12:57 +03:00
Michail Vourlakos
29157f4636 refactor:rename managedLayout to layout/viewLayout 2019-05-09 00:13:17 +03:00
Michail Vourlakos
d945c89713 update struts when needed after their removal
--improve also when struts are applied under a
Multiple Mode and Multiple Activities
2019-05-03 02:39:21 +03:00
Michail Vourlakos
c38e3016de update hidden state after slide-in
BUG: 406415
2019-05-02 00:10:29 +03:00
Michail Vourlakos
5cf047dcc5 clear publishedStruts for visibility modes changes 2019-05-01 23:26:56 +03:00
Michail Vourlakos
06b92024ba remove no needed debug message 2019-05-01 23:21:11 +03:00
Michail Vourlakos
bb3e82024e simplify valid struts calculations 2019-05-01 23:04:39 +03:00
Michail Vourlakos
a472ef34f3 fix ident in visibilitymanager
--AlwaysVisible signals to update struts
are always enabled independent of Single/Multiple
mode but for Single mode they are just ignored
2019-05-01 21:31:33 +03:00
Michail Vourlakos
d8cc85dd4a fix assert for visibilitymanager
BUG: 407131
2019-05-01 20:19:39 +03:00
Michail Vourlakos
854840b8fc fixes for style and naming
--for visibilitymanager class
2019-04-23 10:55:27 +03:00
Michail Vourlakos
417f992831 move intersect function to WindowsTracker 2019-04-23 10:55:27 +03:00
Michail Vourlakos
dab796e253 improvements for visibilitymanager code 2019-04-23 10:55:27 +03:00
Michail Vourlakos
a2566d1414 move dodgeAllWindows to windowtracker 2019-04-23 10:55:27 +03:00
Michail Vourlakos
20a57f3c15 improve edge changing animation 2019-04-12 21:58:19 +03:00
Michail Vourlakos
b35fa94307 reduce availableScreenGeometry calls 2019-04-12 18:55:45 +03:00
Michail Vourlakos
db6a4e9d0d make struts and Always Visible lighter
--support them also in Live Editing
2019-04-11 22:24:45 +03:00
Michail Vourlakos
385b0e0b20 update struts properly for TopLayouts 2019-04-09 21:01:50 +03:00
Michail Vourlakos
9bdd58ee3f restore Show Timer behavior for KWin Edges 2019-02-24 19:09:48 +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
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
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
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