Skip to content

Commit 3dfa7ca

Browse files
committed
stuff
1 parent 48fb703 commit 3dfa7ca

5 files changed

Lines changed: 101 additions & 108 deletions

File tree

src/ruisapp/application.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3232
#include <utki/destructable.hpp>
3333
#include <utki/flags.hpp>
3434
#include <utki/singleton.hpp>
35+
#include <utki/unique_ref.hpp>
3536
#include <utki/util.hpp>
3637

3738
#include "config.hpp"
@@ -52,12 +53,13 @@ class application : public utki::intrusive_singleton<application>
5253
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
5354
static instance_type instance;
5455

55-
std::vector<window> windows_v;
56+
std::vector<utki::unique_ref<window>> windows_v;
5657

5758
public:
5859
const std::string name;
5960

6061
private:
62+
// TODO: remove
6163
std::unique_ptr<utki::destructable> window_pimpl;
6264

6365
friend const decltype(window_pimpl)& get_window_pimpl(application& app);
@@ -72,7 +74,7 @@ class application : public utki::intrusive_singleton<application>
7274
* so the returned span's size is guaranteed to be >= 1.
7375
* @return A span of application windows. Size of the span is always >= 1.
7476
*/
75-
utki::span<window> windows()
77+
utki::span<const utki::unique_ref<window>> windows()
7678
{
7779
return this->windows_v;
7880
}

src/ruisapp/glue/glue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3232
#elif CFG_OS == CFG_OS_LINUX
3333
# ifdef RUISAPP_BACKEND_WAYLAND
3434
// NOLINTNEXTLINE(bugprone-suspicious-include)
35-
# include "linux/glue_wayland.cxx"
35+
# include "linux/wayland/glue.cxx"
3636
# else
3737
// NOLINTNEXTLINE(bugprone-suspicious-include)
38-
# include "linux/glue_xorg.cxx"
38+
# include "linux/xorg/glue.cxx"
3939
# endif
4040
#endif

0 commit comments

Comments
 (0)