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
Ingo Bürk
94bbdc9159
Implement the command 'move container to mark <mark>' using 'con_move_to_mark'.
2015-04-19 20:57:49 +02:00
Ingo Bürk
475671ae2a
Added 'con_move_to_mark' to move a container to the container holding a certain mark.
2015-04-19 20:57:49 +02:00
Ingo Bürk
9ab4216787
Extract a function from con_move_to_workpsace that deals with moving a container to some other container rather than being restricted to moving to a specific workspace.
2015-04-19 20:57:49 +02:00
Ingo Bürk
c4a84385d6
added function 'con_by_mark' to look up a con holding the given mark
2015-04-19 20:57:49 +02:00
Ingo Bürk
9613a0744d
Added configuration directive for 'move [container|window] [to] mark <str>'
2015-04-19 20:57:44 +02:00
Michael Stapelberg
8a608ee63a
Merge pull request #1632 from Deiz/binding-border
...
Add a --border flag to enable mouse binds to trigger on border click
2015-04-19 09:28:08 -07:00
Michael Stapelberg
7b68577901
Merge pull request #1651 from tanderson92/pkgconfig
...
Respect EXEC_PREFIX and a users' choice of PKG_CONFIG.
2015-04-16 00:34:01 -07:00
Thomas Anderson
196e1d0971
Respect EXEC_PREFIX and a users' choice of PKG_CONFIG.
...
The Makefiles should put binaries in $(EXEC_PREFIX) and
architecture-independent files in $(PREFIX). Also a user may have a
prefixed- pkg-config, as in the case of cross compiling on Exherbo
Linux, so respect the well-accepted $(PKG_CONFIG) variable for this
purpose.
2015-04-12 17:59:30 -07:00
Michael Stapelberg
5e7339d8f0
Merge pull request #1641 from Deiz/fix-1640
...
Store Git commit identifier in its own object
2015-04-12 10:08:43 -07:00
Deiz
5a987cfd6b
Rebuild version.o when version.c or LAST_VERSION change
...
$(TOPDIR)/LAST_VERSION is a cached copy of common.mk's I3_VERSION var,
updated only if the two differ.
2015-04-12 12:31:58 -04:00
Ingo Bürk
edda9306ed
Removed comment on removal of legacy "default" layout.
...
closes #1649
2015-04-11 10:27:42 +02:00
Deiz
cd4bc2adf5
Store Git commit identifier in its own object
...
Fixes #1640
2015-04-06 18:28:40 -04:00
Michael Stapelberg
1546891e6a
Bugfix: Remove windows from the save set when unmapping.
...
fixes #1617
2015-04-06 15:40:12 +02:00
Deiz
ce48d5c5d7
Add a --border flag to enable mouse binds to trigger on border click
2015-04-02 16:24:05 -04:00
Michael Stapelberg
92ffc78e19
Merge pull request #1630 from Deiz/consistent-mouse-actions
...
Make floating window mouse handling consistent with tiled windows
2015-04-02 00:09:13 -07:00
Deiz
bb95571516
Make floating window mouse handling consistent with tiled windows
...
It seems that this was the intended behaviour all along, according to
the comments.
2015-04-02 02:44:37 -04:00
Ingo Bürk
b5f7c132fc
Added config directive 'no_focus <criteria>' ( #1416 )
2015-04-01 20:46:56 +02:00
Ingo Bürk
e155447932
Added assignment type 'A_NO_FOCUS' ( #1416 )
...
Any assignment with type 'A_NO_FOCUS' will cause the matched window to not be focused by i3 when it is managed.
2015-04-01 20:46:55 +02:00
Ingo Bürk
2e4fac61d2
Only mark a window if only one window is matched
...
We only support unique marks, so looping over all matched windows must be prevented.
If more than one window is matched, we reject it with an error message.
fixes #1614
2015-04-01 13:51:48 +02:00
Michael Stapelberg
3b81e40096
Merge pull request #1618 from Deiz/fix-1603
...
Allow single-child non-default layout cons to be moved between outputs
2015-04-01 09:08:22 +02:00
Deiz
4e88c10564
Allow single-child non-default layout cons to be moved between outputs
...
Includes a test case to verify the behaviour of 'move <direction>'.
Fixes #1603 .
2015-03-31 13:58:29 -04:00
Ingo Bürk
6036d4e506
Changed the default for show_marks from "no" to "yes"
2015-03-30 23:11:50 +02:00
Ingo Bürk
245a29e233
Make show_marks configurable
...
Introduce a config directive "show_marks [yes|no]" to en- or disable drawing marks on window decorations.
To not change the look & feel of existing configurations, the default is "no".
2015-03-30 23:11:50 +02:00
Ingo Bürk
2af1a80028
Introduce a cached boolean for changes to the mark of a window.
...
This is necessary to correctly redraw window decorations when the mark of
a window is added or removed.
2015-03-30 23:08:25 +02:00
Ingo Bürk
1e89a301d5
Draw marks in window decoration
...
If a window has a mark set, e.g., "example", it will be printed on the right side of the window decorations.
The format is "[example]" and the name of the window is truncated if necessary.
Marks starting with an underscore ("_") will be ignored.
2015-03-30 23:08:25 +02:00
Michael Stapelberg
0ad097ee67
Merge pull request #1613 from Airblader/feature-1426
...
Added focus_on_window_activation directive
2015-03-30 22:58:16 +02:00
Ingo Bürk
9bf161710b
Added 'focus_on_window_activation' directive
...
When a window receives a _NET_ACTIVE_WINDOW message, it can steal the focus. This may not be preferable to all users.
With this directive, the user can choose from one of the following:
1) 'smart' - focus the container if its workspace is visible, otherwise set the urgency flag (default)
2) 'urgent' - always set the urgency flag, do not steal focus
3) 'focus' - always switch focus, never set the urgency hint
4) 'none' - ignore the request entirely (do not switch focus, nor set the urgency hint)
fixes #1426
2015-03-30 22:09:36 +02:00
Deiz
c6581a5fd6
Handle floating centering in one function and test for consistency
2015-03-30 16:03:35 -04:00
Michael Stapelberg
2759a308a2
Merge pull request #1608 from mh21/renaming-empty-ws-startup
...
Update old_name when renaming current workspace
2015-03-30 22:01:18 +02:00
Michael Hofmann
eb84281f8c
Cope with non-null-terminated x class properties.
...
- fixes #1605
2015-03-30 08:56:46 +02:00
Michael Stapelberg
9718640622
Merge pull request #1589 from Deiz/fix-center
...
Make center coordinates relative to current workspace
2015-03-30 08:47:04 +02:00
Michael Hofmann
f76e6c2bb1
Get workspace name when renaming current workspace.
...
- fixes #1607
2015-03-30 08:28:36 +02:00
Deiz
e622c42ef0
Move mkdirp into libi3
2015-03-29 17:18:00 -04:00
Michael Stapelberg
b338e25317
Merge pull request #1595 from Deiz/fix-1484
...
Fix percents when attaching a window to a ws creates a new split con
2015-03-29 23:14:37 +02:00
Ingo Bürk
7a75cb7e0b
Added test cases for 'mark --toggle' ( #1463 )
2015-03-29 21:21:50 +02:00
Ingo Bürk
d51d6d730e
Added a --toggle switch to "mark [--toggle] <mark>"
...
This option allows toggling marks on a window without knowing whether the mark is already set or not.
It behaves as follows:
1) If the matched window has no mark, the new mark is set.
2) If the matched window has another mark, the old mark is removed and the new mark is set.
3) If the matched window already has the mark, the mark is removed.
The behavior that all non-matched windows have this mark removed is kept.
fixes #1463
2015-03-29 21:21:50 +02:00
Michael Stapelberg
3191be366d
Merge pull request #1600 from Deiz/libi3
...
Move resolve_tilde and get_config_path into libi3
2015-03-29 20:56:07 +02:00
Deiz
4daed31c3e
Move resolve_tilde and get_config_path into libi3
2015-03-29 14:45:42 -04:00
Michael Stapelberg
700dc4bfde
Merge pull request #1597 from Airblader/bug-1187
...
Move urgency hint when moving container to another workspace
2015-03-29 19:50:03 +02:00