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

Wayfire taskbar backend #2071

Closed
wants to merge 170 commits into from

Conversation

marcusbritanicus
Copy link
Contributor

This PR provides a taskbar backend for when the panel is running as a Wayfire client.

TODO:

  • Develop the skeleton
  • List windows based on workspace-set, and output
  • Get workspace info (per-output-per-wset)
  • Get window events, and translate them into UI actions

This PR requires a few discussions before I can begin work. The output management and the hence the corresponding window and workspace management on wayfire is different from Plasma. This may require a slightly different approach on our part while dealing with the UI.

gfgit added 30 commits March 26, 2024 12:35
This is an abstract interface to operate windows
and workspaces
- Move WindowProperty enum to lxqttaskbartypes.h
This model will manage the tasks shown
Also use it to get window icon
- Don't rely on global screen coordinates

- This will be needed for future Wayland port,
  Where we don't have global screen coordinates

- Keep compatible behavior on X11
This new window propery flag is needed to notify geometry changes
This will be used to avoid crashing panel in case no backend could be
created.
A warning message will be printed in this case.
marcusbritanicus and others added 26 commits April 11, 2024 16:46
NOTE: works only on KWin

- Choose backend at runtime
- Windows filter logic is re-evaluated on window property changes
TODO: is this correct?
Seems to call wl_proxy_destroy underneath
NOTE: absolute path is needed inside .desktop file for this to work
      use CMake to get it.

- Prevent double dekstop file installed in autostart
- reloadWindows() force removal and readding of windows

This fixes changing windows grouping settings and adding taskbar plugin
AFTER panel is started.
Both situations resulted in empty taskbar previously
TODO: show error message when not supported
- Add NoDisplay=true to .desktop file
@gfgit
Copy link
Member

gfgit commented Jun 9, 2024

Hi @marcusbritanicus.
Since PR #2041 has been merged into master and you don't seem to have yet started the work yet, why don't you make a new branch starting from work/gfgit/wayland_taskbar?
Doesn't make much difference but just to have a cleaner Git history while working.

@marcusbritanicus
Copy link
Contributor Author

marcusbritanicus commented Jun 10, 2024

@gfgit Well... I will not be starting for a while now. This just so that we can get some discussions going. I'll rebase later. Currently, I have rebased #2046 on master, and this one is on top of that.

If things go as I hope they will (the modules approach), then quite a few changes will be done. So I'll wait for other things for the moment.

@marcusbritanicus marcusbritanicus deleted the wayfire_taskbar branch August 17, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants