hwangcc23
44367572c9
Display which config is used in --more_version
...
In the output of i3 --moreversion,
display the path of the used config and its last modified time.
2015-07-10 22:54:25 +08:00
Ingo Bürk
c073de8d26
Remove asserts and return non-match instead if the container or its workspace cannot be found.
...
This can cause an issue if used in combination with for_window and i3bar during startup of i3 otherwise.
fixes #1774
2015-07-01 11:47:55 +02:00
Michael Stapelberg
6be1b28813
Merge pull request #1771 from Airblader/feature-1769
...
Implement new criterion 'workspace'.
2015-06-30 13:52:54 -07:00
Michael Stapelberg
7c1abc9ab0
Merge pull request #1772 from Airblader/feature-fix-newline
...
Added missing newlines in log statements.
2015-06-30 13:52:48 -07:00
Ingo Bürk
be406d036d
Implement new criterion 'workspace'.
...
If the match expression is a plain number (e.g., '99'), the number of a workspace will be compared strictly. Otherwise, the match expression is taken as a regular expression and compared against the workspace's name.
This allows all of the following:
for_window [workspace=5] ...
for_window [workspace="5:foo"] ...
for_window [workspace="foo"] ...
fixes #1769
2015-06-30 20:53:52 +02:00
Michael Stapelberg
f76838794d
Merge pull request #1768 from hwangcc23/atoi2strtol
...
Fix TODO in src/bindings.c
2015-06-30 11:50:28 -07:00
Ingo Bürk
94a09b3cac
Added missing newlines in log statements.
2015-06-30 20:48:35 +02:00
hwangcc23
478dc5dc38
Fix TODO by replacing atoi by strtol
...
Fix TODO in bindings.c.
There is no problem to use atoi here since either keycode 0 or button0 is invalid.
But strtol is more flexible and is recommanded for conversion.
2015-06-30 22:22:56 +08:00
Michael Stapelberg
8df7e4ecb9
Merge pull request #1747 from Airblader/feature-1723
...
Implement "title_format"
2015-06-29 00:24:59 -07:00
Ingo Bürk
5a8d66a1d5
Parse the title_format and display the customized window title if a format was set.
...
The format string set with "title_format" can contain the placeholder "%title" which will be replaced with the actual window title.
By not overwriting window->name itself, we make sure that assignment matching still works as expected.
fixes #1723
2015-06-29 09:13:31 +02:00
Ingo Bürk
55e8d06ee4
Added command directive 'title_format'.
...
This directive will be used to customize the window title.
2015-06-29 09:13:31 +02:00
Michael Hofmann
bad4203755
Configurable tray padding.
2015-06-28 00:14:37 +02:00
Michael Stapelberg
696d844ffa
Merge pull request #1697 from Airblader/feature-1695
...
Extend mouse commands on i3bar
2015-06-18 20:50:56 +02:00
Ingo Bürk
9eb255d5fa
Ensure format of dumped bindings for i3bar is compatible with i3 bindings.
...
fixes #1695
2015-06-18 19:28:24 +02:00
Michael Stapelberg
34183b97fd
Merge pull request #1744 from Airblader/feature-docs-7
...
Documentation Improvements
2015-06-13 12:39:59 +02:00
Ingo Bürk
9940571069
Fix documentation for border styles.
2015-06-12 17:54:54 +02:00
Ingo Bürk
52c72e9007
Remove redundant and broken check for '\0'.
...
fixes #1742
2015-06-09 22:14:56 +02:00
Ingo Bürk
2b6f76852c
Implement i3's logic for maintaining a list of 'bindsym' directives and passing it to i3bar through the IPC.
2015-06-05 12:30:53 +02:00
Ingo Bürk
ab12d3fc74
Add new command skeleton 'bindsym <button> <command>' for 'bar' block.
2015-06-05 12:30:53 +02:00
Michael Stapelberg
6b505d8aca
Merge pull request #1733 from Airblader/feature-1732
...
Added a separate color directive for the binding mode indicator
2015-06-02 08:35:14 +02:00
Ingo Bürk
dd2e10868c
Fix warning about potentially uninitialized variable.
2015-06-01 17:10:10 +02:00
Ingo Bürk
9b691bcca2
Introduce a config directive 'binding_mode' in the 'bar' config, pass it through the IPC and parse it in i3bar.
2015-05-31 16:49:09 +02:00
Ingo Bürk
27e50b827c
Use XCB_NONE instead of hard-coded 0.
2015-05-29 23:49:42 +02:00
Ingo Bürk
3c11f27201
Allow hovering over the window decoration to change the focus if the parent container is split horizontally or vertically.
...
fixes #1056
2015-05-29 23:49:37 +02:00
Ingo Bürk
b22a9ce617
Improve logging of button events.
2015-05-26 16:57:25 +02:00
Ingo Bürk
00c2fe4b69
Grab all buttons when managing a window to also allow 'bindsym --whole-window button4 …' to work correctly.
...
fixes #1701
2015-05-26 16:56:00 +02:00
Michael Stapelberg
da064cc08f
Merge pull request #1698 from Airblader/feature-1696
...
Added 'move position mouse'
2015-05-17 15:02:50 +02:00
Ingo Bürk
8801de2399
Protect "move position mouse" against a NULL access.
...
This could happen if two outputs are set up to have a gap in between them and the mouse cursor
being in said gap when the command is triggered.
2015-05-14 13:07:56 -04:00
Ingo Bürk
4a585748a4
Implemented new command 'move [window|container] [to] position mouse|cursor|pointer
...
fixes #1696
2015-05-12 17:46:06 -04:00
Tony Crisci
a74662052a
Detect base 16 in cmd criteria
...
Try to detect base 16 numbers given to `con_id` and `id` for command criteria
by setting the base of strtol to 0. This should also detect octal.
This is necessary because mouse bindings now may be serialized as hex as of
5c32de4
.
2015-05-12 17:04:01 -04:00
Michael Stapelberg
be2634c91f
Merge pull request #1693 from mh21/wm-class-garbage-no-copy
...
Don't duplicate property value on class change.
2015-05-06 23:55:47 -07:00
Michael Hofmann
f2542fc413
No memcpy on class change.
2015-05-06 16:33:15 +02:00
Michael Stapelberg
66a1fa7d46
Merge pull request #1638 from hwangcc23/fix-1489
...
Add a timeout: delay_exit_on_zero_displays
2015-05-05 00:43:43 -07:00
Michael Stapelberg
1aa42794ed
Merge pull request #1685 from Deiz/fix-new-workspace-float
...
Initialize workspace rect to the output's upon creation
2015-05-02 08:24:54 -07:00
Deiz
f0f906a52e
Initialize workspace rect to the output's upon creation
...
The comment immediately following implied that this was the intended
behaviour. Not doing so means that compound commands that both move a
window to a new workspace as well as do something that depends on the
workspace's geometry (e.g. 'move position center' or 'floating enable'
on a tiled window) would use the workspace's calloc'd 0x0+0x0 geometry.
2015-04-28 15:09:58 -04:00
Michael Stapelberg
37bee99538
Merge pull request #1680 from acrisci/bug/randr-disabled-outputs
...
Check if output is disabled in handle_output()
2015-04-26 23:44:03 +02:00
Michael Stapelberg
a4f0ed62e5
Merge pull request #1684 from acrisci/bug/focus-without-input-hint
...
Ignore InputHint when not in WM_HINTS
2015-04-26 12:15:38 +02:00
Tony Crisci
6cbe349774
Ignore InputHint when not in WM_HINTS
...
When InputHint is not in WM_HINTS (i.e., the flag is not set), treat the window
as if the InputHint was set (the default behavior). This means that i3 will
focus the window when it becomes managed.
fixes #1676
2015-04-25 22:43:46 -04:00
Tony Crisci
5c32de43c0
Bugfix: serialize con_id with %p in run_binding()
...
%p is equivalent to either %x or %lx, depending on the pointer size of the
platform. Before this commit, we always used %d, which has the same behavior
on Linux, but is not automatically expanded to %ld on e.g. FreeBSD.
fixes #1661
2015-04-25 20:05:55 -04:00
Tony Crisci
14e95e765e
Check if output is disabled in handle_output()
...
Check if the `connection` of the randr output is
XCB_RANDR_CONNECTION_DISONNECTED and disable the output if it is.
This fixes an issue where the output would not be disabled if the output was
physically unplugged from the machine.
2015-04-23 18:21:15 -04:00
Ingo Bürk
ffe25d9e43
Set the _NET_WM_STATE_HIDDEN atom on windows that are currently not visible due to being in the non-focused tab of a stacked or tabbed container.
...
fixes #1648
2015-04-21 09:14:22 +02:00
Ingo Bürk
d12482e5fd
Added 'con_is_hidden' to check whether a given container is visible to the user assuming its workspace is visible.
...
This is useful for determining whether we want to set the _NET_WM_STATE_HIDDEN atom on the window.
2015-04-21 09:13:48 +02:00
Michael Stapelberg
67ec2333ee
Merge pull request #1665 from Airblader/feature-1658
...
Added criterion 'window_type'
2015-04-21 08:42:16 +02:00
Michael Stapelberg
b1974a469f
Merge pull request #1636 from Deiz/update-notices
...
Update copyright notices and get rid of ranges
2015-04-21 08:31:40 +02:00
Kacper Kowalik (Xarthisius)
30b6584de1
Fix ‘FALSE’ undeclared (first use in this function) when i3 is built without PANGO support
2015-04-20 16:51:58 -05:00
Deiz
884214f14f
Update copyright notices and get rid of ranges
...
The script used to make these changes can be found at:
https://gist.github.com/Deiz/32322020f76d23e2bf8f
2015-04-20 17:50:21 -04:00
Ingo Bürk
1f472b454c
Handle changes to _NET_WM_WINDOW_TYPE after the window has been managed.
2015-04-20 19:27:43 +02:00
Ingo Bürk
550c0ec318
Implement new criterion 'window_type = normal|dialog|utility|toolbar|splash|menu|dropdown_menu|popup_menu|tooltip'
...
fixes #1658
2015-04-20 19:27:39 +02:00
Ingo Bürk
a59fe0d3d2
Added test case for transfer of urgency flag when moving a window to a mark.
2015-04-19 20:57:49 +02:00
Ingo Bürk
283b231290
Disallow moving a container to itself since this would crash i3.
2015-04-19 20:57:49 +02:00