tudurom / windowchef

Window Chef is a stacking window manager that cooks windows with orders from the Waitron
https://tudorr.ro/software/windowchef/
ISC License
203 stars 14 forks source link

No borders, no waitron commands work on Cinnamon #35

Closed ohmree closed 6 years ago

ohmree commented 7 years ago

I took this, substituted all occurrences of i3 with windowchef and fixed the PKGBUILD md5sums.
It works, I can open some programs through sxhkd keybinds and the focus follows my mouse but non of the waitron commands work. Not in the terminal and not through sxhkd. I also don't get any window borders.

I have no idea why this is happening, but I guess that Cinnamon is interfering with windowchef somehow. I'm on Antergos, using Cinnamon version 3.4.4 and windowchef version 0.3.2 if that helps.

Here's a scrot:
image

Note that I can grab the part that the black arrow is pointing at to move the window but I think it's Firefox behavior and not directly related to windowchef: image

tudurom commented 7 years ago

does waitron return any error? i'm not at my computer right now, but i suspect that windowchef isn't running at all in your case. have you checked that?

ohmree commented 7 years ago

No errors. waitron wm_config <some_option> segfaulted but I don't know if it's supposed to print the value of <some_option> if no more arguments are given. If it isn't and there's no proper check (if argc is not the amount I want it to be a then exit with error status and print usage) then it should segfault (AFAIK).

And windowchef is definitely running, ps aux | grep windowchef shows that it is indeed running (there's windowchef and [windowchef] <defunct>, I have no idea what the second one is, maybe it somehow gets started twice because of an error in the session file/scripts?)

On Jul 25, 2017 23:16, "Tudor Roman" notifications@github.com wrote:

does waitron return any error? i'm not at my computer right now, but i suspect that windowchef isn't running at all in your case. have you checked that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tudurom/windowchef/issues/35#issuecomment-317859099, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1QKXoYobRzMVrEEMNcfJWb6P1SJ_Cgks5sRk01gaJpZM4Oi-0O .

tudurom commented 7 years ago

instead of testing waitron with the wm_config command (yes it is expected to segfault when no arguments are given), try moving the window.

tudurom commented 7 years ago

also the second defunct process is normal, it doesn't do anything bad, i will make it disappear someday

ohmree commented 7 years ago

I did try moving the window, it doesn't move anything and doesn't print anything.

On Jul 25, 2017 23:51, "Tudor Roman" notifications@github.com wrote:

also the second defunct process is normal, it doesn't do anything bad, i will make it disappear someday

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tudurom/windowchef/issues/35#issuecomment-317868195, or mute the thread https://github.com/notifications/unsubscribe-auth/AM1QKXpgLlJDyJDH8Y7w3rXaB_i9tLChks5sRlU5gaJpZM4Oi-0O .

ohmree commented 7 years ago

image
Ok this is weird. I tried running some cinnamon-* apps so I could get a bar (When I had KDE + bspwm I think I just installed this and the bar worked automagically). cinnamon-settings opened the settings menu as expected, but cinnamon-launcher (I thought it's an application launcher, turns out it starts a Cinnamon session) just started the bar and gave me Cinnamon's borders on windowchef's windows. As you can see, muffin is not running and windowchef is.
alt-tab (which I believe is managed by muffin) doesn't work (although meta + arrow-key does tile windows like it does in regular Cinnamon, perhaps because windows aren't tied to a specific WM so as long as something is written for X11 and uses the proper procedures it can move windows?).
There's no context menu or icons on the desktop but Cinnamon's widgets are there, and meta opens up the application launcher ("start menu"). Maybe I have to completely disable Cinnamon's shortcuts? (I know you have to do this if you want to have XFCE with bspwm)

So to sum this up I ended up with a hybrid desktop that has none of the functions that I want from windowchef, I wonder why that is. I'll try doing the same in a VM and maybe installing bspwm on this machine and see if the problem persists, this is really peculiar!

EDIT: It also seems that windows now only focus on click, it wasn't like this before I executed cinnamon-launcher. Very weird

EDIT 2: After playing with it some more I noticed that I can change the window effects through Cinnamon's settings and it, well, actually worked. So maybe muffin is running somehow even though nothing is showing that it's running? Also sxhkd shortcuts don't work even though sxhkd is running, so I think the cinnamon session is interfering with that.

ohmree commented 7 years ago

Ok, so bspwm actually works (although it makes cinnamon-launcher crash when I try to execute it).
In order to get the bspwm session to show up on my DM I did the same thing as before but with bspwm instead of windowchef (cloned this, replaced all occurrences of i3 with bspwm, fixed md5sums in the PKGBUILD, ran makepkg && sudo pacman -U name-of-package-version-arch.pkg.tar).

scrot:
image

tudurom commented 6 years ago

Closing this because it's an issue with Cinnamon. Most probably it's doing stuff to the root window and doesn't let the client messages from waitron to get received by the wm.