fjvallarino/monomer

Set window type hint?

Opened this issue · 4 comments

what I want

I want my window to have a specific window type. It seems to be impossible to accomplish with monomer yet.

why it is good

Window managers will draw windows differently depending on their window type. For example, i3 will draw dialog windows as floating and other types of windows as tiled. Big difference!

how to get it

The way to have it may be similar to #30?…

Hi @kindaro!

Sorry for the delay. Does the SDL_WINDOW_POPUP_MENU flag listed here do what you need?

If it is something supported by SDL2 I can expose it, within reasonable limits (SDL2 is a really large library).

I'll close the issue for the time being. Please re-open if needed. Thanks!

Thank you Francisco. An onset of overwhelming sadness put me away from checking my inbox for a while so I did not see your answer. I am recovering and hopefully soon I could get back to my Monomer projects.

How can I detect if this flag does what I need? How do I pass it to Monomer? I am sorry if this is a dumb question. Please point me to the relevant haddock if there is one.

Judging from the name alone, it should work.

I cannot re-open this issue, no such button is offered anywhere I can see.

@kindaro I just re-opened the issue. I'll add the functionality and let you know.