]> git.sur5r.net Git - i3/i3/log
i3/i3
13 years agofix some memory leaks when user passes command line arguments twice (Thanks Tiago)
Michael Stapelberg [Wed, 12 Jan 2011 09:12:24 +0000 (10:12 +0100)]
fix some memory leaks when user passes command line arguments twice (Thanks Tiago)

13 years agoFix switching to a workspace on a different output
Michael Stapelberg [Sat, 8 Jan 2011 11:03:03 +0000 (12:03 +0100)]
Fix switching to a workspace on a different output

13 years agoipc: adapt dump-asy.pl for the new orientation format
Michael Stapelberg [Fri, 7 Jan 2011 23:45:10 +0000 (00:45 +0100)]
ipc: adapt dump-asy.pl for the new orientation format

13 years agoBugfix: Don’t use ->old_parent for floating cons (Thanks eelvex)
Michael Stapelberg [Fri, 7 Jan 2011 23:44:03 +0000 (00:44 +0100)]
Bugfix: Don’t use ->old_parent for floating cons (Thanks eelvex)

Instead, we attach them to their workspace when toggling back to tiling. This
makes more sense; afterall, floating clients are always directly below a
CT_WORKSPACE container.

13 years agofix a problem with workspace switching when the focus got to the target workspace
Michael Stapelberg [Fri, 7 Jan 2011 23:38:10 +0000 (00:38 +0100)]
fix a problem with workspace switching when the focus got to the target workspace

This could explain some strange effects where workspaces would just stay blank.
We’ll see.

13 years agoBugfix: Look for cons to focus *starting* at the ws, not beneath the ws (Thanks mseed)
Michael Stapelberg [Fri, 7 Jan 2011 23:10:49 +0000 (00:10 +0100)]
Bugfix: Look for cons to focus *starting* at the ws, not beneath the ws (Thanks mseed)

This should fix #286.

13 years agoBugfix: Correctly maintain focus when setting a workspace to floating
Michael Stapelberg [Fri, 7 Jan 2011 23:10:30 +0000 (00:10 +0100)]
Bugfix: Correctly maintain focus when setting a workspace to floating

13 years agoBugfix: Correctly move to other workspaces when a floating window is focused on the...
Michael Stapelberg [Fri, 7 Jan 2011 22:56:32 +0000 (23:56 +0100)]
Bugfix: Correctly move to other workspaces when a floating window is focused on the target ws (Thanks mseed)

13 years agoImplement tree flattening to automatically solve situations of redundant chains of...
Michael Stapelberg [Fri, 7 Jan 2011 21:21:41 +0000 (22:21 +0100)]
Implement tree flattening to automatically solve situations of redundant chains of split containers

This should fix the move problems. See comment of tree_flatten() for a little
example.

13 years agochange many LOG/printf messages to use DLOG
Michael Stapelberg [Fri, 7 Jan 2011 19:58:58 +0000 (20:58 +0100)]
change many LOG/printf messages to use DLOG

13 years agoipc: change 'orientation' to human readable string instead of raw integer value
Michael Stapelberg [Fri, 7 Jan 2011 19:48:01 +0000 (20:48 +0100)]
ipc: change 'orientation' to human readable string instead of raw integer value

13 years agofix enum value
Michael Stapelberg [Fri, 7 Jan 2011 02:01:58 +0000 (03:01 +0100)]
fix enum value

13 years agoBugfix: fix fullscreen mode for floating windows
Michael Stapelberg [Fri, 7 Jan 2011 01:50:35 +0000 (02:50 +0100)]
Bugfix: fix fullscreen mode for floating windows

13 years agoBugfix: randr: Don’t close container if it was not initialized before
Michael Stapelberg [Thu, 6 Jan 2011 13:35:04 +0000 (14:35 +0100)]
Bugfix: randr: Don’t close container if it was not initialized before

13 years agoRandR: use the next unused workspace instead of fixed counting
Michael Stapelberg [Tue, 4 Jan 2011 23:26:23 +0000 (00:26 +0100)]
RandR: use the next unused workspace instead of fixed counting

13 years agoAlso initialize output->con when using neither RandR nor Xinerama
Michael Stapelberg [Tue, 4 Jan 2011 23:19:51 +0000 (00:19 +0100)]
Also initialize output->con when using neither RandR nor Xinerama

