mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
feat: under-cursor window placement
With under-cursor placement, new top-level windows will be centered under the cursor rather than centered on the active view.
This commit is contained in:
parent
ce3c5ab958
commit
ef62d47ad1
8 changed files with 51 additions and 8 deletions
|
|
@ -20,6 +20,11 @@ enum window_switcher_field_content {
|
|||
LAB_FIELD_TITLE,
|
||||
};
|
||||
|
||||
enum view_placement_policy {
|
||||
LAB_PLACE_CENTER = 0,
|
||||
LAB_PLACE_CURSOR
|
||||
};
|
||||
|
||||
struct usable_area_override {
|
||||
struct border margin;
|
||||
char *output;
|
||||
|
|
@ -40,6 +45,7 @@ struct rcxml {
|
|||
int gap;
|
||||
bool adaptive_sync;
|
||||
bool reuse_output_mode;
|
||||
enum view_placement_policy placement_policy;
|
||||
|
||||
/* focus */
|
||||
bool focus_follow_mouse;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue