Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Window Manager interaction #2041

Merged
merged 44 commits into from
Jun 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d274b54
TaskBar: forward declare
gfgit Jan 28, 2024
43ddc7c
TaskBar: new ILXQtTaskbarAbstractBackend
gfgit Jan 27, 2024
223e8fc
ILXQtTaskbarAbstractBackend: add supportsAction() method
gfgit Jan 28, 2024
f1bf02a
TaskBar: add X11 backend
gfgit Jan 27, 2024
d0fe4b4
TaskBar: new LXQtTaskBarProxyModel
gfgit Jan 27, 2024
3a842e7
TaskBar: use backend in LXQtTaskBar
gfgit Jan 27, 2024
b81220d
TaskBar: initial use of backend in LXQtTaskButton
gfgit Feb 3, 2024
9cd7198
TaskBar: use backend for urgency hint
gfgit Feb 3, 2024
354e027
TaskBar: use backend to set window layer
gfgit Feb 3, 2024
290178e
TaskBar: use backend to close and raise window
gfgit Feb 3, 2024
78b5f7e
TaskBar: use backend to roll up (shade) windows
gfgit Feb 3, 2024
74bcae4
TaskBar: use backend to minimize window
gfgit Feb 3, 2024
a14a0fe
TaskBar: use backend to de-maximize window
gfgit Feb 3, 2024
d0d674e
TaskBar: use backend to get window state
gfgit Feb 3, 2024
b4af0df
TaskBar: use backend to set window state
gfgit Feb 3, 2024
6a28f7a
TaskBar: port workspace usage to backend
gfgit Jan 28, 2024
7fad2a1
TaskBar: remove X11 specific includes in lxqttaskbutton.cpp
gfgit Feb 3, 2024
d5a4751
TaskBar: remove X11 code from LXQtTaskBar and LXQtTaskGroup
gfgit Jan 28, 2024
649e85a
TaskBar: LXQtTaskButton remove X11 specific code
gfgit Jan 28, 2024
9974761
TaskBar: set context menu parent
gfgit Feb 17, 2024
b0e54b8
LXQtPanel: rework calculatePopupWindowPos()
gfgit Feb 17, 2024
8fd51ef
LXQtPanel: avoid QCursor::pos() usage
gfgit Feb 18, 2024
be23ae5
ILXQtTaskbarAbstractBackend: new Geometry window property
gfgit Feb 19, 2024
e334ec0
Move ILXQtTaskbarAbstractBackend to panel directory
gfgit Feb 17, 2024
9bbf4fa
ILXQtTaskbarAbstractBackend: new isAreaOverlapped() method
gfgit Feb 19, 2024
b9c8dfd
LXQtPanel: use less KX11Extras and more ILXQtTaskbarAbstractBackend
gfgit Feb 19, 2024
145d598
ILXQtTaskbarAbstractBackend: add dummy implementation
gfgit Feb 22, 2024
a3b7c02
LXQtMainMenu: indent header include
gfgit Feb 28, 2024
b199b77
ILXQtTaskbarAbstractBackend: new showDesktop() function
gfgit Feb 22, 2024
f59269c
ShowDesktop: use ILXQtTaskbarAbstractBackend
gfgit Feb 22, 2024
f1a26d4
DesktopSwitch: port to ILXQtTaskbarAbstractBackend
gfgit Feb 23, 2024
72a75e0
LXQtTaskbarConfiguration: port to ILXQtTaskBarAbstractBackend
gfgit Feb 23, 2024
05fc742
DesktopSwitchConfiguration: port to ILXQtTaskBarAbstractBackend TODO
gfgit Feb 23, 2024
8b78add
TaskBar: consider initial windows
gfgit Feb 22, 2024
0990829
DesktopSwitch: remove unused isWindowHighlightable()
gfgit May 10, 2024
1b7dadc
DesktopSwitch: show unsupported widget if backend does not have switch
gfgit May 10, 2024
79ace78
ILXQtTaskbarAbstractBackend: add setDesktopLayout() function
gfgit May 10, 2024
5e8966e
LXQtTaskbarX11Backend: fix re-add window after property changes
gfgit May 10, 2024
0e79998
LXQtTaskBarDummyBackend: fix compilation
gfgit May 10, 2024
09f006f
LXQtTaskBarPlugin: fix headers path
gfgit May 31, 2024
3fe36af
Revert "LXQtPanel: rework calculatePopupWindowPos()"
gfgit May 31, 2024
b5ffeee
Merge branch 'master' into work/gfgit/refactor_wm_interaction
gfgit Jun 5, 2024
76dad95
Removed `mDesktops` after rebasing
tsujan Jun 6, 2024
84ad2be
Reverted X11 codes of `DesktopSwitchConfiguration::loadDesktopsNames`
tsujan Jun 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ILXQtTaskbarAbstractBackend: add supportsAction() method
- Move WindowProperty enum to lxqttaskbartypes.h
  • Loading branch information
gfgit committed Apr 11, 2024
commit 223e8fc82dc882df69e9e85f61a4ce2b31051dce
15 changes: 3 additions & 12 deletions plugin-taskbar/ilxqttaskbarabstractbackend.h
Original file line number Diff line number Diff line change
@@ -8,25 +8,16 @@
class QIcon;
class QScreen;

//FIXME: add something like bool KWindowInfo::actionSupported(...)

class ILXQtTaskbarAbstractBackend : public QObject
{
Q_OBJECT

public:
enum class WindowProperty
{
Title = 0,
Icon,
State,
Urgency,
WindowClass,
Workspace
};

explicit ILXQtTaskbarAbstractBackend(QObject *parent = nullptr);

// Backend
virtual bool supportsAction(WId windowId, LXQtTaskBarBackendAction action) const = 0;

// Windows
virtual bool reloadWindows() = 0;

22 changes: 22 additions & 0 deletions plugin-taskbar/lxqttaskbartypes.h
Original file line number Diff line number Diff line change
@@ -5,6 +5,28 @@

typedef quintptr WId;

enum class LXQtTaskBarBackendAction
{
Move = 0,
Resize,
Maximize,
MaximizeVertically,
MaximizeHorizontally,
Minimize,
RollUp,
FullScreen
};

enum class LXQtTaskBarWindowProperty
{
Title = 0,
Icon,
State,
Urgency,
WindowClass,
Workspace
};

enum class LXQtTaskBarWindowState
{
Hidden = 0,