Skip to content

Commit

Permalink
Move some files around
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed Oct 13, 2023
1 parent 9727ba0 commit 7a354d7
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/foreign_toplevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "output.hpp"
#include "server.hpp"
#include "view.hpp"
#include "surface/view.hpp"

static void foreign_toplevel_handle_request_maximize_notify(wl_listener* listener, void* data) {
const ForeignToplevelHandle& handle = magpie_container_of(listener, handle, request_activate);
Expand Down
4 changes: 2 additions & 2 deletions src/input/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include "seat.hpp"
#include "server.hpp"
#include "surface.hpp"
#include "view.hpp"
#include "surface/surface.hpp"
#include "surface/view.hpp"

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion src/input/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "seat.hpp"
#include "server.hpp"
#include "view.hpp"
#include "surface/view.hpp"

#include <algorithm>
#include <xkbcommon/xkbcommon.h>
Expand Down
10 changes: 5 additions & 5 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
magpie_sources = [
'main.cpp',
'foreign_toplevel.cpp',
'layer.cpp',
'output.cpp',
'popup.cpp',
'server.cpp',
'view.cpp',
'xdg_view.cpp',
'xwayland.cpp',
'xwayland_view.cpp',
'input/cursor.cpp',
'input/keyboard.cpp',
'input/seat.cpp',
'surface/layer.cpp',
'surface/popup.cpp',
'surface/view.cpp',
'surface/xdg_view.cpp',
'surface/xwayland_view.cpp',
xdg_shell_protocol,
wlr_layer_shell_protocol,
wlr_output_power_management_protocol,
Expand Down
2 changes: 1 addition & 1 deletion src/output.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "output.hpp"

#include "layer.hpp"
#include "server.hpp"
#include "surface/layer.hpp"
#include "types.hpp"

#include <algorithm>
Expand Down
11 changes: 6 additions & 5 deletions src/server.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#include "server.hpp"
#include "layer.hpp"

#include "input/seat.hpp"
#include "output.hpp"
#include "popup.hpp"
#include "surface.hpp"
#include "surface/layer.hpp"
#include "surface/popup.hpp"
#include "surface/surface.hpp"
#include "surface/view.hpp"
#include "types.hpp"
#include "view.hpp"
#include "xwayland.hpp"
#include "input/seat.hpp"

#include <algorithm>
#include <cassert>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/xwayland_view.cpp → src/surface/xwayland_view.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include "view.hpp"

#include "foreign_toplevel.hpp"
#include "input/seat.hpp"
#include "server.hpp"
#include "surface.hpp"
#include "types.hpp"
#include "input/seat.hpp"

#include <cstdlib>
#include <wayland-server-core.h>
Expand Down
5 changes: 3 additions & 2 deletions src/xwayland.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#define _POSIX_C_SOURCE 200809L

#include "xwayland.hpp"

#include "input/seat.hpp"
#include "server.hpp"
#include "types.hpp"
#include "view.hpp"
#include "input/seat.hpp"
#include "surface/view.hpp"

#include "wlr-wrap-start.hpp"
#include <wlr/util/log.h>
Expand Down

0 comments on commit 7a354d7

Please sign in to comment.