Commit Graph

147 Commits (383e365f8294007649841c6428489dcab3857941)

Author SHA1 Message Date
Michail Vourlakos 6849a4906d drop ksysguard dependency for kf5>=5.62
--following plasma updates for tasktools in order
to drop the ksysguard dependency which is also
costly
5 years ago
Michail Vourlakos fdb002d919 optimize last active window color scheme update 5 years ago
Michail Vourlakos 6a7c959e6a expose colorScheme to lastActiveWindow(s)
--applets can now use the color scheme from lastActiveWindow
objects in order to paint some of their elements
5 years ago
Michail Vourlakos d9dc659d7b update debug messages for wm::tracker 5 years ago
Michail Vourlakos a9b4989236 update AllScreens track information during startup
--Whenever a view is updating its layout then the AllScreens
tracked information [per layout tracking] should be updated
also. Until now this was happening only during startup and there
was a case that if during startup a view was requesting tracking
and the second one did not, then tracking for the entire layout
for all screens it could be faulty disabled.

BUG:411670
FIXED-IN:0.9.3
5 years ago
Michail Vourlakos 153f5dab27 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.
6 years ago
Yuri Chornoivan 15ab253efd Fix minor EBN issues 6 years ago
Michail Vourlakos 92a4fb054e improve smartness for Unity case layout
--when a vertical view is in busy state and is touching
also a horizontal view that is fully transparent in
SMART mode then the visual result is not that good.
In that case it is better to show the view background.
The horizontal view background in that case can provide
three different states:
a) if the panel style for popups is activated then the
horizontal view will follow the plasma original style
b) if NOT [a] and solid background for touching windows
is enabled then solid background will be offered
c) if NOT [a] and NOT [b] then the isBusy state
transparency will be offered
6 years ago
Michail Vourlakos 42d94df47f introduce windowCanBeMaximized
--trying to avoid interacting with windows
that DO NOT allow it
6 years ago
Michail Vourlakos 59f1d72fa3 improve canBeDragged implementation
--follow libtaskmanager case to support this
6 years ago
Michail Vourlakos fcee8d98cc x11 fixes for invalid windows
--when a window is stacked back to its parent window
for example the firefox case (dragging a tab to create
a new firefox window and redrag it afterwards to the
main window) the wm::windows array had inconsistent
window records.
--This is fixed and also any X11 transient changed signals
are not blocked for windowChanged signals
6 years ago
Michail Vourlakos 71e291ccec comment debug messages 6 years ago
Michail Vourlakos 964f2282f2 consider main window also for dodge active
--if the main window is not active but is
touching the dock then the dock is not shown
for dodge active state
--fix the cleanup code in order to cleanup
windows that have a ghost wid ( 0 )
6 years ago
Michail Vourlakos b94f87f144 rename trackerwindows to windowstracker
-- in order to distinguish it from the neighbour
tracker classes
6 years ago
Michail Vourlakos c94843c9e6 KWin issue #2,hiding windows when activies stopped
--in such case under x11, the winIds of the visible
Latte windows are changed and as such the windows
tracking mechanism becomes broken. The code introduced
tries to track the case the update the WM::ignoredWindows
properly
6 years ago
Michail Vourlakos 3a465782e1 wayland:improve latte windows id discovering 6 years ago
Michail Vourlakos c85d24ac37 use WM:IgnoredWindows infrastructure for wayland
--improvements for IgnoredWindows infrastructure
all over the relevant classes
6 years ago
Michail Vourlakos 79f392723e wm:support ignored windows
--x11 implementation is in place and wayland
case must be updated accordingly
6 years ago
Michail Vourlakos ef08dbff96 update to latest tasktools.cpp from plasma master 6 years ago
Michail Vourlakos 6c70e1fd81 disable debug messages for windows tracking 6 years ago
Michail Vourlakos 5546a237a2 update struts propertly on wayland startup
BUG: 408977
6 years ago
Michail Vourlakos a311f45a62 fix istouchingview of windows tracking
--is touching view functions did not identify
when a windows was touching the absolutegeometry
<thickness> boundary and at the same time
overlapping the view <length> area. A case
that was breaking the experience was the
Plasma "AddWidgets" dialog
6 years ago
Michail Vourlakos 91a9e7c0c5 improvements for effects area and painting 6 years ago
Michail Vourlakos df3118fc98 Revert "remove workaround for X11 struts !compositing gap"
This reverts commit 37b708ef52.
6 years ago
Michail Vourlakos 37b708ef52 remove workaround for X11 struts !compositing gap 6 years ago
Michail Vourlakos 1051372e04 expose to qml builtin activity/vds switching
--tested that this fixes also the Latte crash
on exit as PagerModel is not used any more in
Latte internal code
6 years ago
Michail Vourlakos d312598f60 provide builtin Activity,VDs switching
--this way we will avoid also the crash
on wayland produced by the deprecated
PagerModel
6 years ago
Michail Vourlakos c16251f743 add buffer size for LastActiveWindow 6 years ago
Michail Vourlakos 35752bbc2f proceed with implementation of LastActiveWindow 6 years ago
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.
6 years ago
Michail Vourlakos 607dbac4cf update WindowsTracker to track AllScreens windows
--by using a Layouts perspective in order to accomplish
that
6 years ago
Michail Vourlakos 0aa5c520dc add Layouts Tracking in WindowsTracking 6 years ago
Michail Vourlakos e57ff695ed ignore LastActiveWindow tracking for !enabled 6 years ago
Michail Vourlakos 7decc54ddf introduce TrackedLayoutInfo 6 years ago
Michail Vourlakos 2b316aa728 improve trackedinfo(s) 6 years ago
Michail Vourlakos 96c081e076 remove View from TrackedGeneralInfo 6 years ago
Michail Vourlakos 6d1ac0bfe2 remove deprecated references 6 years ago
Michail Vourlakos c2bfda46d3 make WindowsTracking activity filtering accurate 6 years ago
Michail Vourlakos 1b5de7d859 remove irrelevant windows from Track::History
--last active windows that were minimized OR
changed screen must be removed from last active
window history
6 years ago
Michail Vourlakos 59a4d63ca6 improve activities and desktops WM filtering 6 years ago
Michail Vourlakos c7eb97a879 update WindowInfo to contain desktops/activities 6 years ago
Michail Vourlakos 79ae6a6de4 initial support History for LastActiveWindow 6 years ago
Michail Vourlakos 4ae9b1b91c update LastActiveWindow with signals 6 years ago
Michail Vourlakos c0e3004717 add LastActiveWindow debug records
--in DebugWindow
6 years ago
Michail Vourlakos a0226e1de9 split trackedinfo to general and view 6 years ago
Michail Vourlakos c9ab9a1dbe dont equalize WindowInfo icon and appName
--icon and appName are constly functions and
should be called only when are really needed
6 years ago
Michail Vourlakos 51c11071dd support toggle onAllDesktops for LastActiveWindow 6 years ago
Michail Vourlakos af609ca53f X11:track more LastActiveWindow properties
--track windowChanged properties for KeepAbove
and isOnAllDesktops flags under X11
6 years ago
Michail Vourlakos f3eacf169e add actions for LastActiveWindow 6 years ago
Michail Vourlakos 6898623bd6 identify PlasmaDesktop on startup under X11
--this was only an issue during startup but
add the same time is a good place to add a check
for plasma desktop
6 years ago
Michail Vourlakos 342d4a1a00 move window funcionality to lastactivewindow 6 years ago
Michail Vourlakos a03655f176 new heuristic to identify plasma desktop window 6 years ago
Michail Vourlakos 54f1e3576e ignore Desktops under X11 6 years ago
Michail Vourlakos d44809eb25 enable drag dialog-child windows of skiptaskbar 6 years ago
Michail Vourlakos c45aa3f56c make xwindowinterface checks lighter
--use the windowsTracker in order to check
a window validity. No need to check again
and again in the window type is valid
6 years ago
Michail Vourlakos 8a8eb632b7 accept Gtk2+ dialogs for tracking
--Gtk2+ dialogs under X11 appear as
type Splash and PopUp at the same time.
This is a messy situation let's live
with this
6 years ago
Michail Vourlakos 3cbc4a5daf support AppName for WindowInformation
--use plasma libtaskmanager code and way
in order to obtain properly the AppName and
the Icon for its window
6 years ago
Michail Vourlakos d45ebf9a34 add application name to WindowInformation 6 years ago
Michail Vourlakos 53d24fe2c6 forward LastActiveWindow to QML 6 years ago
Michail Vourlakos e07cee3862 support icon for LastActiveWindow 6 years ago
Michail Vourlakos 25c96d0d3a support isOnAllDesktops for LastActiveWindow 6 years ago
Michail Vourlakos eea213a5c0 add isOnAllDesktops to WindowInformation 6 years ago
Michail Vourlakos 2d2f7b172d add more properties at LastActiveWindow 6 years ago
Michail Vourlakos dbed45b2c7 introduce TrackedInfo and LastActiveWindow 6 years ago
Michail Vourlakos 99ec9cb2fd move WM:Trackers in its own directory 6 years ago
Michail Vourlakos b6520b1cd8 Improve WindowTracker CPU usage
--add a Timer in order to not sent too many
batch signals for windowChanged with no reason
and send only one at the end of the Timer::trigger
6 years ago
Michail Vourlakos 97332cc8cf introduce Display and Icon for WindowInfoWrap 6 years ago
Michail Vourlakos a8a19bb550 support VirtualDesktops for kwayland>=5.52
--This of course needs Plasma>=5.15

