Skip to content

Commit

Permalink
decorations: fix tiled windows behaviour on mouse resize
Browse files Browse the repository at this point in the history
  • Loading branch information
jonian committed Sep 8, 2018
1 parent 5512480 commit 9b434a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unite@hardpixel.eu/modules/windowDecoration.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ var WindowDecoration = new Lang.Class({

_updateTitlebar: function () {
let window = global.display.focus_window;
let toggle = window && window.get_maximized() !== 0;
let toggle = window;

if (this._enabled == 'both') {
toggle = window && window.get_maximized() !== 0;
}

if (toggle && Helpers.isValidWindow(window)) {
if (Helpers.isMaximized(window, this._enabled)) {
Expand Down

0 comments on commit 9b434a3

Please # to comment.