Bastien Dejean
71a2fb91b0
Allow multiple constraints for the *query* domain
...
Example:
bspc query -N -d '^3' -n .window
The above command will list the IDs of the windows of the third desktop.
2016-04-14 23:15:58 +02:00
Bastien Dejean
789cb8a504
Don't restrict node --flag
to windows
...
This fixes a regression introduced by e8aa679
.
2016-04-14 16:56:14 +02:00
Campbell Barton
73e402e49a
Fix missing NULL check
...
could crash when windows were unmapped within a script.
2016-04-12 06:09:15 +10:00
Bastien Dejean
0042db16f4
Only grab what needs to be grabbed
2016-04-11 20:26:48 +02:00
Bastien Dejean
867b427356
Use the proper type for the return value of getopt
2016-04-11 18:37:49 +02:00
Bastien Dejean
0a09f5e4fa
Don't return a freed node from insert_node
2016-04-11 18:13:05 +02:00
Bastien Dejean
5d01b48a04
Remove hard-wired node DIR fallback
2016-04-11 17:58:05 +02:00
Bastien Dejean
74f78ccd17
Remove obsolete descriptor
2016-04-11 17:51:24 +02:00
Campbell Barton
3eca593ef9
Cleanup: indentation
...
Mixing tabs/spaces
2016-04-11 07:27:28 +10:00
Bastien Dejean
56b543ef2d
Add getter for pointer_action<n>
2016-04-10 22:33:02 +02:00
Bastien Dejean
265aa0ecdb
Mention pointer_action<n> where it makes sense
2016-04-10 22:24:25 +02:00
Bastien Dejean
c6c52e240e
Don't needlessly ungrab/grab the buttons
2016-04-10 22:12:22 +02:00
Campbell Barton
81e5e72fa2
Make mouse button actions configurable
...
Previously this was possible via key bindings, since this operation was removed,
its useful to be able to configure which mouse keys do what.
This example swaps LMB/RMB
```
bspc config pointer_action1 resize_corner
bspc config pointer_action3 move
```
2016-04-11 06:03:50 +10:00
Bastien Dejean
6f0bfe9ce2
Fix default ICCCM input hint value
2016-04-10 14:34:24 +02:00
Bastien Dejean
1ff7191130
Fix typo
2016-04-09 14:08:54 +02:00
Bastien Dejean
12edac86fa
Reinstate built-in pointer bindings
2016-04-07 18:08:32 +02:00
Bastien Dejean
e1b5f77ef1
Fix ID format in test window
2016-03-29 12:33:28 +02:00
Bastien Dejean
3e60b44c29
Only allow null nodes for the PATH descriptor
...
Fixes #434 .
2016-03-27 10:48:57 +02:00
Bastien Dejean
bfffe8b1c7
Transfer nodes moved via configure requests
...
Fixes #431 .
2016-03-26 14:25:40 +01:00
Bastien Dejean
e8aa679cd1
Introduce receptacles
...
A receptacle is an unfocusable empty leaf node.
Receptacles are used for building a tree without creating windows.
Example:
bspc node -i
bspc node @/ -p east -i
bspc node @/2 -p north -i
bspc rule -a Abc:abc -o node=@/1
bspc rule -a Ijk:ijk -o node=@/2/1
bspc rule -a Xyz:xyz -o node=@/2/2
Fixes #259 .
2016-03-26 11:47:17 +01:00
Bastien Dejean
eb209d83bf
Update domain list in Bash and ZSH completions
2016-03-23 11:42:33 +01:00
Bastien Dejean
b098530201
Zero-pad printed IDs
...
It seems that people expect all IDs to have the same length (#361 ).
And the maximum possible ID is 0x1fffffff (cf. the X11 protocol).
2016-03-23 11:24:47 +01:00
Bastien Dejean
ebad909ed1
Fail verbosely
...
Along the way, we also fixed the handling of the `*_padding`,
`window_gap` and `border_width` settings. The previous behavior was the
result of a bad decision (9fed780
), as a response to #141 . Many issues
followed: #143 , #158 , #260 , etc. We now handle those settings as
intuitively as possible.
We also fixed a potential segfault in `cmd_node`, triggered by `bspc
node -d`[sic].
Fixes #402 #252 .
2016-03-21 14:28:04 +01:00
Bastien Dejean
1e3b13465b
Fix handling of ID/name frictions
...
It seems that `resource_base_id` isn't the lower bound of the set of
possible IDs.
2016-03-20 10:38:11 +01:00
Bastien Dejean
9ae96ebdcd
Add IDs to desktops and monitors
...
There's no constraints on desktop and monitor names, therefore, using a
desktop or monitor name as descriptor is ambiguous.
We put an end to this ambiguity by introducing desktop and monitor IDs.
`bspc query -{M,D}` now yields IDs instead of names.
Fixes #397 .
2016-03-16 15:15:27 +01:00
Bastien Dejean
212442e162
Don't try to print pointers as strings
2016-03-16 10:26:38 +01:00
Bastien Dejean
6b8719e4a2
Introduce VERCMD in Makefile
...
This is useful when the author has to make a release commit, in which
case `make doc` is required, but, because the tag doesn't exist yet, the
output of VERCMD won't be what we want. Therefore, we need to override
VERCMD for the *doc* target: `make VERCMD=false doc`.
2016-03-16 10:13:45 +01:00
Bastien Dejean
8356bfb88b
Fix VERSION definition in Makefile
...
Fixes #414
2016-03-15 17:06:25 +01:00
Bastien Dejean
fb505a1b40
Version 0.9.1
2016-03-15 10:14:20 +01:00
Bastien Dejean
4b538bca86
Update the stacking list when removing a node
...
Because `stack` isn't called in `focus_node`, when `n == NULL`.
2016-02-26 22:14:26 +01:00
Bastien Dejean
15cdc71573
Fix gcc warning regarding uninitialized variable
2016-02-26 22:08:59 +01:00
Bastien Dejean
7e5c4f25c3
Initially center the pointer on mon
...
Fixes #407 .
2016-02-26 15:28:42 +01:00
Bastien Dejean
c895ef0f0e
Extract geometric functions from helpers.c
2016-02-26 14:22:03 +01:00
Bastien Dejean
87a89ffeac
Don't change the index of the primary monitor
2016-02-24 10:55:24 +01:00
Bastien Dejean
dbaa2b377a
Sort monitors by natural visual hierarchy
...
Fixes #405 .
2016-02-23 21:19:12 +01:00
Bastien Dejean
2120dc366d
Don't add a monitor without desktops
2016-02-23 21:16:46 +01:00
Bastien Dejean
ed76b1f8a7
Use the term DESKTOP_SEL
consistently
2016-02-22 20:47:57 +01:00
Bastien Dejean
21f92abb46
Don't try to use a pointer after freeing it
2016-02-12 22:59:37 +01:00
Bastien Dejean
4402b6bae6
Don't try to guess the window rectangle
...
Fixes #394 .
2016-02-12 22:49:06 +01:00
Bastien Dejean
b8951ba11b
Don't generate redundant events in apply_layout
...
Fixes #393 .
2016-02-11 18:37:48 +01:00
Bastien Dejean
b973353a7d
Add event: monitor_swap
2016-02-01 11:46:03 +01:00
Bastien Dejean
b1d96531c4
Add global setting: *paddingless_monocle*
...
Fixes #365 .
2016-01-10 18:29:51 +01:00
Bastien Dejean
74166b039b
Handle non-leaf nodes in nearest_from_distance
...
Fixes #363 .
2016-01-07 10:18:32 +01:00
Bastien Dejean
eb1cae3128
Fix comment
2016-01-04 15:21:03 +01:00
Bastien Dejean
a0aa6dd1fa
Make the window ID printf format consistent
...
Fixes #361 .
2016-01-04 15:17:47 +01:00
Nathan Isom
f53950fd39
window --> node
2016-01-03 17:57:40 -06:00
Bastien Dejean
f382bbafd8
Fix misinterpreted asterisk in rule syntax
2016-01-02 11:31:46 +01:00
Bastien Dejean
5a9c710219
Only use characters from the ASCII charset
2016-01-02 11:16:59 +01:00
Bastien Dejean
c7364e0705
Document the optional tilde character
2016-01-02 11:13:30 +01:00
Bastien Dejean
dcc13f7e56
Skip unmapped windows in query_pointer
...
Fixes #353 .
2015-12-31 19:08:35 +01:00