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
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
hwangcc
2c77d7ceed
Add a timeout: delay_exit_on_zero_displays
...
Outputs may disappear momentarily and come back later.
To prevent i3 from exit when no output is available momentarily, add a timeout delay_exit_on_zero_displays.
2015-04-11 22:13:10 +08: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