~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to workspace_manager.c

  • Committer: Matthew Fuller
  • Author(s): Maxime Soulé
  • Date: 2018-03-26 16:44:54 UTC
  • mto: (614.1.31 randr)
  • mto: This revision was merged to the branch mainline in revision 644.
  • Revision ID: fullermd@over-yonder.net-20180326164454-ytjak60vrgyqexwb
Some geometries can be relative to a monitor

It's the case for:
- f.moveresize `geometry`
- WindowBox
- WindowGeometries
- WorkSpaceManagerGeometry


git: 29a214153ebe2e7f12bc8bc227cbd65c5b4416fb

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "win_utils.h"
30
30
#include "workspace_manager.h"
31
31
#include "workspace_utils.h"
 
32
#include "xparsegeometry.h"
 
33
 
32
34
 
33
35
#include "gram.tab.h"
34
36
 
349
351
                        bheight = 22;
350
352
 
351
353
                        /* Adjust to WSMGeometry if specified */
352
 
                        mask = XParseGeometry(geometry, &x, &y, &width, &height);
 
354
                        mask = RLayoutXParseGeometry(Scr->Layout, geometry, &x, &y, &width, &height);
353
355
                        if(mask & WidthValue) {
354
356
                                bwidth = (width - (columns * hspace)) / columns;
355
357
                        }