BUG: 398106
6 years ago
Michail Vourlakos ebaf81ddd8 remove deprecated code from AbstractWindowInterfa 6 years ago
Michail Vourlakos 48d3728005 REFACTOR:Introduce SchemesTracker for WM 6 years ago
Michail Vourlakos ae4578433c dont track windows for AutoHide mode
--add initialization of values for views
tracking hints when enabled becomes false
--add some debug messages to be used when
we want to test out things
6 years ago
Michail Vourlakos a5168c3a2a REFACTOR:Introduce WM:WindowsTracker
--this is a single and very important class
that handles all windows tracking and management
for ALL VIEWS at ALL ACTIVE LAYOUTS
6 years ago
Michail Vourlakos 945c6e50e2 remove deprecated m_views from AbstractWMInterface 6 years ago
Michail Vourlakos ad788130ab REFACTOR:add WindowSystem namespace 6 years ago
Michail Vourlakos 7b094d7007 dont drag last active window when is minimized 6 years ago
Michail Vourlakos 6248a0ccae refactor:move schemecolors under "wm" folder 6 years ago
Michail Vourlakos 8a99a9249b improvements for !compositing mode
--fixed struts gap for !compositing mode in order
to handle the strange kwin behavior. Kwin under
!compositing removes 1px. from the struts specified
by windows
--plenty of fixes concerning automatic coloring
under !compositing mode
6 years ago
Michail Vourlakos fb4508c6a7 simplify CMakeLists 6 years ago
Michail Vourlakos c735792c30 REFACTOR:replace all "foreach" statements 6 years ago
Michail Vourlakos 555fc966b0 activate config windows under wayland environment
--add heuristic method in wayland interface in order to
return the internal id of a window by using its appId
and its geometry
6 years ago
Michail Vourlakos a9e4afa336 add debug message for windows default color scheme 6 years ago
Michail Vourlakos 83b5b2323a fix calculations for left subtracked mask 6 years ago
Michail Vourlakos 0bb2c14017 set keepAbove for all Latte windows under wayland 6 years ago
Michail Vourlakos 8a0c0740b3 improve how default scheme file is identified
--add also some improvements for color schemes

BUG: 404668
6 years ago
Michail Vourlakos dd4ae1865b improvements for color schemes under wayland 6 years ago
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()
6 years ago
Michail Vourlakos 68805c4a98 ignore latte windows from wm tracking 6 years ago
Michail Vourlakos c8b58d5acf x11:ignore latte related window from tracking 6 years ago
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
6 years ago
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
6 years ago
Michail Vourlakos 57ab5f3b3f refactor:move screenedgewindow to ViewPart:: 6 years ago
Michail Vourlakos 1ab99761a1 REFACTOR:Update Dock types to new Latte2::Types 6 years ago
Michail Vourlakos f2a90aafe6 refactor:rename dock term to view term 6 years ago
Michail Vourlakos 25d9d4ed17 refactor:rename DockCorona to Latte::Corona 6 years ago
Michail Vourlakos 39368a41de REFACTOR:rename DockView to Latte::View
--move all classes related to Latte::View
from dock/ folder to view/ folder
6 years ago
Michail Vourlakos 2099b8ed36 add headers comments for all c++ files 6 years ago
Michail Vourlakos deefa6f32e REFACTOR:move wm related classes to wm folder 6 years ago