Removed limit (screen resolution) on max window size, max_{width,height} == 0 now means unrestricted.
This commit is contained in:
parent
a2c61d4d5d
commit
64c9a446ba
2 changed files with 22 additions and 17 deletions
|
@ -1,7 +1,12 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 0.1.13:
|
Changes for 0.1.13:
|
||||||
*02/10/03:
|
*02/11/13:
|
||||||
* Fixed Toolbar worlspace label text color.
|
* Removed window size limitation, fixes Debian bug #159709 (Simon)
|
||||||
|
Window.cc
|
||||||
|
* Fixed geometry/position window size and alignment problem (Simon)
|
||||||
|
Screen.cc
|
||||||
|
*02/11/03:
|
||||||
|
* Fixed Toolbar workspace label text color.
|
||||||
Theme.cc
|
Theme.cc
|
||||||
*02/10/25:
|
*02/10/25:
|
||||||
* Icon.hh/cc renamed to Iconmenu.hh/cc
|
* Icon.hh/cc renamed to Iconmenu.hh/cc
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Window.cc,v 1.96 2002/10/29 16:24:54 fluxgen Exp $
|
// $Id: Window.cc,v 1.97 2002/11/12 14:54:45 rathnor Exp $
|
||||||
|
|
||||||
#include "Window.hh"
|
#include "Window.hh"
|
||||||
|
|
||||||
|
@ -210,8 +210,8 @@ tab(0) {
|
||||||
|
|
||||||
if ((client.normal_hint_flags & PMinSize) &&
|
if ((client.normal_hint_flags & PMinSize) &&
|
||||||
(client.normal_hint_flags & PMaxSize) &&
|
(client.normal_hint_flags & PMaxSize) &&
|
||||||
client.max_width <= client.min_width &&
|
client.max_width != 0 && client.max_width <= client.min_width &&
|
||||||
client.max_height <= client.min_height) {
|
client.max_height != 0 && client.max_height <= client.min_height) {
|
||||||
decorations.maximize = decorations.handle =
|
decorations.maximize = decorations.handle =
|
||||||
functions.resize = functions.maximize = false;
|
functions.resize = functions.maximize = false;
|
||||||
decorations.tab = false; //no tab for this window
|
decorations.tab = false; //no tab for this window
|
||||||
|
@ -1207,8 +1207,8 @@ void FluxboxWindow::getWMNormalHints() {
|
||||||
client.min_width = client.min_height =
|
client.min_width = client.min_height =
|
||||||
client.base_width = client.base_height =
|
client.base_width = client.base_height =
|
||||||
client.width_inc = client.height_inc = 1;
|
client.width_inc = client.height_inc = 1;
|
||||||
client.max_width = screen->getWidth();
|
client.max_width = 0; // unbounded
|
||||||
client.max_height = screen->getHeight();
|
client.max_height = 0;
|
||||||
client.min_aspect_x = client.min_aspect_y =
|
client.min_aspect_x = client.min_aspect_y =
|
||||||
client.max_aspect_x = client.max_aspect_y = 1;
|
client.max_aspect_x = client.max_aspect_y = 1;
|
||||||
client.win_gravity = NorthWestGravity;
|
client.win_gravity = NorthWestGravity;
|
||||||
|
@ -1225,8 +1225,8 @@ void FluxboxWindow::getWMNormalHints() {
|
||||||
client.max_width = sizehint.max_width;
|
client.max_width = sizehint.max_width;
|
||||||
client.max_height = sizehint.max_height;
|
client.max_height = sizehint.max_height;
|
||||||
} else {
|
} else {
|
||||||
client.max_width = screen->getWidth();
|
client.max_width = 0; // unbounded
|
||||||
client.max_height = screen->getHeight();
|
client.max_height = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizehint.flags & PResizeInc) {
|
if (sizehint.flags & PResizeInc) {
|
||||||
|
@ -1809,8 +1809,8 @@ void FluxboxWindow::maximize(unsigned int button) {
|
||||||
|
|
||||||
if (dw < client.min_width) dw = client.min_width;
|
if (dw < client.min_width) dw = client.min_width;
|
||||||
if (dh < client.min_height) dh = client.min_height;
|
if (dh < client.min_height) dh = client.min_height;
|
||||||
if (dw > client.max_width) dw = client.max_width;
|
if (client.max_width != 0 && dw > client.max_width) dw = client.max_width;
|
||||||
if (dh > client.max_height) dh = client.max_height;
|
if (client.max_height != 0 && dh > client.max_height) dh = client.max_height;
|
||||||
|
|
||||||
dw -= (dw % client.width_inc);
|
dw -= (dw % client.width_inc);
|
||||||
dw += client.base_width;
|
dw += client.base_width;
|
||||||
|
@ -2649,8 +2649,8 @@ void FluxboxWindow::propertyNotifyEvent(Atom atom) {
|
||||||
if ((client.normal_hint_flags & PMinSize) &&
|
if ((client.normal_hint_flags & PMinSize) &&
|
||||||
(client.normal_hint_flags & PMaxSize)) {
|
(client.normal_hint_flags & PMaxSize)) {
|
||||||
|
|
||||||
if (client.max_width <= client.min_width &&
|
if (client.max_width != 0 && client.max_width <= client.min_width &&
|
||||||
client.max_height <= client.min_height) {
|
client.max_height != 0 && client.max_height <= client.min_height) {
|
||||||
decorations.maximize = false;
|
decorations.maximize = false;
|
||||||
decorations.handle = false;
|
decorations.handle = false;
|
||||||
functions.resize=false;
|
functions.resize=false;
|
||||||
|
@ -3662,9 +3662,9 @@ void FluxboxWindow::right_fixsize(int *gx, int *gy) {
|
||||||
dx = client.min_width;
|
dx = client.min_width;
|
||||||
if (dy < (signed) client.min_height)
|
if (dy < (signed) client.min_height)
|
||||||
dy = client.min_height;
|
dy = client.min_height;
|
||||||
if ((unsigned) dx > client.max_width)
|
if (client.max_width > 0 && (unsigned) dx > client.max_width)
|
||||||
dx = client.max_width;
|
dx = client.max_width;
|
||||||
if ((unsigned) dy > client.max_height)
|
if (client.max_height > 0 && (unsigned) dy > client.max_height)
|
||||||
dy = client.max_height;
|
dy = client.max_height;
|
||||||
|
|
||||||
dx /= client.width_inc;
|
dx /= client.width_inc;
|
||||||
|
@ -3693,8 +3693,8 @@ void FluxboxWindow::left_fixsize(int *gx, int *gy) {
|
||||||
|
|
||||||
if (dx < (signed) client.min_width) dx = client.min_width;
|
if (dx < (signed) client.min_width) dx = client.min_width;
|
||||||
if (dy < (signed) client.min_height) dy = client.min_height;
|
if (dy < (signed) client.min_height) dy = client.min_height;
|
||||||
if ((unsigned) dx > client.max_width) dx = client.max_width;
|
if (client.max_width > 0 && (unsigned) dx > client.max_width) dx = client.max_width;
|
||||||
if ((unsigned) dy > client.max_height) dy = client.max_height;
|
if (client.max_height > 0 && (unsigned) dy > client.max_height) dy = client.max_height;
|
||||||
|
|
||||||
dx /= client.width_inc;
|
dx /= client.width_inc;
|
||||||
dy /= client.height_inc;
|
dy /= client.height_inc;
|
||||||
|
|
Loading…
Reference in a new issue