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
added 'disable_titlebar' option #8026
base: master
Are you sure you want to change the base?
Conversation
I would like to see the ability to toggle this on a per-window basis (much like we can toggle That said, I have absolutely no objection to this approach being merged. |
Hmm, why not? Particularly this commit focused on total disable any titlebars. IMO, need to add another option and (new commit) way for hotkey with toggle behavior switcher. If need this stuff, again, why not? For example - press Mod+t - disable titlebar on focused window? Am I right? P.S. My English is so terrible, sorry for that. |
We need this |
Following feedback from @y0nei, this pull request need to be update to render the top border if the titlebar is not I think I'll fix it here later... Sway 1.9 came out a week or two ago xD and I prefer stable version of Wlroots, because Wlroots-dev did not like my mpv player... |
@Nefsen402. I need a help with this patch. In this commit 869baff u reorganize structure of Sway project (clear sway/desktop/ folder, and this is amazing (removed render behind scene)) and move render to the sway/desktop/transaction.c. Maybe I'm wrong and the render is located in a different place. So here it says a big tree with a rendering boundary (NONE, PIXEL, NORMAL), titlebar and stuff. I see, u are trying to fix removing or not rendering the Titlebar. Here in the
This behavior did not work for me. For example i set in config I mean, maybe this area (line 288 Sorry, this is my first request and I don't know the rules or form for making such requests. |
However, it might be beneficial to keep the current behavior. The top border size can be manually set to 0 by the user if they truly don't want any top decorations of any kind. |
Thanks for the quick and detailed answer. Not everything is so clear here. For your recommendation top border did not showed if we remove titlebar, because rendering happens below. So, I'm stuck, need copy render func in this construction if (wants to disable title bar) {
title_bar = false;
border_top = blah-blah
...
wlr_scene_node_set_enabled(&con->border.top->node, true);
} or insert inside "if" more checking? } else if (con->current.border != B_NORMAL && config->disable-titlebar) {
//copy here code for initial size and render border_top
} Again. Borders shows in NORMAL and PIXEL modes. If i disable titlebar in this modes showed empty space without color where we want see border_top |
After researching and testing TABBED mode with borders, I found this configuration to be unfortunate for this mode, the borders made it difficult to hit the scrollbar by mouse... So maybe, but not necessary to be fixed manpages to recommend options with |
I'm looking forward for at least to disable title on |
use working solution today, @tmpm697 xD - https://github.com/neuromagus/disable_titlebar_in_sway |
tks @neuromagus , hope it merged soon, critical to one of my favourite workflow. |
Thanks for patch! Works as intended |
Hey folks, I tested this patch against sway-1.9, it compiles and works fine. Great job! I still see a titlebar when the window opacity is set to < 1. Is that expected or? Here's the rendering + configuration: https://gist.github.com/tormath1/3188521f928f4584d2363ce5eb416858 |
@neuromagus thanks for sharing the 1.9 patch, it works as expected. Looking forward to see this merged and sorry for the noise 🙇 |
In terms of command design:
|
why not?
I think it's better to remove titlebars completely, no "empty strings", just remove (before we used a hack with font 0 and... better disable titlebar completely (don't allocate window space, don't call a function for format Titlebar et cetera), IMO) :} What do you think?
This is separate entity, IMHO. Someone want borders without titlebars... |
@emersion
|
thats a issue on your side, working perfectly with my internet connection. |
ok, how to restart build test? |
I fix my previous commit to master branch.
My patch fixed this issue #7409 (comment)
and you fixed the rendering so my patch is more trivial. Amazing work, guys.