Last active
August 16, 2018 14:50
-
-
Save vl-80/091a51481ea3a7e353a0cd9b11d1bc67 to your computer and use it in GitHub Desktop.
Blackbox fullscreen title bar patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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