srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/legacy-cpp/src/layouts/tiling_layout.cc
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2025-08-24 00:44:00 +0200
committersrdusr <[email protected]>2025-08-24 00:44:00 +0200
commit72e787a706d372c9a92e424e9b13ece929cb2bce (patch)
tree237ea5559a63474c2539761b6ce1015fc31dc1da /legacy-cpp/src/layouts/tiling_layout.cc
parent2a3fdcf2faf6cadb1fa49ed7c4b2963b554b0724 (diff)
downloadsrdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.tar.gz
srdwm-72e787a706d372c9a92e424e9b13ece929cb2bce.zip
Remove the stale legacy-cpp implementation
The Rust rewrite (crates/) has fully superseded it - keeping both around was actively misleading (main looked like it still shipped a C++ build), and nothing here still depends on it.
Diffstat (limited to 'legacy-cpp/src/layouts/tiling_layout.cc')
-rw-r--r--legacy-cpp/src/layouts/tiling_layout.cc38
1 files changed, 0 insertions, 38 deletions
diff --git a/legacy-cpp/src/layouts/tiling_layout.cc b/legacy-cpp/src/layouts/tiling_layout.cc
deleted file mode 100644
index 440c95a..0000000
--- a/legacy-cpp/src/layouts/tiling_layout.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-#include "tiling_layout.h"
-#include <iostream>
-
-TilingLayout::TilingLayout() {
- // Constructor implementation
-}
-
-TilingLayout::~TilingLayout() {
- // Destructor implementation
-}
-
-void TilingLayout::arrange_windows(const std::vector<SRDWindow*>& windows, const Monitor& monitor) {
- std::cout << "TilingLayout::arrange_windows called for monitor:" << std::endl;
- std::cout << " Position: (" << monitor.x << ", " << monitor.y << "), Dimensions: (" << monitor.width << ", " << monitor.height << ")" << std::endl;
- std::cout << " Number of windows: " << windows.size() << std::endl;
-
- // Basic placeholder tiling logic (e.g., splitting the screen vertically)
- if (!windows.empty()) {
- int window_width = monitor.width / windows.size();
- int current_x = monitor.x;
-
- for (size_t i = 0; i < windows.size(); ++i) {
- SRDWindow* window = windows[i];
- // In a real implementation, you would calculate the desired
- // position and size for the window based on the tiling algorithm
- // and then call a method on the window object (which would
- // internally use the platform backend) to apply these changes.
- std::cout << " SRDWindow " << window->getId() << ": Placeholder position (" << current_x << ", " << monitor.y << "), size (" << window_width << ", " << monitor.height << ")" << std::endl;
-
- // Update the window's properties in the SRDWindow object
- window->setPosition(current_x, monitor.y);
- window->setDimensions(current_x, monitor.y, window_width, monitor.height);
-
-
- current_x += window_width;
- }
- }
-}