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

Ignore Motif hints on window when swallowed by placeholder #5663

Closed
wants to merge 1 commit into from

Conversation

njhanley
Copy link

@njhanley njhanley commented Sep 9, 2023

A layout placeholder's border style should be preserved when swallowing a matching window, regardless of any Motif hints.

Closes #5438

Copy link
Member

@orestisfl orestisfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/manage.c Outdated Show resolved Hide resolved
@orestisfl
Copy link
Member

Actually, considering this case:

  1. window has Motif hints
  2. placeholder has no border style

wouldn't it be valid to maintain the style dictated by Motif hints?

A layout placeholder's border style should be preserved when swallowing
a matching window, regardless of any Motif hints.
@njhanley
Copy link
Author

Could you give an example use case? I can't imagine wanting to restore a layout and not caring about the style.

There's currently no such thing as a placeholder with no border style; placeholders are containers and take the default style on creation. We could add the concept of implicit default style with a new border_style_t variant (BS_UNDEFINED = -1 for example) or a placeholder-specific flag on Con, but I'm not convinced it's worth it.

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

Successfully merging this pull request may close these issues.

Windows with _MOTIF_WM_HINTS disregard placeholder border styles when swallowed
2 participants