13 years agoRe-Implement support for RandR changes
Michael Stapelberg [Tue, 4 Jan 2011 23:16:10 +0000 (00:16 +0100)]
Re-Implement support for RandR changes

13 years agoretab! randr.c
Michael Stapelberg [Tue, 4 Jan 2011 21:51:42 +0000 (22:51 +0100)]
retab! randr.c

13 years agoBugfix: Correctly change focus after closing floating containers (Thanks litemotiv!)
Michael Stapelberg [Tue, 4 Jan 2011 21:40:05 +0000 (22:40 +0100)]
Bugfix: Correctly change focus after closing floating containers (Thanks litemotiv!)

13 years agofix memleak: free struct Window members
Michael Stapelberg [Tue, 4 Jan 2011 21:39:45 +0000 (22:39 +0100)]
fix memleak: free struct Window members

13 years agofix memleak: free X state structure
Michael Stapelberg [Tue, 4 Jan 2011 21:39:24 +0000 (22:39 +0100)]
fix memleak: free X state structure

13 years agouse sstrdup() instead of strdup()
Michael Stapelberg [Tue, 4 Jan 2011 21:39:13 +0000 (22:39 +0100)]
use sstrdup() instead of strdup()

13 years agofix memleak: free con->name before overwriting it
Michael Stapelberg [Tue, 4 Jan 2011 21:38:33 +0000 (22:38 +0100)]
fix memleak: free con->name before overwriting it

13 years agocmdparse: free strings
Michael Stapelberg [Tue, 4 Jan 2011 21:37:50 +0000 (22:37 +0100)]
cmdparse: free strings

13 years agofix small memory leak (unused ->name)
Michael Stapelberg [Tue, 4 Jan 2011 21:15:52 +0000 (22:15 +0100)]
fix small memory leak (unused ->name)

13 years agoBugfix: Also change focus when the killed container was focused (Thanks fernandotcl)
Michael Stapelberg [Sun, 2 Jan 2011 17:08:45 +0000 (18:08 +0100)]
Bugfix: Also change focus when the killed container was focused (Thanks fernandotcl)

13 years agoAdd font-option to i3-input
Axel Wagner [Sat, 1 Jan 2011 21:11:44 +0000 (22:11 +0100)]
Add font-option to i3-input

13 years agoAdd forgetful restart to sighandler
Axel Wagner [Thu, 30 Dec 2010 20:43:34 +0000 (21:43 +0100)]
Add forgetful restart to sighandler

13 years agoRetab sighandler.c
Axel Wagner [Thu, 30 Dec 2010 20:15:55 +0000 (21:15 +0100)]
Retab sighandler.c

13 years agoPort sighandler to tree-branch
Axel Wagner [Thu, 30 Dec 2010 20:09:32 +0000 (21:09 +0100)]
Port sighandler to tree-branch

13 years agoFix dragging floating containers / click handling
Michael Stapelberg [Fri, 31 Dec 2010 00:38:17 +0000 (01:38 +0100)]
Fix dragging floating containers / click handling

