You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the change / addition you'd like to see made
I was digging through the docs and looking at the source of some methods to find out if I could figure out if a specific window is currently floating or not. I could not find it. Excuse me if I missed something.
This would give users the ability to toggle floating windows.
All it would require is to add this to StackSet:
With that, I can write an action like this (not final):
pubfntoggle_float_focused<X:XConn>() -> Box<dynKeyEventHandler<X>>{key_handler(|state,x:&X| {let id = match state.client_set.current_client(){Some(&id) => id,None => returnOk(()),};let r = x.client_geometry(id)?;
x.modify_and_refresh(state, |cs| {if cs.is_floating(&id){
cs.sink(&id);}elseifletErr(err) = cs.float(id, r){// if this action where to be included in penrose// error!(%err, %id, "unable to float requested client window");}})})}
I can open a pull request if this functionality is desirable.
Is this completely new functionality, or an enhancement to existing functionality?
Just enhancing the existing code for dealing with floating windows.
What kind of feature is it that you are requesting?
Changes to core
A new layout
A hook implementation
A custom extension
New X interactions
Other
Is this a feature you have seen in other window managers?
i3 does have a floating toggle (eg. bindsym $mod+Shift+f floating toggle).
The text was updated successfully, but these errors were encountered:
I'd be happy to get this added if you are up for writing the PR @codybloemhard? I think it should also include toggle_floating (or maybe toggle_floating_state?) as a method directly on StackSet rather than users having to write the conditional behaviour themselves.
Please describe the change / addition you'd like to see made
I was digging through the docs and looking at the source of some methods to find out if I could figure out if a specific window is currently floating or not. I could not find it. Excuse me if I missed something.
This would give users the ability to toggle floating windows.
All it would require is to add this to
StackSet
:With that, I can write an action like this (not final):
I can open a pull request if this functionality is desirable.
Just enhancing the existing code for dealing with floating windows.
Is this a feature you have seen in other window managers?
i3 does have a floating toggle (eg.
bindsym $mod+Shift+f floating toggle
).The text was updated successfully, but these errors were encountered: