]> git.sur5r.net Git - i3/i3/log
i3/i3
10 years agohandle ButtonPress events with child != XCB_NONE (Thanks xeen)
Michael Stapelberg [Sun, 9 Feb 2014 13:00:43 +0000 (14:00 +0100)]
handle ButtonPress events with child != XCB_NONE (Thanks xeen)

The X11 protocol description states:

  The window the event is reported with respect to is called the event
  window. The event window is found by starting with the source window
  and looking up the hierarchy for the first window on which any client
  has selected interest in the event.

For the case of urxvt with URxvt.internalBorder > 0, urxvt sets up a
subwindow for its actual contents that is placed “in the middle” of the
urxvt window. In terms of the X11 protocol, the source window is urxvt’s
window, but urxvt does not select ButtonPress events for that.
Therefore, X11 will go up in the hierarchy and deliver the event to i3
for i3’s window decoration, even though this was not actually a click on
the decoration, but into the managed window.

Therefore, we check whether child != XCB_NONE for clicks on window
decorations and then handle them as a click inside the window.

fixes #1176

10 years agofix warnings: unsigned check for >= 0 is always true
Michael Stapelberg [Sat, 8 Feb 2014 20:03:26 +0000 (21:03 +0100)]
fix warnings: unsigned check for >= 0 is always true

10 years agoBugfix: `tree_split` should not split floating cons
Tony Crisci [Fri, 7 Feb 2014 15:07:56 +0000 (10:07 -0500)]
Bugfix: `tree_split` should not split floating cons

Use the more robust test of `con_is_floating` for testing a container
for being floating.

fixes #1177

10 years agoDoc update: title right click resizes floating windows
Jonas Maaskola [Fri, 7 Feb 2014 10:52:14 +0000 (11:52 +0100)]
Doc update: title right click resizes floating windows

This documentation update describes the change implemented in
905440d6d1c6d2a872e3bbb0da4c963bedaf5708
It avoids repetitive usage of the word 'also'.

10 years agoSet EWMH desktop properties on startup.
Steve Jones [Sat, 1 Feb 2014 16:09:51 +0000 (16:09 +0000)]
Set EWMH desktop properties on startup.

