forked from lxqt/lxqt-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for kwin_wayland in XDG_CURRENT_DESKTOP; Add debug messages
- Loading branch information
1 parent
c6b353f
commit a01b215
Showing
5 changed files
with
44 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ LXQtTaskbarWaylandBackend::LXQtTaskbarWaylandBackend(QObject *parent) | |
QList<QByteArray> desktopsList = qgetenv("XDG_CURRENT_DESKTOP").toLower().split(':'); | ||
qDebug() << "--------------> Current desktop" << desktopsList; | ||
for( QByteArray desktop: desktopsList ) { | ||
if ( desktop == "plasma" || desktop == "kde" ) | ||
if ( desktop == "plasma" || desktop == "kde" || desktop == "kwin_wayland" ) | ||
{ | ||
qDebug() << "--------------> Using plasma backend"; | ||
m_backend = new LXQtTaskbarPlasmaBackend(); | ||
|
@@ -29,28 +29,28 @@ LXQtTaskbarWaylandBackend::LXQtTaskbarWaylandBackend(QObject *parent) | |
|
||
else if ( desktop == "wayfire" ) | ||
{ | ||
qDebug() << "--------------> Using wlroots backend"; | ||
qDebug() << "--------------> Using wayfire backend"; | ||
m_backend = new LXQtTaskbarWlrootsBackend(); | ||
break; | ||
} | ||
|
||
else if ( desktop == "sway" ) | ||
{ | ||
qDebug() << "--------------> Using wlroots backend"; | ||
qDebug() << "--------------> Using sway backend"; | ||
m_backend = new LXQtTaskbarWlrootsBackend(); | ||
break; | ||
} | ||
|
||
else if ( desktop == "labwc" ) | ||
{ | ||
qDebug() << "--------------> Using wlroots backend"; | ||
qDebug() << "--------------> Using labwc backend"; | ||
m_backend = new LXQtTaskbarWlrootsBackend(); | ||
break; | ||
} | ||
|
||
else if ( desktop == "hyprland" ) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marcusbritanicus
Author
|
||
{ | ||
qDebug() << "--------------> Using wlroots backend"; | ||
qDebug() << "--------------> Using hyprland backend"; | ||
m_backend = new LXQtTaskbarWlrootsBackend(); | ||
break; | ||
} | ||
|
@@ -60,6 +60,10 @@ LXQtTaskbarWaylandBackend::LXQtTaskbarWaylandBackend(QObject *parent) | |
// m_backend = nullptr; | ||
} | ||
} | ||
|
||
if ( m_backend == nullptr ) { | ||
qDebug() << "--------------> Using dummy backend. No window management will be done"; | ||
} | ||
} | ||
|
||
|
||
|
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
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
afaik Hyprland insists in being capitalized. Adding a fallback to use labwc/wlroots generic backend?