martyr-deepin / deepin-wm

Deprecated, consider create and maintain your own fork if you love it.
GNU General Public License v3.0
72 stars 30 forks source link

Hiding title bar #45

Open aksh1618 opened 5 years ago

aksh1618 commented 5 years ago

Is it possible to hide/disable title bars with deepin-wm? For instance, I'd like to diable the title bar for deepin terminal. A direct option to hide specific window title bars would be awesome!

aiamuzz commented 5 years ago

tried hitting F11 on the terminal window ?

aksh1618 commented 5 years ago

Yeah, full screen works, I wanna hide it in any window size.

aiamuzz commented 5 years ago

I wanna hide it in any window size.

it already works on almost all applications ... just hit F11 ... on the applications you want a full screen ... where ever applicable it will adapt ...

aksh1618 commented 5 years ago

@aiamuzz But I don't want full screen! I want the title bar to disappear in windowed mode. Something like this:

deepinscreenshot_desktop_20181228185849

aiamuzz commented 5 years ago

oh ... ok ... never come across it before ...

sonald commented 5 years ago

@aksh1618 deepin-terminal is just like gedit, which all use CSD (client side decoration), and this is out of control of a window manager. plz send feature request to deepin-terminal project :)

aksh1618 commented 5 years ago

@sonald Deepin terminal is just an example, I want to be able to do this with any application (Firefox, VS Code etc.). Window decorations are controlled by a window manager, aren't they?

sonald commented 5 years ago

window manager works by following some protocols (i.e ICCCM and wm-spec),that said some features are results of coopration between wm and clients. only when a client demand explicitly then wm will hide title bar. this is basically all tiling window manager do. there is no turning-off button from wm side.

aksh1618 commented 5 years ago

@sonald Is that accurate? This seems to suggest that kwin, pekwm, fvwm, openbox, beryl, ion3, dwm, twm, fluxbox, enlightenment and metacity all support this feature.

sonald commented 5 years ago

@aksh1618 that's exactly what I means, this is a protocol feature. normal the apps decide weather they need titlebar or not, and wm just provide this mechanism not strategy.

however some wms chooses to expose it explicitly, some are not. mutter (from which deepin-wm derives) and metacity does not expose this. This is more like a design decision. when you hide titlebar, there'll be no sensible way to interact with it then. if you wanna no titlebar, better with a tiling wm like i3 or awesome etc. I think DDE works with these wms.

aksh1618 commented 5 years ago

@sonald Cool, I get what you are saying. I'll try using other WMs with DDE.

mamyn0va commented 5 years ago

@aksh1618 that's exactly what I means, this is a protocol feature. normal the apps decide weather they need titlebar or not, and wm just provide this mechanism not strategy.

however some wms chooses to expose it explicitly, some are not. mutter (from which deepin-wm derives) and metacity does not expose this. This is more like a design decision. when you hide titlebar, there'll be no sensible way to interact with it then. if you wanna no titlebar, better with a tiling wm like i3 or awesome etc. I think DDE works with these wms.

@sonald Hi, but even in i3 the title bar of deepin-terminal remains visible.

BLumia commented 5 years ago

@sonald Hi, but even in i3 the title bar of deepin-terminal remains visible.

Because deepin-terminal use Client Side Decoration :)

deepin-terminal also some custom config support for tiling wm user, btw. You can take a look at the project README.