Calls ewmh_update_current_desktop on startup to set the
_NET_CURRENT_DESKTOP property. Without this change the property only
gets set after the workspaces have been manipulated. Also exclude
hidden workspaces (i.e. those starting with "__" from the workspace
index.

Adds tests for startup and workspace switching.

10 years agoResize floating windows by right-clicking decoration
Jonas Maaskola [Wed, 5 Feb 2014 16:29:42 +0000 (17:29 +0100)]
Resize floating windows by right-clicking decoration

10 years agoDocument the existence of a C ipc project
Tony Crisci [Tue, 4 Feb 2014 15:52:52 +0000 (10:52 -0500)]
Document the existence of a C ipc project

Add a link to https://github.com/acrisci/i3-ipc which is a new ipc
library in the design phase of development. When it is stable, it will
provide bindings to many high-level scripting languages with
GObject-introspection.

This project aims to replace the unmaintained Python library and offer
an ipc library in new languages such as Lua and JavaScript.

10 years agoReally do not create con pixmap when not needed
Tony Crisci [Tue, 4 Feb 2014 18:36:20 +0000 (13:36 -0500)]
Really do not create con pixmap when not needed

The pixmap of a borderless leaf container will not be used except
for the titlebar in a stack or tabs.

Make sure these containers do not (really) have a pixmap because it can
only get in the way.

fixes #1013

10 years agoi3bar: fix resource leak: statusline_ctx needs to be freed first
Michael Stapelberg [Sun, 2 Feb 2014 10:22:42 +0000 (11:22 +0100)]
i3bar: fix resource leak: statusline_ctx needs to be freed first

In practice this is rarely noticeable, unless you very often switch
screen resolutions, I think.

fixes #1172

10 years agoRevert "Do not create container pixmap when not needed"
Michael Stapelberg [Thu, 30 Jan 2014 21:55:26 +0000 (22:55 +0100)]
Revert "Do not create container pixmap when not needed"

This reverts commit 6578976b6159437c16187cf8d1ea38aa9fec9fc8.

fixes #1170

10 years agoAbstract binding configuration to bindings.[ch]
Tony Crisci [Tue, 28 Jan 2014 03:45:01 +0000 (22:45 -0500)]
Abstract binding configuration to bindings.[ch]

Create files bindings.[ch] to contain functions for configuring,
finding, and running bindings.

Use the new function `configure_binding` for binding configuration. This
function adds a binding from config parameters.

Export the function `modifiers_from_str` from config_directives.h.

This change is made in preparation for the new bindmouse functionality.

10 years agocontrib: add per-workspace-layout.pl
Michael Stapelberg [Sun, 26 Jan 2014 15:51:32 +0000 (16:51 +0100)]
contrib: add per-workspace-layout.pl

10 years agocontrib: add sticker that was actually printed
Michael Stapelberg [Sun, 26 Jan 2014 15:43:02 +0000 (16:43 +0100)]
contrib: add sticker that was actually printed

While sticker_stickma_black.svg is the file that we originally provided,
the file that we got back from stickma and actually ordered is the new
one.

10 years agodocs/NoName-2009-03-12: add missing screenshot
Michael Stapelberg [Sun, 26 Jan 2014 15:39:09 +0000 (16:39 +0100)]
docs/NoName-2009-03-12: add missing screenshot

10 years agodebian/rules: get rid of hardcoded release notes file name
Michael Stapelberg [Sun, 26 Jan 2014 15:22:06 +0000 (16:22 +0100)]
debian/rules: get rid of hardcoded release notes file name

10 years agoupdate year in copyright notices to 2014
Marco Hunsicker [Fri, 24 Jan 2014 22:49:46 +0000 (23:49 +0100)]
update year in copyright notices to 2014

This patch updates the copyright year information the i3 and
i3bar binaries show to the user.

10 years agoupdate debian/changelog
Michael Stapelberg [Thu, 23 Jan 2014 22:11:49 +0000 (23:11 +0100)]
update debian/changelog

10 years agoMerge branch 'master' into next
Michael Stapelberg [Thu, 23 Jan 2014 22:05:15 +0000 (23:05 +0100)]
Merge branch 'master' into next

10 years agoMerge branch 'release-4.7.2'
Michael Stapelberg [Thu, 23 Jan 2014 21:53:21 +0000 (22:53 +0100)]
Merge branch 'release-4.7.2'

10 years agoadd release notes for 4.7.2 4.7.2
Michael Stapelberg [Thu, 23 Jan 2014 21:51:55 +0000 (22:51 +0100)]
add release notes for 4.7.2

10 years agoasciidoc git config: fix impress link, update copyright (Thanks Jens)
Michael Stapelberg [Thu, 23 Jan 2014 21:24:03 +0000 (22:24 +0100)]
asciidoc git config: fix impress link, update copyright (Thanks Jens)

10 years agoMerge branch 'userguide-reset'
Michael Stapelberg [Thu, 23 Jan 2014 21:20:39 +0000 (22:20 +0100)]
Merge branch 'userguide-reset'

10 years agoMerge branch 'master' into next
Michael Stapelberg [Thu, 23 Jan 2014 21:20:39 +0000 (22:20 +0100)]
Merge branch 'master' into next

10 years agodocs/userguide: change 'reseted' to 'reset'
Wieland Hoffmann [Wed, 22 Jan 2014 21:46:37 +0000 (22:46 +0100)]
docs/userguide: change 'reseted' to 'reset'

It's an irregular verb.

10 years agoMerge branch 'openbsd-fallocate'
Michael Stapelberg [Thu, 23 Jan 2014 21:20:16 +0000 (22:20 +0100)]
Merge branch 'openbsd-fallocate'

10 years agoMerge branch 'master' into next
Michael Stapelberg [Thu, 23 Jan 2014 21:20:16 +0000 (22:20 +0100)]
Merge branch 'master' into next

10 years agoOpenBSD lacks posix_fallocate()
David Coppa [Wed, 22 Jan 2014 12:55:49 +0000 (13:55 +0100)]
OpenBSD lacks posix_fallocate()

10 years agoMerge branch 'fix-i3-with-shmlog'
Michael Stapelberg [Thu, 23 Jan 2014 21:19:49 +0000 (22:19 +0100)]
Merge branch 'fix-i3-with-shmlog'

10 years agoMerge branch 'master' into next
Michael Stapelberg [Thu, 23 Jan 2014 21:19:49 +0000 (22:19 +0100)]
Merge branch 'master' into next

10 years agoFix install target of i3-with-shmlog.desktop
David Coppa [Wed, 22 Jan 2014 12:52:35 +0000 (13:52 +0100)]
Fix install target of i3-with-shmlog.desktop

10 years agoupdate debian/
Michael Stapelberg [Tue, 21 Jan 2014 18:38:46 +0000 (19:38 +0100)]
update debian/

10 years agoMerge branch 'release-4.7.1'
Michael Stapelberg [Tue, 21 Jan 2014 18:23:25 +0000 (19:23 +0100)]
Merge branch 'release-4.7.1'

10 years agoMerge branch 'release-4.7.1' into next
Michael Stapelberg [Tue, 21 Jan 2014 18:22:43 +0000 (19:22 +0100)]
Merge branch 'release-4.7.1' into next

10 years agoadd release notes for 4.7.1, update manpage version 4.7.1
Michael Stapelberg [Tue, 21 Jan 2014 18:20:36 +0000 (19:20 +0100)]
add release notes for 4.7.1, update manpage version

10 years agoDo not create container pixmap when not needed
Tony Crisci [Sun, 19 Jan 2014 15:22:50 +0000 (10:22 -0500)]
Do not create container pixmap when not needed

The pixmap of a borderless container will not be used (except for the
titlebar in a stack or tabs). Make sure these containers do not have a
pixmap because it can only get in the way.

fixes #1013

10 years agodocs/i3bar-protocol: add missing newline
Vivien Didelot [Tue, 14 Jan 2014 21:15:56 +0000 (16:15 -0500)]
docs/i3bar-protocol: add missing newline

10 years agoRespect Motif hint for window decorations
Tony Crisci [Wed, 15 Jan 2014 02:16:54 +0000 (21:16 -0500)]
Respect Motif hint for window decorations

When the _MOTIF_WM_HINTS property of a window specifies it should have
no title bar, or no decorations at all, respond by setting the border
style of that container to BS_PIXEL or BS_NONE respectively.

This comes from the old Motif window manager. It was originally intended
to specify exactly what sort of decorations a window should have, and
exactly what sort of user input it should respond to. The EWMH spec
intended to replace Motif hints with _NET_WM_WINDOW_TYPE, but it is
still in use by popular widget toolkits such as GTK+ and Java AWT.

i3's implementation simply mirrors Gnome's Metacity. Official
documentation of this hint is nowhere to be found.

For more information see:
https://people.gnome.org/~tthurman/docs/metacity/xprops_8h-source.html
http://stackoverflow.com/questions/13787553/detect-if-a-x11-window-has-decorations

fixes #832

10 years agoMerge branch 'master' into next
Michael Stapelberg [Mon, 13 Jan 2014 22:36:47 +0000 (23:36 +0100)]
Merge branch 'master' into next

10 years agoMerge branch 'fix-move-focus'
Michael Stapelberg [Mon, 13 Jan 2014 22:36:34 +0000 (23:36 +0100)]
Merge branch 'fix-move-focus'

10 years agoBugfix: `move <direction>` sends workspace focus
Tony Crisci [Mon, 13 Jan 2014 20:36:11 +0000 (15:36 -0500)]
Bugfix: `move <direction>` sends workspace focus

Make sure the command `move <direction>` properly sends the workspace
focus ipc event required for i3bar to be properly updated and redrawn.

Make `ipc_send_workspace_focus_event publicly available from ipc.h for
more flexible event sending.

10 years agoMerge branch 'master' into next
Michael Stapelberg [Mon, 13 Jan 2014 22:35:22 +0000 (23:35 +0100)]
Merge branch 'master' into next

10 years agoMerge branch 'fix-eof-msg'
Michael Stapelberg [Mon, 13 Jan 2014 22:35:22 +0000 (23:35 +0100)]
Merge branch 'fix-eof-msg'

10 years agoi3bar Bugfix: don't show "EOF" status line error
Tony Crisci [Tue, 7 Jan 2014 18:32:21 +0000 (13:32 -0500)]
i3bar Bugfix: don't show "EOF" status line error

When the `status_command` sends EOF, it is terminated. Terminating this
process prints an error message to the status line (hence, a race
condition). This error message is always more useful than the former
"EOF" status line error because it shows the exit code.

10 years agoAdd `input_type` enum to `Binding` typedef
Tony Crisci [Thu, 9 Jan 2014 16:59:21 +0000 (11:59 -0500)]
Add `input_type` enum to `Binding` typedef

An input type of B_KEYBOARD will indicated this binding was created with
"bindsym", "bindcode", or "bind" and should only run on key press
events.

An input type of B_MOUSE will indicate this binding was created with
"bindmouse" and should only run on button press events (not yet
implemented).

For more information see #558.

10 years agoi3bar: Amend status line error 127 message
Tony Crisci [Wed, 8 Jan 2014 07:51:27 +0000 (02:51 -0500)]
i3bar: Amend status line error 127 message

Exit 127 can be returned by the shell when the command is not found or
when the `status_command` process returns 127 because of a missing C
library dependency.

10 years agoMovement into a branch considers movement direction
Tony Crisci [Tue, 26 Nov 2013 10:46:10 +0000 (05:46 -0500)]
Movement into a branch considers movement direction

Change the behavior of movement into a branch with respect to the
position the moving con will be placed within the branch when the
movement is complete.

The correct position is determined by the direction of movement or the
position of the focused-inactive container within the branch.

If the direction of movement is the same as the orientation of the
branch container, append or prepend the container to the branch in the
obvious way.  If the movement is to the right or downward, insert the
moving container in the first position (i.e., the leftmost or top
position resp.) If the movement is to the left or upward, insert the
moving container in the last position (i.e., the rightmost or bottom
position resp.)

If the direction of movement is different from the orientation of the
branch container, insert the container into the branch after the
focused-inactive container.

fixes #1060

10 years agouse designated initializers for yajl_callbacks struct
Alexander Kedrik [Wed, 1 Jan 2014 16:19:55 +0000 (20:19 +0400)]
use designated initializers for yajl_callbacks struct

10 years agoadd testcase for #1149
Michael Stapelberg [Sun, 5 Jan 2014 19:37:42 +0000 (20:37 +0100)]
add testcase for #1149

10 years agoipc: dump new "swallows" properties
Michael Stapelberg [Sun, 5 Jan 2014 19:30:03 +0000 (20:30 +0100)]
ipc: dump new "swallows" properties

10 years agosanity check: drop swallows for split containers (Thanks xeen)
Michael Stapelberg [Sun, 5 Jan 2014 19:25:47 +0000 (20:25 +0100)]
sanity check: drop swallows for split containers (Thanks xeen)

fixes #1149

10 years agoi3-save-tree: only create "swallows" key for leaf nodes (Thanks xeen)
Michael Stapelberg [Sun, 5 Jan 2014 19:10:24 +0000 (20:10 +0100)]
i3-save-tree: only create "swallows" key for leaf nodes (Thanks xeen)

fixes #1149

10 years agoRevert "use designated initializers for yajl_callbacks struct"
Michael Stapelberg [Sun, 5 Jan 2014 12:05:31 +0000 (13:05 +0100)]
Revert "use designated initializers for yajl_callbacks struct"

This reverts commit 705b43294add2fffede086c0c072dc5a849ffc49.

This commit broke i3bar for some users.

10 years agofix killing placeholder windows
Michael Stapelberg [Sat, 4 Jan 2014 21:24:47 +0000 (22:24 +0100)]
fix killing placeholder windows

The only consequence of the previous situation was that there was a
misleading log message.

10 years agorun con_fix_percent unconditionally, not only on parsing errors
Michael Stapelberg [Sat, 4 Jan 2014 20:59:41 +0000 (21:59 +0100)]
run con_fix_percent unconditionally, not only on parsing errors

10 years agot/215-layout-restore-crash: fix test description
Michael Stapelberg [Sat, 4 Jan 2014 20:57:35 +0000 (21:57 +0100)]
t/215-layout-restore-crash: fix test description

10 years agotests: add t/215-layout-restore-crash.t for the last couple of commits
Michael Stapelberg [Sat, 4 Jan 2014 20:39:33 +0000 (21:39 +0100)]
tests: add t/215-layout-restore-crash.t for the last couple of commits

10 years agoreturn parse errors via IPC for append_layout
Michael Stapelberg [Sat, 4 Jan 2014 20:39:13 +0000 (21:39 +0100)]
return parse errors via IPC for append_layout

10 years agofix percentages when loading layouts
Michael Stapelberg [Sat, 4 Jan 2014 20:30:51 +0000 (21:30 +0100)]
fix percentages when loading layouts

This is more forgiving for users who delete containers from their layout
file and don’t update the “percent” values.

10 years agoBugfix: set all parsing_* variables to false when starting parsing
Michael Stapelberg [Sat, 4 Jan 2014 20:23:12 +0000 (21:23 +0100)]
Bugfix: set all parsing_* variables to false when starting parsing

10 years agoBugfix: fix crash when layout JSON file is partially invalid (Thanks xeen)
Michael Stapelberg [Sat, 4 Jan 2014 20:22:12 +0000 (21:22 +0100)]
Bugfix: fix crash when layout JSON file is partially invalid (Thanks xeen)

Fixes #1145

10 years agoDisable render-time pointer warps if asked
Tony Crisci [Sat, 4 Jan 2014 12:04:56 +0000 (07:04 -0500)]
Disable render-time pointer warps if asked

When `focus_follows_mouse` configuration option is disabled, do not warp
the pointer when focus changes outputs after rendering.

Rationale: this option is meant to be disabled by users who have a setup
where the mouse is usually in the way. These users tend to move the
mouse to a corner or use a utility to hide the pointer when it is not
active. When this user switches focus between outputs, the mouse is
placed in the center of the screen.

This is clearly against the spirit of disabling `focus_follows_mouse`.
Disabling this option now implies disabling "mouse follows focus".

10 years agouse designated initializers for yajl_callbacks struct
Alexander Kedrik [Wed, 1 Jan 2014 16:19:55 +0000 (20:19 +0400)]
use designated initializers for yajl_callbacks struct

10 years agoremove unnecessary forward declaration of set_statusline_error
Alexander Kedrik [Wed, 1 Jan 2014 15:23:10 +0000 (19:23 +0400)]
remove unnecessary forward declaration of set_statusline_error

Attributes can be added to function definitions.
Tested with gcc 4.8.2 and clang 3.3

10 years agoFix 'gcc -Wextra -Wno-unused-parameter'.
Peter Boström [Sat, 4 Jan 2014 12:18:38 +0000 (13:18 +0100)]
Fix 'gcc -Wextra -Wno-unused-parameter'.

10 years agoMerge branch 'docs-debugging'
Michael Stapelberg [Sat, 4 Jan 2014 11:23:06 +0000 (12:23 +0100)]
Merge branch 'docs-debugging'

10 years agoMerge branch 'master' into next
Michael Stapelberg [Sat, 4 Jan 2014 11:23:06 +0000 (12:23 +0100)]
Merge branch 'master' into next

10 years agoinstall i3-with-shmlog.xsession.desktop, overwrite symlink if it exists
Michael Stapelberg [Sat, 4 Jan 2014 11:22:53 +0000 (12:22 +0100)]
install i3-with-shmlog.xsession.desktop, overwrite symlink if it exists

10 years agoMerge branch 'master' into next
Michael Stapelberg [Sat, 4 Jan 2014 11:20:12 +0000 (12:20 +0100)]
Merge branch 'master' into next

10 years agoMerge branch 'docs-debugging'
Michael Stapelberg [Sat, 4 Jan 2014 11:19:52 +0000 (12:19 +0100)]
Merge branch 'docs-debugging'

10 years agoenable shmlog when invoked as i3-with-shmlog, install symlink + .desktop file
Michael Stapelberg [Sat, 4 Jan 2014 11:15:50 +0000 (12:15 +0100)]
enable shmlog when invoked as i3-with-shmlog, install symlink + .desktop file

10 years agodocs/debugging: use a version command that will work with i3 < 4.3
Michael Stapelberg [Sat, 4 Jan 2014 11:06:21 +0000 (12:06 +0100)]
docs/debugging: use a version command that will work with i3 < 4.3

10 years agodocs/debugging: merge the debug symbols/backtrace section
Michael Stapelberg [Sat, 4 Jan 2014 11:04:43 +0000 (12:04 +0100)]
docs/debugging: merge the debug symbols/backtrace section

We rarely have crashes, almost always we just need logs.

10 years agodocs/debugging: include supported version, recommend --moreversion
Michael Stapelberg [Sat, 4 Jan 2014 10:54:23 +0000 (11:54 +0100)]
docs/debugging: include supported version, recommend --moreversion

10 years agodocs/debugging: explain how to enable logging on the fly
Michael Stapelberg [Sat, 4 Jan 2014 10:46:26 +0000 (11:46 +0100)]
docs/debugging: explain how to enable logging on the fly

10 years agodocs/debugging: update version numbers
Michael Stapelberg [Sat, 4 Jan 2014 10:46:12 +0000 (11:46 +0100)]
docs/debugging: update version numbers

10 years agodocs/debugging: use bzip2 for consistency with the new ticket form (Thanks x33a)
Michael Stapelberg [Sat, 4 Jan 2014 10:35:06 +0000 (11:35 +0100)]
docs/debugging: use bzip2 for consistency with the new ticket form (Thanks x33a)

10 years agoFix clang -Wextra except -Wunused-parameter.
Peter Boström [Wed, 25 Dec 2013 19:01:37 +0000 (20:01 +0100)]
Fix clang -Wextra except -Wunused-parameter.

Cleared all warnings that occur when passing
CFLAGS="-Wall -Wextra -Wno-unused-parameter" to make using clang 3.3 on
Linux x86-64.

10 years agoi3bar: Don't start child unless status_command
Tony Crisci [Fri, 27 Dec 2013 03:00:06 +0000 (22:00 -0500)]
i3bar: Don't start child unless status_command

If a command is passed to `start_child` which is NULL, such as in the
case when there is no `status_command` specified in the bar config, do
not start a child process to listen on stdin.

fixes #1140

10 years agoSize resizebar according to container size.
Peter Boström [Tue, 24 Dec 2013 11:57:34 +0000 (12:57 +0100)]
Size resizebar according to container size.

10 years agoSnap pointer to resize bar on drag resize
Tony Crisci [Sat, 21 Dec 2013 19:29:22 +0000 (14:29 -0500)]
Snap pointer to resize bar on drag resize

When the user initiates a drag resize, draw the resize bar on the border
of the two involved containers and snap the pointer.

This solution produces cleaner code than the former approach where the
caller obfuscated the click coordinates of the event. This may confuse
someone expecting a true button press event.

Fixes an issue where the resize cursor is not shown when the resize bar
is clicked until the user begins to drag the mouse.

Fixes an issue where focus is not properly updated after the drag is
complete when `focus_follows_mouse' option is set, leaving the pointer
in an unfocused window in some cases.

Fixes an issue where the resize bar may jump a few pixels when the mouse
is first moved.

(Thanks to pbos for suggesting this fix and providing an example
implementation)

10 years agoUse #pragma once
Alexander Kedrik [Sun, 29 Dec 2013 02:11:50 +0000 (06:11 +0400)]
Use #pragma once

 #pragma once is safer and simpler. According to Wikipedia it's supported by all major compilers.

10 years agoMerge branch 'fix-tray-mapped'
Michael Stapelberg [Wed, 1 Jan 2014 10:10:26 +0000 (11:10 +0100)]
Merge branch 'fix-tray-mapped'

10 years agoMerge branch 'master' into next
Michael Stapelberg [Wed, 1 Jan 2014 10:10:26 +0000 (11:10 +0100)]
Merge branch 'master' into next

10 years agoi3bar: Set `mapped` flag on trayclient creation
Tony Crisci [Thu, 26 Dec 2013 05:30:21 +0000 (00:30 -0500)]
i3bar: Set `mapped` flag on trayclient creation

When a trayclient is first created as a structure in memory, explicitly
set the `mapped` flag to false. Otherwise it may initialize to `true` in
some circumstances without actually being mapped, causing a request to
be mapped from the client to be ignored.

Create the trayclient in memory before handling a request to be mapped
immediately.

fixes #1138

10 years agoinclude i3-save-tree in dist tarballs
Michael Stapelberg [Tue, 24 Dec 2013 17:07:07 +0000 (18:07 +0100)]
include i3-save-tree in dist tarballs

10 years agoinstall i3-save-tree(1) (Thanks Marcin)
Michael Stapelberg [Tue, 24 Dec 2013 15:15:43 +0000 (16:15 +0100)]
install i3-save-tree(1) (Thanks Marcin)

10 years agoMerge branch 'dpi-log'
Michael Stapelberg [Tue, 24 Dec 2013 09:37:14 +0000 (10:37 +0100)]
Merge branch 'dpi-log'

10 years agoMerge branch 'master' into next
Michael Stapelberg [Tue, 24 Dec 2013 09:37:14 +0000 (10:37 +0100)]
Merge branch 'master' into next

10 years agoonly LOG() the DPI when it changes, DLOG() it otherwise (Thanks lkraav)
Michael Stapelberg [Tue, 24 Dec 2013 09:35:56 +0000 (10:35 +0100)]
only LOG() the DPI when it changes, DLOG() it otherwise (Thanks lkraav)

This avoids flooding stdout every time some text (e.g. a window
decoration) is drawn, yet leaves the message in place when it’s actually
relevant (upon DPI changes).

fixes #1115

10 years agodebian/: add perl recommends to i3-wm for i3-save-tree(1)
Michael Stapelberg [Sun, 22 Dec 2013 20:54:13 +0000 (21:54 +0100)]
debian/: add perl recommends to i3-wm for i3-save-tree(1)

10 years agoupdate DEPENDS
Michael Stapelberg [Sun, 15 Dec 2013 20:31:18 +0000 (21:31 +0100)]
update DEPENDS

10 years agoadd i3-save-tree(1) which dumps the layout of a workspace or an output
Michael Stapelberg [Sun, 15 Dec 2013 20:29:21 +0000 (21:29 +0100)]
add i3-save-tree(1) which dumps the layout of a workspace or an output

10 years agoipc: dump window properties when not restarting inplace
Michael Stapelberg [Sun, 15 Dec 2013 20:29:05 +0000 (21:29 +0100)]
ipc: dump window properties when not restarting inplace

10 years agodragging: instead of using a custom event loop, use libev
Michael Stapelberg [Sun, 15 Dec 2013 16:30:06 +0000 (17:30 +0100)]
dragging: instead of using a custom event loop, use libev

This is done by installing a new check watcher that replaces the main
X11 event handler and calling ev_run with EVRUN_ONCE until the dragging
loop left state DRAGGING.

With this commit, other handlers, most notably the redraw handler for
placeholder windows, get a chance to run when dragging (placeholder!)
windows around.

10 years agoreconnect when the restore X11 connection dies
Michael Stapelberg [Sun, 15 Dec 2013 14:17:37 +0000 (15:17 +0100)]
reconnect when the restore X11 connection dies

This could happen if a user uses xkill(1) on a placeholder window.

10 years agokill placeholder windows when the actual window appears
Michael Stapelberg [Sun, 15 Dec 2013 14:00:26 +0000 (15:00 +0100)]
kill placeholder windows when the actual window appears

10 years agoreplace never-true condition with a working one
Michael Stapelberg [Sun, 15 Dec 2013 13:57:04 +0000 (14:57 +0100)]
replace never-true condition with a working one

state->initial is set to false before calling x_push_node() since we
began pushing the window stack before pushing changes. Therefore, the
condition could never be true.

10 years agofix test after renaming role to window_role
Michael Stapelberg [Sun, 15 Dec 2013 13:56:34 +0000 (14:56 +0100)]
fix test after renaming role to window_role

10 years agointroduce client.placeholder color
Michael Stapelberg [Sun, 15 Dec 2013 10:42:40 +0000 (11:42 +0100)]
introduce client.placeholder color

10 years agoset original window title on placeholder windows
Michael Stapelberg [Sun, 15 Dec 2013 10:32:36 +0000 (11:32 +0100)]
set original window title on placeholder windows