Use wlr-foreign-toplevel-management instead of private protocol
Introduces PhoshToplevelManager and PhoshToplevel classes for managing and representing toplevel surfaces. Thanks to that: - it doesn't match the window to close via its title or app id, always trying to close the correct window instead - it removes the window from the overview only after it really got closed - which is especially noticable in case of windows that refuse to be closed - it updates the list automatically as the changes happen, without having to close and open the overview back again Closes #37
parent
b40aeff0
No related branches found
No related tags found
Showing
- po/POTFILES.in 2 additions, 0 deletionspo/POTFILES.in
- protocol/meson.build 1 addition, 0 deletionsprotocol/meson.build
- protocol/wlr-foreign-toplevel-management-unstable-v1.xml 259 additions, 0 deletionsprotocol/wlr-foreign-toplevel-management-unstable-v1.xml
- src/favorites.c 50 additions, 61 deletionssrc/favorites.c
- src/meson.build 4 additions, 0 deletionssrc/meson.build
- src/phosh-wayland.c 20 additions, 3 deletionssrc/phosh-wayland.c
- src/phosh-wayland.h 2 additions, 0 deletionssrc/phosh-wayland.h
- src/shell.c 17 additions, 0 deletionssrc/shell.c
- src/shell.h 2 additions, 0 deletionssrc/shell.h
- src/toplevel-manager.c 177 additions, 0 deletionssrc/toplevel-manager.c
- src/toplevel-manager.h 23 additions, 0 deletionssrc/toplevel-manager.h
- src/toplevel.c 315 additions, 0 deletionssrc/toplevel.c
- src/toplevel.h 25 additions, 0 deletionssrc/toplevel.h
- tests/meson.build 3 additions, 1 deletiontests/meson.build
- tests/stubs/phosh.c 19 additions, 0 deletionstests/stubs/phosh.c
- tests/stubs/toplevel-manager.c 58 additions, 0 deletionstests/stubs/toplevel-manager.c
- tests/stubs/toplevel.c 74 additions, 0 deletionstests/stubs/toplevel.c
- tools/meson.build 2 additions, 2 deletionstools/meson.build
Loading