Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redesign of layout Window options and init, and implement new window …
…options - "pos" and "size" options can be relative to the width/height of the screen by using a percentage (example : pos=50%x20%). - If a percentage is used for "pos", the window will be centered on this position by default. This can be changed by appending a percentage relative to the size of the window. For example "pos=50%-50%x0+10%" will put the window at x= screenwidth/2 - windowwidth/2 and y= 0 + windowheight/10 - add transparent=1 window option, it requires Cairo and a compositing window manager to work - add insensitive=1 window option, it makes the window completely insensitive to mouse or keyboard. - it is now possible to specify options with the name of a layout example : OpenCustom(NameOfLayout(pos=100%x50%)) will open the window at the bottom center - add "uniqueid" and "ifexist" window options. uniqueid is a string id that default to the layout id. ifexist define the action to take when attempting to create a window with the same uniqueid as an existing window, it can be : 'toggle' : to close the existing window 'present' : to bring the existing window to the front 'replace' : to close the window and open a new window
- Loading branch information
Showing
5 changed files
with
248 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.