Skip to content

Instantly share code, notes, and snippets.

@vl-80
Last active August 16, 2018 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vl-80/091a51481ea3a7e353a0cd9b11d1bc67 to your computer and use it in GitHub Desktop.
Save vl-80/091a51481ea3a7e353a0cd9b11d1bc67 to your computer and use it in GitHub Desktop.
Blackbox fullscreen title bar patch
--- old/src/Window.cc 2005-10-18 04:01:41.000000000 -0400
+++ new/src/Window.cc 2018-08-16 10:23:47.852164406 -0400
@@ -167,6 +167,14 @@
if (!(decorations & WindowDecorationTitlebar))
functions &= ~WindowFunctionShade;
+ // Remove decorations for windows in fullscreen mode
+ if (ewmh.fullscreen) {
+ decorations = NoWindowDecorations;
+ functions &= ~(WindowFunctionMove |
+ WindowFunctionResize |
+ WindowFunctionShade);
+ }
+
// disable grips and maximize if we have a fixed size window
if ((wmnormal.flags & (PMinSize|PMaxSize)) == (PMinSize|PMaxSize)
&& wmnormal.max_width <= wmnormal.min_width
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment