-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
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? |
To nitpick, a titlebar has "padding", and a window has either a top border ( I imagine users want the
The
The problem is that stacking and tabbed do not respect In that sense, the goal is not to "disable the titlebar" - we have two toggles for that already in
The second option would probably be the easiest to wire up. I don't mind the last option either, but it has IPC consequences and might not be worth it. EDIT: Expanded the |
IMO, need a simpler config name. "pixel"?
this is not a problem. If you disable the titlebar, you create (or render) container with respects new rules. Sorry for my eng, how this stuff realized in Sway: In my opinion - option "disable titlebar" need to set alone, border size set to another config group. Maybe later we need to update titlebar render, some containers show titlebar, some not... |
Those are the existing names from i3, so changing those is not an option.
The linked issues are all about having titlebar also be removed for Bugs aside (including not reinstalling the top border when removing the titlebar), this also the only functional difference your PR provides over
The titlebar is already controlled by the |
Personally, I wouldn't mind seeing the top border for tabbed windows too. It always felt kind of weird that tabbed windows only have three (right, left, bottom) borders).
Perhaps we want a setting to enable/disable titlebars for containers, since tabbed titlebars actually belong to the container itself, no? |
Nice to read this. Well, we need to add this functionality to "stacking/tabbed" or other layouts (set global behavior)!.. And maybe add hotkey for enable/disable titlebar for this and only this container(window)?
ah ;} |
In case of stacked/tabbed, the titlebar for children is drawn by the parent container, whereas for splitv/splith/floating, the titlebar is drawn by the child containers. That's also just an implementation detail, from the user perspective the titlebar is above the child container regardless of how it got there. |
yep. |
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.