aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-11 20:26:45 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-11 20:26:45 +0200
commit4fec9b8fdfc664df12ac67dde2df5e09b8b2b9bb (patch)
tree5ad3cc70948c3560dc086284801883e7a24218e8
parente8fdae62bec0a941b7f80cf027b1c2f8d840c89b (diff)
Remove freopen and system call to xrandr for now
-rw-r--r--src/main.cpp4
-rw-r--r--src/window_manager.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6f4250f..1d184aa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2037,8 +2037,8 @@ CMainApplication *pMainApplication;
int main(int argc, char *argv[])
{
pMainApplication = new CMainApplication( argc, argv );
- freopen("/home/dec05eba/vrwm.stdout.log", "w", stdout);
- freopen("/home/dec05eba/vrwm.stderr.log", "w", stderr);
+ //freopen("/home/dec05eba/vrwm.stdout.log", "w", stdout);
+ //freopen("/home/dec05eba/vrwm.stderr.log", "w", stderr);
if (!pMainApplication->BInit())
{
diff --git a/src/window_manager.c b/src/window_manager.c
index b49c5af..07d15af 100644
--- a/src/window_manager.c
+++ b/src/window_manager.c
@@ -422,12 +422,14 @@ int window_manager_init(WindowManager *self, int window_width, int window_height
assert(callback->button_callback);
/* TODO: Temporary! Replace with xrandr calls */
+ #if 0
char command[2048];
snprintf(command, sizeof(command), "xrandr --output DP-0 --mode 1920x1080 --pos 0x0 --panning %dx%d+0+0 --rate 144 --scale-from %dx%d", window_width, window_height, window_width, window_height);
system(command);
snprintf(command, sizeof(command), "xrandr --output DP-4 --mode 3840x2160 --pos 0x0 --panning %dx%d+0+0 --rate 60 --scale-from %dx%d", window_width, window_height, window_width, window_height);
system(command);
+ #endif
memset(self->window_data, 0, sizeof(self->window_data));
self->callback = *callback;