Michael Stapelberg
dcb8ac84f8
ipc_recv_message: store message_type, don’t compare. add distinct EOF retval
...
Also use ELOG, which requires i3-msg to provide logging functions.
2013-01-23 18:51:39 +01:00
Michael Stapelberg
e8fa3eeebd
i3-msg: include socket path in error message
2013-01-23 08:11:27 +01:00
Michael Stapelberg
7d9c20734c
include stdint.h in i3/ipc.h (Thanks Kai)
2013-01-11 22:28:43 +01:00
Michael Stapelberg
7b0d75ee0a
ipc_send_message: use stack frame with fixed size
2013-01-11 19:09:41 +01:00
Michael Stapelberg
fc0e80ee7f
Merge branch 'master' into next
2013-01-09 18:11:17 +01:00
Michael Stapelberg
1b6ea35eb6
Merge branch 'fix-ipc-write'
2013-01-09 18:11:17 +01:00
Michael Stapelberg
f5b7bfb12e
Bugfix: fix IPC messages writes with low buffer sizes (Thanks jasper, dcoppa)
...
Use the following command to reproduce this bug:
echo 4096 | sudo tee /proc/sys/net/core/wmem_default
Then just switch workspaces with some windows on it and i3bar would
exit due to malformed IPC messages.
This bug hits OpenBSD users (and possibly other BSDs) due to their lower
default buffer size.
fixes #896
2013-01-09 18:11:03 +01:00
slowpoke
527ec2a69c
Adds Go IPC lib to the docs.
2013-01-02 23:15:14 +01:00
Michael Stapelberg
f2ca568202
i3bar: set _NET_SYSTEM_TRAY_COLORS for symbolic icons (gtk3+)
2013-01-02 23:14:30 +01:00
Michael Stapelberg
e9503a1fa3
i3bar: fake DestroyNotify and send MANAGER ClientMessages to fix tray restarts
...
fixes #745
2013-01-02 23:14:27 +01:00
Michael Stapelberg
2043076518
i3bar: add missing \n to debug messages
2013-01-02 11:38:03 +01:00
Michael Stapelberg
c394efbfd0
Merge branch 'fix-assign-and-move'
2013-01-01 16:31:27 +01:00
Michael Stapelberg
2c249b6949
Merge branch 'master' into next
2013-01-01 16:31:27 +01:00
Michael Stapelberg
138e04fd4d
Bugfix: Fix for_window moving of assigned windows (Thanks bafain)
...
fixes #909
2013-01-01 16:31:08 +01:00
Michael Stapelberg
6856b232d6
t/175-startup-notification: use the testcases X11 connection
...
This needs X11::XCB >= 0.07 and will be skipped if that is not
installed.
This fixes a race condition in the testsuite.
2012-12-27 18:02:23 +01:00
Michael Stapelberg
d8e27dd5aa
ignore MotionNotify events generated while warping the pointer
2012-12-27 17:04:13 +01:00
Michael Stapelberg
9edbcc4790
debug message for window focus: include window ID
2012-12-27 16:58:46 +01:00
Michael Stapelberg
1b62feccac
t/132-move-workspace: add missing sync_with_i3
2012-12-27 16:55:22 +01:00
Michael Stapelberg
54fd3d3480
unregister as window manager before restarting (fixes a race condition)
2012-12-27 16:54:54 +01:00
Michael Stapelberg
cde82eafa6
use xcb_aux_sync to make sure our changes reach the X server, flushing is not enough
2012-12-27 16:54:36 +01:00
Michael Stapelberg
baae706b87
t/166-assign: sync after mapping the window
2012-12-26 22:04:35 +01:00
Michael Stapelberg
c06d62887e
t/173-regress-focus-assign: sync after mapping the window
2012-12-26 22:04:15 +01:00
Michael Stapelberg
4d65cfc67d
t/189-floating-constraints: sync before getting window rects
2012-12-26 22:03:37 +01:00
Michael Stapelberg
27adbbff61
t/510-focus-across-outputs: fix sync order
...
syncing _after_ fresh_workspace makes no change, but we need to wait for
the WarpPointer request to be processed.
2012-12-26 22:03:02 +01:00
Michael Stapelberg
92e2190300
t/503-workspace: sync after switching focus to a different output
2012-12-26 22:02:43 +01:00
Michael Stapelberg
d6e4910c22
userguide: fix typo: s/11x/11px/
2012-12-26 18:32:13 +01:00
Michael Stapelberg
0d354ebd0c
i3-dmenu-desktop: skip broken files (no/empty Exec=) but warn about them
2012-12-26 18:31:33 +01:00
Michael Stapelberg
ba1b3a3240
i3-dmenu-desktop: skip files with broken utf8 but warn about it
2012-12-26 18:31:21 +01:00
Michael Stapelberg
a6c676e5d3
i3-config-wizard: clean all traces of the old config parser (Thanks cradle)
2012-12-26 14:23:47 +01:00
Michael Stapelberg
140c1062b6
drop the flex/bison dependency \o/
2012-12-25 14:20:21 +01:00
Michael Stapelberg
0e4c956c1d
i3-config-wizard: switch away from bison/flex to hand-written parser
...
This adds some code duplication which we might remove in a future
refactoring or not. Depends on whether unifying the parsers actually
makes the code better or not. I suspect it doesn’t :-).
2012-12-25 14:20:17 +01:00
Michael Stapelberg
f866607c67
i3-dmenu-desktop: strip newlines from dmenu ≥ 4.4 (Thanks saurabhgeek92)
...
fixes #891
2012-12-25 12:41:00 +01:00
Simon Elsbrock
0045cfa637
move visible scratchpad window to focused workspace
...
If there is a visible scratchpad on another (non-internal) workspace,
bring it to the focused workspace instead of doing nothing.
closes #784
2012-12-24 19:20:47 +01:00
Michael Stapelberg
061d90f305
move scratchpad test to separate file, otherwise it is non-conclusive
2012-12-24 19:19:32 +01:00
Michael Stapelberg
9882a4dc09
fix formatting in get_process_filename.c
2012-12-24 16:57:30 +01:00
Michael Stapelberg
66b1dadc38
i3-nagbar: don’t quote the -e argument for i3-sensible-terminal
...
…not all terminals support it
2012-12-24 16:56:20 +01:00
Michael Stapelberg
b3d7531947
refactor both i3-nagbar starts into src/util.c
...
With this change, libev >= 4 is a hard dependency. It should be present
in all major linux distributions (even the latest ubuntu LTS).
2012-12-24 16:53:20 +01:00
Michael Stapelberg
c127ac3855
remove all references to the old cfgparse
2012-12-24 15:57:02 +01:00
Michael Stapelberg
b304e6ad34
remove old cfgparse.{l,y}
2012-12-24 15:46:57 +01:00
Sascha Kruse
5d4a934864
render_con: initialize int sizes[children]
...
This fixes a clang-analyzer warning
2012-12-24 15:28:17 +01:00
Michael Stapelberg
4f2922de62
Revert "initialize array to fix clang-analyze warning"
...
This reverts commit 56e0ceb44e
.
2012-12-24 15:28:08 +01:00
Michael Stapelberg
e11252a7af
pod2html: remove "(testsuite)" from title, it’s also for i3-dmenu-desktop
2012-12-24 15:27:09 +01:00
Michael Stapelberg
56e0ceb44e
initialize array to fix clang-analyze warning
2012-12-24 15:19:20 +01:00
Michael Stapelberg
9ae73b7a2a
fix possibly uninitialized variable (Thanks knopwob)
2012-12-24 15:13:47 +01:00
Sascha Kruse
5a567057ab
i3-dump-log/main.c: error handling for write(...)
2012-12-24 15:11:19 +01:00
Michael Stapelberg
1a6bddad55
Merge branch 'master' into next
2012-12-24 14:50:15 +01:00
Michael Stapelberg
e67ff4dd1c
Merge branch 'fix-mapreq'
2012-12-24 14:50:11 +01:00
Michael Stapelberg
625401d162
Bugfix: handle MapRequests sent between i3 registering as a wm and handling events
...
This fixes the problem where i3-nagbar does not come up because its
MapRequest is ignored.
fixes #892
2012-12-24 14:49:19 +01:00
Michael Stapelberg
24aa857a89
Bugfix: Correctly close floating windows (Thanks eeemsi)
2012-12-23 18:51:17 +01:00
Michael Stapelberg
3a78d489e6
Render tree before destroying X11 containers upon unmap (Thanks Merovius)
...
When an X11 window is closed (say, urxvt), i3 gets an UnmapNotify event
and destroys (DestroyWindow) the window decorations. Before this commit,
the DestroyWindow call was sent immediately.
This lead to a situation where — due to the DestroyNotify — EnterNotify
events were generated that would cause the focus to be set to the
underlying window.
With this commit, i3 first renders the tree and pushes changes to X11
before calling DestroyWindow. Therefore, the surrounding containers will
take up any space that was freed by the window which was closed and no
EnterNotify will be generated.
fixes #660
2012-12-23 15:54:49 +01:00