Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable_last_window_focusing true and group_toggle #70

Closed
neyuki opened this issue Jan 6, 2021 · 9 comments
Closed

enable_last_window_focusing true and group_toggle #70

neyuki opened this issue Jan 6, 2021 · 9 comments

Comments

@neyuki
Copy link

neyuki commented Jan 6, 2021

Hello, if i have enable_last_window_focusing on and have a window in group X
then that window opens a dialog window in same group X. After that (2 windows in group X with focused second one) I do group_toggle. Only second one window that was focused is removed. Main one still there.

Is that a normal behavior?

@tudurom
Copy link
Owner

tudurom commented Jan 6, 2021 via email

@neyuki
Copy link
Author

neyuki commented Jan 7, 2021

second one, the dialog, that was focused. main one is still there. but it is a group toggle, why them both doesn't get lost?

@tudurom
Copy link
Owner

tudurom commented Jan 7, 2021

Windowchef does not add dialog windows to the group of the parent automatically. I think that can be accomplished by respecting the ICCCM WM_TRANSIENT_FOR property. However, there is currently no such functionality.

@neyuki
Copy link
Author

neyuki commented Jan 7, 2021

ok it doesn't. but you can do it. with ruler or just manual, after dialog win is appear.

@tudurom
Copy link
Owner

tudurom commented Jan 7, 2021

i am going to close the issue, it is normal behaviour.

If you want to submit a PR to automatically add dialogs to the group based on WM_TRANSIENT_FOR, I will accept it.

@tudurom tudurom closed this as completed Jan 7, 2021
@neyuki
Copy link
Author

neyuki commented Jan 8, 2021

How it's work right now:

if enable_last_window_focusing is 0, any windows in group despite their type is removed by group toggle.
if enable_last_window_focusing is 1, after dialog window appear and focused group toggle will remove only it, but main window will still be there (tested on firefox and it "save as" dialog).

Can u explain me a logic, isn't a group is superior in hierarchy? If i have some windows in group irrelevant their type, relationship with each other, anything else, group toggle must shut all of them.

I have a "ruler" what says what kind of windows belong to group. I have a group toggle.

@tudurom
Copy link
Owner

tudurom commented Jan 8, 2021

Can you try the issue_68 branch?

@tudurom
Copy link
Owner

tudurom commented Jan 8, 2021

if enable_last_window_focusing is 0, any windows in group despite their type is removed by group toggle.
if enable_last_window_focusing is 1, after dialog window appear and focused group toggle will remove only it, but main window will still be there (tested on firefox and it "save as" dialog).

Can u explain me a logic, isn't a group is superior in hierarchy? If i have some windows in group irrelevant their type, relationship with each other, anything else, group toggle must shut all of them.

I think I get it, are you reporting the exact problem as #68?

@neyuki
Copy link
Author

neyuki commented Jan 9, 2021

just checked issue_68 branch, no, it doesn't solve that question for me.

still, if enable_last_window_focusing is true, dialog window dissapear but main one is still there for group toggle.

may be it is because: group toggle remove all group windows, but last window is focused again and show up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants