fixed bug [ 552723 ] removing decorations while shaded in toggleDecor
fluxgen fluxgen
1 files changed,
5 insertions(+),
1 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.49 2002/05/07 13:31:11 fluxgen Exp $ +// $Id: Window.cc,v 1.50 2002/05/07 13:50:34 fluxgen Exp $ #include "Window.hh"@@ -3510,6 +3510,10 @@ }
void FluxboxWindow::toggleDecoration() { static bool decor = false; + //don't toggle decor if the window is shaded + if (isShaded()) + return; + if (!decor) { setDecoration(DECOR_NONE); decor = true;