13 years agoFor floating mode on workspace level, create a container around the content (Thanks...
Michael Stapelberg [Thu, 30 Dec 2010 22:09:18 +0000 (23:09 +0100)]
For floating mode on workspace level, create a container around the content (Thanks Merovius)

Like when setting a workspace to stacked, we need to create a new container
around the content and set *that* to floating.

13 years agoBugfix: Correctly change focus when closing a split-container
Michael Stapelberg [Thu, 30 Dec 2010 22:01:58 +0000 (23:01 +0100)]
Bugfix: Correctly change focus when closing a split-container

The problem was i3 leaving an invalid focus pointer valid (after killing the
container) because the container itself is not mapped (if it has no x11 window,
for example split containers).

13 years agoBugfix: Don’t redistribute resize percentage values when closing floating (!) windows...
Michael Stapelberg [Thu, 30 Dec 2010 01:39:14 +0000 (02:39 +0100)]
Bugfix: Don’t redistribute resize percentage values when closing floating (!) windows (Thanks Merovius) (+testcase)

13 years agoBugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none
Michael Stapelberg [Tue, 28 Dec 2010 18:54:56 +0000 (19:54 +0100)]
Bugfix: Fix closing windows in tabbed mode with border_style == 1pixel / none

13 years agoFix resize handling on click on borders (did not correctly use orientation)
Michael Stapelberg [Tue, 28 Dec 2010 15:25:34 +0000 (16:25 +0100)]
Fix resize handling on click on borders (did not correctly use orientation)

13 years agoBugfix: Don’t focus next window if the window was not mapped at the moment (on a...
Michael Stapelberg [Tue, 28 Dec 2010 01:27:11 +0000 (02:27 +0100)]
Bugfix: Don’t focus next window if the window was not mapped at the moment (on a different ws)

13 years agoBugfix: store and properly load workspace order when restarting
Michael Stapelberg [Mon, 27 Dec 2010 21:28:59 +0000 (22:28 +0100)]
Bugfix: store and properly load workspace order when restarting

13 years agoDefault to a file in /tmp for the restart state.
Fernando Tarlá Cardoso Lemos [Wed, 1 Dec 2010 02:14:08 +0000 (00:14 -0200)]
Default to a file in /tmp for the restart state.

The file is now created in /tmp using the process PID and the
username of the user running i3. The restart state file is only
loaded when restarting (the --restart option is appended to the
command line prior to the restart). That means that renaming the
old state file with the ".old" extension is no longer needed.

This "--restart" switch is supposed to be only used by i3. The
"-L" switch can be used to load a layout (and not delete it
afterwards). We unlink the state file after we load it so that
we don't keep cruft in /tmp or try to restart from an old config
file if restart_state is set.

13 years agoutil.c is the proper place for those functions.
Fernando Tarlá Cardoso Lemos [Wed, 1 Dec 2010 00:47:16 +0000 (22:47 -0200)]
util.c is the proper place for those functions.

13 years agoRemove some commented out code.
Fernando Tarlá Cardoso Lemos [Wed, 1 Dec 2010 00:43:15 +0000 (22:43 -0200)]
Remove some commented out code.

13 years agoImplement default border styles (thanks litemotiv).
Fernando Tarlá Cardoso Lemos [Tue, 7 Dec 2010 23:32:04 +0000 (21:32 -0200)]
Implement default border styles (thanks litemotiv).

13 years agoBugfix: Don’t update focus when container is not mapped
Michael Stapelberg [Sat, 11 Dec 2010 16:07:20 +0000 (17:07 +0100)]
Bugfix: Don’t update focus when container is not mapped

13 years agoBugfix: Invalidate focused_id to correctly focus new windows with the same ID
Michael Stapelberg [Sat, 11 Dec 2010 16:03:53 +0000 (17:03 +0100)]
Bugfix: Invalidate focused_id to correctly focus new windows with the same ID

13 years agoremove i3-wsbar from 'make install', not supported at the moment tree-pr1
Michael Stapelberg [Mon, 6 Dec 2010 12:20:37 +0000 (13:20 +0100)]
remove i3-wsbar from 'make install', not supported at the moment

13 years agoneed more escaping for the version string when replacing in makefile
Michael Stapelberg [Mon, 6 Dec 2010 12:14:14 +0000 (13:14 +0100)]
need more escaping for the version string when replacing in makefile

13 years agoFix possible rounding errors.
Fernando Tarlá Cardoso Lemos [Mon, 29 Nov 2010 22:11:18 +0000 (20:11 -0200)]
Fix possible rounding errors.

13 years agoxinerama.c: fix indention
Michael Stapelberg [Mon, 29 Nov 2010 21:35:46 +0000 (22:35 +0100)]
xinerama.c: fix indention

13 years agoxcb.c: fix indenting
Michael Stapelberg [Mon, 29 Nov 2010 21:35:07 +0000 (22:35 +0100)]
xcb.c: fix indenting

13 years agoworkspace.{c,h}: remove obsolete code
Michael Stapelberg [Mon, 29 Nov 2010 21:32:19 +0000 (22:32 +0100)]
workspace.{c,h}: remove obsolete code

13 years agolog.c: fix indenting
Michael Stapelberg [Mon, 29 Nov 2010 21:28:23 +0000 (22:28 +0100)]
log.c: fix indenting

13 years agohandlers.c: remove obsolete code
Michael Stapelberg [Mon, 29 Nov 2010 21:25:55 +0000 (22:25 +0100)]
handlers.c: remove obsolete code

13 years agofloating.c: remove obsolete code, fix indenting
Michael Stapelberg [Mon, 29 Nov 2010 21:23:49 +0000 (22:23 +0100)]
floating.c: remove obsolete code, fix indenting

13 years agoFix click to focus.
Fernando Tarlá Cardoso Lemos [Mon, 29 Nov 2010 02:11:30 +0000 (00:11 -0200)]
Fix click to focus.

13 years agoBugfix: Don’t attach floating clients to 'nodes' when restoring (Thanks EelVex)
Michael Stapelberg [Mon, 29 Nov 2010 20:46:00 +0000 (21:46 +0100)]
Bugfix: Don’t attach floating clients to 'nodes' when restoring (Thanks EelVex)

13 years agoBugfix: Correctly attach floating Cons to a different workspace, extend testcase
Michael Stapelberg [Mon, 29 Nov 2010 19:39:56 +0000 (20:39 +0100)]
Bugfix: Correctly attach floating Cons to a different workspace, extend testcase

13 years agotests: use cmd() in t/32-move-workspace.t
Michael Stapelberg [Mon, 29 Nov 2010 19:24:13 +0000 (20:24 +0100)]
tests: use cmd() in t/32-move-workspace.t

13 years agoBugfix: Fix crash when moving a floating Con to a different workspace, add testcase...
Michael Stapelberg [Mon, 29 Nov 2010 19:20:44 +0000 (20:20 +0100)]
Bugfix: Fix crash when moving a floating Con to a different workspace, add testcase (Thanks EelVex)

13 years agoBugfix: Transfer 'percent' factor when splitting, add testcase for resizing
Michael Stapelberg [Mon, 29 Nov 2010 10:24:12 +0000 (11:24 +0100)]
Bugfix: Transfer 'percent' factor when splitting, add testcase for resizing

13 years agotests: add cmd() function for typing less to get i3 to run a command
Michael Stapelberg [Mon, 29 Nov 2010 10:21:33 +0000 (11:21 +0100)]
tests: add cmd() function for typing less to get i3 to run a command

13 years agoInclude 'percent' in tree JSON, use C-locale when dumping, update testcase
Michael Stapelberg [Mon, 29 Nov 2010 10:10:17 +0000 (11:10 +0100)]
Include 'percent' in tree JSON, use C-locale when dumping, update testcase

13 years agoImplement resizing (still buggy)
Michael Stapelberg [Mon, 29 Nov 2010 09:56:16 +0000 (10:56 +0100)]
Implement resizing (still buggy)

Committing basic resizing functionality. We need testcases for the bugs and
then eliminate them.

13 years agouse con_num_children()
Michael Stapelberg [Sun, 28 Nov 2010 21:45:39 +0000 (22:45 +0100)]
use con_num_children()

13 years agotests: mark t/10-dock.t as TODO, dock clients not implemented yet (makes all tests...
Michael Stapelberg [Sun, 28 Nov 2010 21:12:53 +0000 (22:12 +0100)]
tests: mark t/10-dock.t as TODO, dock clients not implemented yet (makes all tests pass!)

13 years agoBugfix: Use separate child_mapped instead of checking state->initial (makes t/02...
Michael Stapelberg [Sun, 28 Nov 2010 21:08:34 +0000 (22:08 +0100)]
Bugfix: Use separate child_mapped instead of checking state->initial (makes t/02-fullscreen.t pass)

This is necessary for windows which are mapped later, for example when there is
a fullscreen window in front of everything.

13 years agoCorrectly update the _NET_WM_STATE hint when *not* going into fullscreen (when alread...
Michael Stapelberg [Sun, 28 Nov 2010 21:07:54 +0000 (22:07 +0100)]
Correctly update the _NET_WM_STATE hint when *not* going into fullscreen (when already in fullscreen)

13 years agotests: fix t/30-close-empty-split.t by properly creating a split con
Michael Stapelberg [Sun, 28 Nov 2010 20:49:42 +0000 (21:49 +0100)]
tests: fix t/30-close-empty-split.t by properly creating a split con

13 years agotests: fix t/31-stacking-order.t: don’t get focus on workspace level, use get_focused()
Michael Stapelberg [Sun, 28 Nov 2010 20:28:44 +0000 (21:28 +0100)]
tests: fix t/31-stacking-order.t: don’t get focus on workspace level, use get_focused()

13 years agotests: fix t/29-focus-after-close.t to correctly open a split container
Michael Stapelberg [Sun, 28 Nov 2010 20:16:58 +0000 (21:16 +0100)]
tests: fix t/29-focus-after-close.t to correctly open a split container

13 years agotests: fix t/27-regress-floating-parent.t (focus the other tiling client explictly)
Michael Stapelberg [Sun, 28 Nov 2010 20:11:14 +0000 (21:11 +0100)]
tests: fix t/27-regress-floating-parent.t (focus the other tiling client explictly)

13 years agoBugfix: don’t update focus when moving mouse over stacked/tabbed decorations (Thanks...
Michael Stapelberg [Sun, 28 Nov 2010 20:07:08 +0000 (21:07 +0100)]
Bugfix: don’t update focus when moving mouse over stacked/tabbed decorations (Thanks fernandotcl)

13 years agoBugfix: Add deco_height to bsr.y (to configure the floatingcon correctly). Fixes...
Michael Stapelberg [Sun, 28 Nov 2010 19:43:35 +0000 (20:43 +0100)]
Bugfix: Add deco_height to bsr.y (to configure the floatingcon correctly). Fixes t/12-floating-resize.t

13 years agotests: update t/04-floating.t for new border styles
Michael Stapelberg [Sun, 28 Nov 2010 19:23:17 +0000 (20:23 +0100)]
tests: update t/04-floating.t for new border styles

13 years agoupdate .gitignore
Michael Stapelberg [Sun, 28 Nov 2010 19:19:26 +0000 (20:19 +0100)]
update .gitignore

13 years agoBugfix for the last commit (broke some moving situations), update testcase
Michael Stapelberg [Sun, 28 Nov 2010 19:15:47 +0000 (20:15 +0100)]
Bugfix for the last commit (broke some moving situations), update testcase

13 years agolook & feel: when moving, descend if the container in target direction is a split...
Michael Stapelberg [Sun, 28 Nov 2010 17:35:11 +0000 (18:35 +0100)]
look & feel: when moving, descend if the container in target direction is a split-container

13 years agoBugfix: Fix focus when moving Cons
Michael Stapelberg [Sun, 28 Nov 2010 17:05:53 +0000 (18:05 +0100)]
Bugfix: Fix focus when moving Cons

When having two v-splits on a horizontal desktop:
----------------
|  t1   |  t3  |
|-------|------|
|  t2   |  t4  |
----------------
…focus is on t2, and you move it into the right v-split (move after h), the
focus was not properly updated. That is, inside the right v-split, focus was
correct, but the workspace focus was still pointing to the left v-split.

13 years agotests: update t/16-nestedcons.t with new window_rect parameter
Michael Stapelberg [Sun, 28 Nov 2010 16:29:44 +0000 (17:29 +0100)]
tests: update t/16-nestedcons.t with new window_rect parameter

13 years agoAlso store/load window_rect when restarting
Michael Stapelberg [Sun, 28 Nov 2010 16:20:29 +0000 (17:20 +0100)]
Also store/load window_rect when restarting

13 years agoBugfix: Only set to_focus when focused is actually 1
Michael Stapelberg [Sun, 28 Nov 2010 16:20:16 +0000 (17:20 +0100)]
Bugfix: Only set to_focus when focused is actually 1

13 years agolook and feel: when moving a Con is not possible, split a workspace level
Michael Stapelberg [Sun, 28 Nov 2010 13:45:14 +0000 (14:45 +0100)]
look and feel: when moving a Con is not possible, split a workspace level

This allows you to open three cons, then move the last one to the right (like
in previous i3 releases).

13 years agoCorrectly restore focus when restarting (Thanks fernandotcl)
Michael Stapelberg [Sun, 28 Nov 2010 13:27:44 +0000 (14:27 +0100)]
Correctly restore focus when restarting (Thanks fernandotcl)

13 years agoupdate indenting of src/util.c
Michael Stapelberg [Sun, 28 Nov 2010 13:14:34 +0000 (14:14 +0100)]
update indenting of src/util.c

13 years agore-enable ipc_shutdown() when restarting
Michael Stapelberg [Sun, 28 Nov 2010 13:11:44 +0000 (14:11 +0100)]
re-enable ipc_shutdown() when restarting

13 years agoBugfix: Use setsid() to avoid SIGINT for child processes
Michael Stapelberg [Sun, 28 Nov 2010 13:03:43 +0000 (14:03 +0100)]
Bugfix: Use setsid() to avoid SIGINT for child processes

13 years agoUpon ConfigureRequests, send a generated ConfigureNotify (Thanks fernandotcl)
Michael Stapelberg [Sun, 28 Nov 2010 12:19:49 +0000 (13:19 +0100)]
Upon ConfigureRequests, send a generated ConfigureNotify (Thanks fernandotcl)

This fixes problems with GVim in stacking mode for example.

13 years agoremove space for flex's -P flag
Blekos EelVex Kostas [Sat, 27 Nov 2010 21:37:29 +0000 (23:37 +0200)]
remove space for flex's -P flag

13 years agolittle style fixes, add vim modeline
Michael Stapelberg [Sun, 28 Nov 2010 12:02:29 +0000 (13:02 +0100)]
little style fixes, add vim modeline

13 years agolibXcursor support (themed cursors).
Fernando Tarlá Cardoso Lemos [Fri, 26 Nov 2010 23:26:51 +0000 (21:26 -0200)]
libXcursor support (themed cursors).

13 years agoBugfix: Re-attach windows in correct order when switching layout (Thanks fernandotcl)
Michael Stapelberg [Sun, 28 Nov 2010 00:51:16 +0000 (01:51 +0100)]
Bugfix: Re-attach windows in correct order when switching layout (Thanks fernandotcl)

13 years agoBugfix: Restore focus after changing layout (Thanks fernandotcl)
Michael Stapelberg [Sun, 28 Nov 2010 00:39:47 +0000 (01:39 +0100)]
Bugfix: Restore focus after changing layout (Thanks fernandotcl)

13 years agofix third argument to strncat(), use smalloc(), use strlen(".old")+1
Michael Stapelberg [Sun, 28 Nov 2010 00:22:10 +0000 (01:22 +0100)]
fix third argument to strncat(), use smalloc(), use strlen(".old")+1

13 years agoMake the restart path configurable.
Fernando Tarlá Cardoso Lemos [Sat, 27 Nov 2010 00:27:38 +0000 (22:27 -0200)]
Make the restart path configurable.

13 years agoFix switching containers by moving the mouse over their decorations when in the same...
Michael Stapelberg [Sun, 28 Nov 2010 00:13:18 +0000 (01:13 +0100)]
Fix switching containers by moving the mouse over their decorations when in the same container

13 years agoBugfix: Also render decorations of nearby cons when getting an ExposeEvent (Thanks...
Michael Stapelberg [Sat, 27 Nov 2010 23:52:24 +0000 (00:52 +0100)]
Bugfix: Also render decorations of nearby cons when getting an ExposeEvent (Thanks fernandotcl)

13 years agoremove some debug messages
Michael Stapelberg [Sat, 27 Nov 2010 17:05:45 +0000 (18:05 +0100)]
remove some debug messages

13 years agoBugfix: unmap windows in a separate step to avoid focus problems with fullscreen...
Michael Stapelberg [Sat, 27 Nov 2010 16:45:23 +0000 (17:45 +0100)]
Bugfix: unmap windows in a separate step to avoid focus problems with fullscreen windows

This fixes an ugly bug with Adobe Flash in fullscreen mode, for example on
YouTube. See comments in the diff for some explanation.

13 years agoBugfix: configure windows before mapping, correctly store window_rect instead of...
Michael Stapelberg [Sat, 27 Nov 2010 15:44:45 +0000 (16:44 +0100)]
Bugfix: configure windows before mapping, correctly store window_rect instead of rect

13 years agomore debug for ClientMessages
Michael Stapelberg [Sat, 27 Nov 2010 15:44:32 +0000 (16:44 +0100)]
more debug for ClientMessages

13 years agofix indention
Michael Stapelberg [Sat, 27 Nov 2010 15:44:20 +0000 (16:44 +0100)]
fix indention