-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial backend plugin infrastructure
- Loading branch information
Showing
26 changed files
with
470 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
# Common interface for Window Manager abstraction backend | ||
# This also contains dummy backend | ||
|
||
add_library(lxqt-panel-backend-common STATIC | ||
|
||
lxqttaskbartypes.h | ||
ilxqtabstractwmiface.h | ||
ilxqtabstractwmiface.cpp | ||
|
||
lxqtdummywmbackend.h | ||
lxqtdummywmbackend.cpp | ||
) | ||
|
||
target_link_libraries(lxqt-panel-backend-common | ||
Qt6::Gui | ||
) | ||
|
||
add_subdirectory(xcb) |
6 changes: 3 additions & 3 deletions
6
.../backends/ilxqttaskbarabstractbackend.cpp → panel/backends/ilxqtabstractwmiface.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
#include "lxqtdummywmbackend.h" | ||
|
||
#include <QIcon> | ||
|
||
LXQtDummyWMBackend::LXQtDummyWMBackend(QObject *parent) | ||
: ILXQtAbstractWMInterface(parent) | ||
{ | ||
|
||
} | ||
|
||
/************************************************ | ||
* Windows function | ||
************************************************/ | ||
bool LXQtDummyWMBackend::supportsAction(WId, LXQtTaskBarBackendAction) const | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::reloadWindows() | ||
{ | ||
return false; | ||
} | ||
|
||
QVector<WId> LXQtDummyWMBackend::getCurrentWindows() const | ||
{ | ||
return {}; | ||
} | ||
|
||
QString LXQtDummyWMBackend::getWindowTitle(WId) const | ||
{ | ||
return QString(); | ||
} | ||
|
||
bool LXQtDummyWMBackend::applicationDemandsAttention(WId) const | ||
{ | ||
return false; | ||
} | ||
|
||
QIcon LXQtDummyWMBackend::getApplicationIcon(WId, int) const | ||
{ | ||
return QIcon(); | ||
} | ||
|
||
QString LXQtDummyWMBackend::getWindowClass(WId) const | ||
{ | ||
return QString(); | ||
} | ||
|
||
LXQtTaskBarWindowLayer LXQtDummyWMBackend::getWindowLayer(WId) const | ||
{ | ||
return LXQtTaskBarWindowLayer::Normal; | ||
} | ||
|
||
bool LXQtDummyWMBackend::setWindowLayer(WId, LXQtTaskBarWindowLayer) | ||
{ | ||
return false; | ||
} | ||
|
||
LXQtTaskBarWindowState LXQtDummyWMBackend::getWindowState(WId) const | ||
{ | ||
return LXQtTaskBarWindowState::Normal; | ||
} | ||
|
||
bool LXQtDummyWMBackend::setWindowState(WId, LXQtTaskBarWindowState, bool) | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::isWindowActive(WId) const | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::raiseWindow(WId, bool) | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::closeWindow(WId) | ||
{ | ||
return false; | ||
} | ||
|
||
WId LXQtDummyWMBackend::getActiveWindow() const | ||
{ | ||
return 0; | ||
} | ||
|
||
|
||
/************************************************ | ||
* Workspaces | ||
************************************************/ | ||
int LXQtDummyWMBackend::getWorkspacesCount() const | ||
{ | ||
return 1; // Fake 1 workspace | ||
} | ||
|
||
QString LXQtDummyWMBackend::getWorkspaceName(int) const | ||
{ | ||
return QString(); | ||
} | ||
|
||
int LXQtDummyWMBackend::getCurrentWorkspace() const | ||
{ | ||
return 0; | ||
} | ||
|
||
bool LXQtDummyWMBackend::setCurrentWorkspace(int) | ||
{ | ||
return false; | ||
} | ||
|
||
int LXQtDummyWMBackend::getWindowWorkspace(WId) const | ||
{ | ||
return 0; | ||
} | ||
|
||
bool LXQtDummyWMBackend::setWindowOnWorkspace(WId, int) | ||
{ | ||
return false; | ||
} | ||
|
||
void LXQtDummyWMBackend::moveApplicationToPrevNextMonitor(WId, bool, bool) | ||
{ | ||
//No-op | ||
} | ||
|
||
bool LXQtDummyWMBackend::isWindowOnScreen(QScreen *, WId) const | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::setDesktopLayout(Qt::Orientation, int, int, bool) | ||
{ | ||
return false; | ||
} | ||
|
||
/************************************************ | ||
* X11 Specific | ||
************************************************/ | ||
void LXQtDummyWMBackend::moveApplication(WId) | ||
{ | ||
//No-op | ||
} | ||
|
||
void LXQtDummyWMBackend::resizeApplication(WId) | ||
{ | ||
//No-op | ||
} | ||
|
||
void LXQtDummyWMBackend::refreshIconGeometry(WId, QRect const &) | ||
{ | ||
//No-op | ||
} | ||
|
||
bool LXQtDummyWMBackend::isAreaOverlapped(const QRect &) const | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::isShowingDesktop() const | ||
{ | ||
return false; | ||
} | ||
|
||
bool LXQtDummyWMBackend::showDesktop(bool) | ||
{ | ||
return false; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.