mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Merge pull request #510 from psychon/fixups_size_hints
Fix client_apply_size_hints()
This commit is contained in:
commit
f29264064f
1 changed files with 2 additions and 2 deletions
|
@ -702,7 +702,7 @@ client_apply_size_hints(client_t *c, area_t geometry)
|
|||
/* Size hints are applied to the window without any decoration */
|
||||
client_remove_titlebar_geometry(c, &geometry);
|
||||
|
||||
if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE)
|
||||
if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE)
|
||||
{
|
||||
basew = c->size_hints.base_width;
|
||||
baseh = c->size_hints.base_height;
|
||||
|
@ -721,7 +721,7 @@ client_apply_size_hints(client_t *c, area_t geometry)
|
|||
minw = c->size_hints.min_width;
|
||||
minh = c->size_hints.min_height;
|
||||
}
|
||||
else if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_P_SIZE)
|
||||
else if(c->size_hints.flags & XCB_ICCCM_SIZE_HINT_BASE_SIZE)
|
||||
{
|
||||
/* min size is substituted with base size if not specified */
|
||||
minw = c->size_hints.base_width;
|
||||
|
|
Loading…
Reference in a new issue