linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
453 stars 73 forks source link

Override default window height #551

Closed snackk closed 6 years ago

snackk commented 6 years ago

I am trying to override the default window height, so when i maximize a window it look like this:

Wanted Behaviour

Actual Behaviour

Is this possible? What do i have to do to make it work?

sonald commented 6 years ago

what is the translucent bar on the top ? if it's written by yourself, you should set _NET_WM_STRUT_PARTIAL to tell wm to leave the top area untouched.

snackk commented 6 years ago

I'am using conky with this config file: https://github.com/snackk/arch-config-files/blob/master/conky/conkyrc I think conky is setting to _NET_WM_WINDOW_TYPE_DOCK instead of _NET_WM_STRUT_PARTIAL. Or am i missing something??

sonald commented 6 years ago

I know nothing about conky, but what keeps wm from occupying an area is the property _NET_WM_STRUT_PARTIAL. I doesn't matter if it's _NET_WM_WINDOW_TYPE_DOCK type of window. use xprop to check the top conky window if _NET_WM_STRUT_PARTIAL is set.

snackk commented 6 years ago

That's what i'am going to do then :D. Thanks you.