Bastien Dejean
36f740f98b
Trust WM_TAKE_FOCUS but handle exceptions
2015-11-07 10:49:33 +01:00
Bastien Dejean
52f7ff3dfd
Handle stacking of unfocused windows
...
Put focused (resp. unfocused) window at the top (resp. bottom) of the
group of windows having the same stacking level.
2015-11-05 22:05:07 +01:00
Bastien Dejean
f28f33448f
Make a clear distinction between states and flags
2015-11-05 14:00:49 +01:00
Bastien Dejean
f08e7073a2
Restore previous layer when exiting fullscreen
2015-11-03 09:42:09 +01:00
Bastien Dejean
516c9741f2
Limit layer inheritance to floating windows
2015-11-01 17:43:44 +01:00
Bastien Dejean
4ceced688a
Restore natural constraints on fullscreen windows
...
Put fullscreen windows in the ABOVE layer by default.
Let *x*, and *y* be two windows in the same desktop. *y* is focused and
its fullscreen state is *on*. When *x* requests the focus: if *x* is
below *y*, then the fullscreen state of *y* is toggled.
2015-11-01 14:05:18 +01:00
Bastien Dejean
40cdd64a7b
Rewrite the stacking engine
...
Stacking now involves 3 layers: BELOW, NORMAL and ABOVE.
In each layers, floating windows are stacked above tiled windows.
The *stack* function is now extremely simple: it just inserts an item in
a sorted list, relying on *stack_cmp* to compare clients.
Fullscreen windows are no longer special.
2015-10-26 20:56:56 +01:00
Bastien Dejean
fea7dbc26c
Make the window_manage
event more verbose
2015-08-17 12:02:16 +02:00
Bastien Dejean
3959428990
Emit all window_state events
2015-08-17 11:53:27 +02:00
Bastien Dejean
dccb5e7be2
Add a few subscriber events
2015-08-01 14:37:15 +02:00
Bastien Dejean
639763c906
Reinstate the motion recorder for FFP
...
Because many clients (e.g. termite) prevent us (maybe unknowingly) from
capturing motion events on their windows, we're forced to create a
window for this sole purpose.
Grabbing the pointer isn't an option, because it forces us to consider
some of the enter notify events we should be ignoring.
2015-06-12 22:05:22 +02:00
Bastien Dejean
36decdad62
Propagate FFP_MASK
2015-06-11 09:58:05 +02:00
Bastien Dejean
939530c9bd
Remove unused function
2015-06-09 20:56:05 +02:00
Bastien Dejean
56895ab9ab
Implement focus_follows_pointer via enter notify events
...
The implementation based on a motion recorder had bad side effects.
2015-06-06 18:25:20 +02:00
Bastien Dejean
9dd581faaf
Allow subscribers to choose what they listen to
2015-05-09 21:12:19 +02:00
Bastien Dejean
931a519947
Don't try to set the split ratio of NULL
...
Fixes #215
2015-02-22 10:19:24 +01:00
Bastien Dejean
9f2065540e
Add rule consequence: split_ratio
...
Fixes #214
2015-02-21 10:14:27 +01:00
Bastien Dejean
c49bc92d12
Use generic BSD 2-clause license
...
Fixes #176
2014-10-22 11:53:03 +02:00
Bastien Dejean
b7fa492602
Add setting: pointer_follows_focus
2014-10-22 11:24:51 +02:00
Bastien Dejean
6f32affb5d
Add new rule consequence: border
2014-08-14 18:14:25 +02:00
Bastien Dejean
d2abc2d20e
New setting: merge_overlapping_monitors
2014-05-05 11:54:49 +02:00
Bastien Dejean
76cd787937
Fix window centering
2014-02-09 16:57:14 +01:00
Bastien Dejean
d59fadd8ce
Turn the *border_width* setting into a desktop/window setting
2014-02-09 14:47:27 +01:00
Bastien Dejean
167bd82d8e
Center windows that don't specify an initial position
2014-02-08 19:01:50 +01:00
Bastien Dejean
f6878c5ebd
Remove *lower* rule consequence
2014-02-06 21:00:46 +01:00
Bastien Dejean
8702ebf955
Don't try to set the split direction of *NULL*
2014-02-02 14:26:45 +01:00
Bastien Dejean
ac0d0dcac2
Add new rule consequence: split_dir
2014-02-02 14:10:44 +01:00
Bastien Dejean
b9dcab1900
Remove trailing spaces in headers
2014-01-19 14:41:37 +01:00
Bastien Dejean
c231e8cf41
Indentation: convert spaces to tabs
...
http://lea.verou.me/2012/01/why-tabs-are-clearly-superior/
2014-01-18 16:30:00 +01:00
Bastien Dejean
f8b489b647
Prevent pointer actions on an unmanaged window
2014-01-12 21:17:35 +01:00
Bastien Dejean
b47c758ad5
Handle min/max window size hints
2014-01-09 14:58:54 +01:00
Bastien Dejean
3250438d7c
Update the insertion point if the target desktop changes
2014-01-05 10:43:13 +01:00
Bastien Dejean
50c6f10182
Add new rule consequence: window=WINDOW_SEL
2014-01-04 21:25:57 +01:00
Bastien Dejean
edcb1f9aec
Show window instance names in the output of query -T
2014-01-04 11:07:20 +01:00
Bastien Dejean
56d17d8572
Update the window border when pseudo-focusing
2013-12-31 18:05:30 +01:00
Bastien Dejean
0073eff5dc
Simply treat transient windows as floating windows
...
http://tronche.com/gui/x/icccm/sec-4.html#WM_TRANSIENT_FOR
2013-12-29 19:53:42 +01:00
Bastien Dejean
48e0043f84
Implement the pseudo-tiled window state
2013-12-27 14:23:25 +01:00
Bastien Dejean
e0b6cd3cd4
*Frames* are unnecessary
...
The padding settings are sufficient for this.
2013-12-27 10:43:37 +01:00
Bastien Dejean
cd97a3290a
Reinstate the *rule* command
...
External rules are truly optional. At last.
2013-12-12 14:38:48 +01:00
Bastien Dejean
7df593f4e8
Handle clients outside of every monitors
2013-11-28 11:32:20 +01:00
Steven Allen
e401b427b9
Don't schedule windows twice.
2013-11-09 12:32:31 -05:00
Bastien Dejean
4451d8f0e7
Asynchronously parse rule command output
2013-11-08 20:31:23 +01:00
Bastien Dejean
948b8046f7
Externalize rules
2013-11-05 20:09:24 +01:00
Bastien Dejean
de94ecb267
Add a floating state to desktops
...
Modifying the floating state of a desktop doesn't change the floating
state of the existing windows.
2013-11-03 23:01:31 +01:00
Bastien Dejean
c989aa7efc
Merge translate_position and translate_client
...
- Expand `underlying_monitor` into `monitor_from_client` to avoid
passing a NULL pointer to `translate_client`.
- Remove the `fit_monitor` setting (use the `--center` rule effect
instead).
- Don't remap a window in it's last location (node invisibility would be
the proper way to do this).
- Call `translate_client` after configure requests.
2013-10-27 11:25:34 +01:00
Steven Allen
344ab2d269
Relatively translate floating clients to the correct monitor
2013-10-26 15:36:05 -04:00
Bastien Dejean
d3c624e8f6
Handle remapped windows in manage_window
2013-10-23 22:53:18 +02:00
Bastien Dejean
ae1ed3b795
New setting: fit_monitor
2013-10-23 22:20:34 +02:00
Bastien Dejean
44ab9fc037
Express initial position in monitor referential
2013-10-22 16:06:47 +02:00
Bastien Dejean
dc805f9a6a
Consolidate fit_monitor
2013-10-20 20:33:34 +02:00