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

waitron does not work on windows launched prior to windowchef #47

Closed mitchweaver closed 5 years ago

mitchweaver commented 6 years ago

Steps to reproduce:

Launch a terminal from xinitrc, then windowchef.

Type in the terminal waitron window_maximize

Nothing is printed, the terminal is not maximized.

I've also tried it in sxhkd, no effect either.

Am I doing something wrong, or is this a bug?

tudurom commented 6 years ago

hi, windowchef doesn't update its internal state when started after certain windows have been already spawned. that's why it doesn't do anything, the terminal must be spawned after the window manager starts. you can launch it in the background with a sleep.

On Mon, 26 Feb 2018, 00:07 Mitch, notifications@github.com wrote:

Steps to reproduce:

Launch a terminal from xinitrc, then windowchef.

Type in the terminal waitron window_maximize

Nothing is printed, the terminal is not maximized.

I've also tried it in sxhkd, no effect either.

Am I doing something wrong, or is this a bug?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tudurom/windowchef/issues/47, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNZTHIj0RpbhMp3Fo2_q5jeFaixQi61ks5tYdmWgaJpZM4SSe7O .

mitchweaver commented 6 years ago

Wooo... Well now I sure look dumb.

I had spawned it in my xinitrc as i hadn't had a sxkhdrc yet, I was just wanting to test!

ahaha. Apologies for my ignorance, though if its not in the readme that might be a good thing to add.


Aside question, why is this?

image

tudurom commented 6 years ago

i think that it's me who looks dumb because I could implement loading previously spawned windows and I chose not to AND not document my choice.

Also that thing with... 72% CPU? I have no idea, it might be the process that executes windowchefrc, double check your script. If it doesn't look funny, consider opening an issue with the contents of windowchefrc and the version you're running.

On Mon, 26 Feb 2018, 00:15 Mitch, notifications@github.com wrote:

Wooo... Well now I sure look dumb.

I had spawned it in my xinitrc as i hadn't had a sxkhdrc yet, I was just wanting to test!

ahaha. Apologies for my ignorance, though if its not in the readme that might be a good thing to add.

Aside question, why is this?

[image: image] https://camo.githubusercontent.com/ad80cce04d85220afd7d59f4288d29355d0e5715/68747470733a2f2f692e696d6775722e636f6d2f6b4853593135592e706e67

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tudurom/windowchef/issues/47#issuecomment-368350157, or mute the thread https://github.com/notifications/unsubscribe-auth/AKNZTFAryVIgW6fDLmjVm9jDCLAnCFdnks5tYduKgaJpZM4SSe7O .