Commit Graph

4211 Commits

Author SHA1 Message Date
enkore 58e68940f6 Add click events to i3bar
If the statusline generator (i.e. i3status) specifies click_events:true
in the protocol header, i3bar will write a JSON array on it's stdin
notifying it if the user clicks on a block.

The exact protocol is documented in docs/i3bar-protocol.
2013-03-21 23:55:30 +01:00
Yuxuan Shui 5adb09c5fc Use a saner sanity check for floating_reposition.
The function contained_by_output checks whether any output contains any
parts of a give rect. Rather than relying on the central point of the rect.
2013-03-21 23:41:07 +01:00
Yuxuan Shui 5b4ff1804d Fix restarting with 32bit depth windows (v5)
What I do in this patch is:

1. Split the con_new() function, so I can create a Con without actually
create a window.
2. Store the depth of Cons in the layout file when i3 is restarting.

Fix typos and mis-staged files in previous patch.
2013-03-21 23:38:09 +01:00
Michael Stapelberg 7552a02d5c i3-dmenu-desktop: run commands when they don’t match a .desktop file
This allows you to enter e.g. "i3 layout stacking" (provided you don’t
have an i3 .desktop file)
2013-03-21 23:32:46 +01:00
Baptiste Daroussin 505d87ef3e FreeBSD expect a real path on the filesystem for shm_open 2013-03-20 17:29:06 +01:00
Baptiste Daroussin 346cba0e0f shm_unlink the created/open shm 2013-03-20 17:26:14 +01:00
Baptiste Daroussin f530e5452d Do not use ELOG while logwalk is not initialized 2013-03-20 17:24:10 +01:00
Baptiste Daroussin eb601a2615 All supported FreeBSD version has getline now 2013-03-20 11:17:26 +01:00
Michael Stapelberg 056168494c update debian/ 2013-03-18 23:01:36 +01:00
Michael Stapelberg 11a3d4077e Merge branch 'master' into next 2013-03-18 22:45:55 +01:00
Michael Stapelberg 72f42bdc85 Merge branch 'release-4.5.1' 2013-03-18 22:45:50 +01:00
Michael Stapelberg 13f4a9f3ee add release notes for v4.5.1 2013-03-18 22:42:33 +01:00
Michael Stapelberg 41ac26456b Merge branch 'master' into next 2013-03-17 01:01:11 +01:00
Michael Stapelberg 1e388796ab Merge branch 'bump-copyrights' 2013-03-17 01:01:11 +01:00
Michael Stapelberg 271189444d bump copyright years to 2013 2013-03-17 01:01:04 +01:00
Michael Stapelberg 1510579c86 Merge branch 'master' into next 2013-03-17 00:59:52 +01:00
Michael Stapelberg fcabc0ab6c Merge branch 'i3dd-error' 2013-03-17 00:59:52 +01:00
Michael Stapelberg a7ba8931d5 i3-dmenu-desktop: improve error message when dmenu cannot be found
fixes #984
2013-03-17 00:59:18 +01:00
Michael Stapelberg f5a43738d1 Merge branch 'master' into next 2013-03-15 19:27:23 +01:00
Michael Stapelberg 203f5dafd0 Merge branch 'fix-floating-move' 2013-03-15 19:27:23 +01:00
Michael Stapelberg 083611e434 Bugfix: Don’t warp the pointer when dragging floating windows
fixes #951
2013-03-15 19:27:08 +01:00
Michael Stapelberg c488bf7a76 Merge branch 'master' into next 2013-03-14 15:20:34 +01:00
Michael Stapelberg aea25407df Merge branch 'fix-make' 2013-03-14 15:20:34 +01:00
Marcus Crestani 89c41f50af Add YAJL_CFLAGS to i3-msg.mk. 2013-03-14 15:20:33 +01:00
Michael Stapelberg 0f6d483558 docs/hacking-howto: explain our different branches 2013-03-14 14:44:01 +01:00
Michael Stapelberg fee6d15a3a docs/hacking-howto: fix the link to the git introduction 2013-03-14 14:43:51 +01:00
Michael Stapelberg b8230183ef add dummy entry to debian/changelog 2013-03-12 15:12:13 +01:00
Michael Stapelberg fe34820c0a update debian/ 2013-03-12 15:11:35 +01:00
Michael Stapelberg a1691a08ba Merge branch 'next' 2013-03-12 14:05:47 +01:00
Michael Stapelberg de9c31611d Merge branch 'release-4.5' into next 2013-03-12 14:05:41 +01:00
Michael Stapelberg 2640fb2b5f makefile: delete test.{config_parser,commands_parser} in distclean 2013-03-12 14:03:22 +01:00
Michael Stapelberg ec0dca9c75 add release notes for i3 v4.5 2013-03-12 13:40:52 +01:00
Michael Stapelberg c534b6f7e3 i3-dmenu-desktop: bump version to 1.4 2013-03-12 13:38:14 +01:00
oblique 8a4a719093 Add support for _NET_WM_STATE_DEMANDS_ATTENTION.
_NET_WM_STATE_DEMANDS_ATTENTION indicates that some action in or with
the window happened. It's a weaker hint than urgency flag of WM_HINTS,
but some applications and almost all Qt applications use it instead of
WM_HINTS' urgency flag (one example is Skype).
2013-03-09 10:55:13 +01:00
Michael Stapelberg 8327f837a0 i3-dmenu-desktop: remove %i from commandline
We don’t currently support the icon argument, but entirely not handling
%i leads to e.g. “digikam” not starting.
2013-03-03 21:27:56 +01:00
András Mohari ae0842532e Bugfix: Set separator color properly when drawing
Set the colors in the GC directly since set_font_colors() does not do it
when using a Pango font, resulting in i3bar drawing separators in the
wrong color.
2013-02-25 23:49:15 +01:00
András Mohari a0d5b744ab Allow min_width of a block in i3bar to be a string
With this change, min_width can either be an integer (as usual), or a
string. In the latter case, the width of the text given by min_width
determines the minimum width of the block. This way one does not have to
figure out a minimum width by trial and error, only to do it again every
time the font is changed.
2013-02-25 23:48:35 +01:00
Michael Stapelberg 7ecdcb61f8 config: accept “smart” as popup_during_fullscreen parameter (Thanks supplantr)
This was the default, so explicitly setting it is not really necessary,
but of course it should be possible.

fixes #967
2013-02-24 17:23:37 +01:00
Mats a38749e7e4 Bugfix: Handle nested transient popups properly
During smart popup fullscreen handling, display all transient popups
that belong to the respective fullscreen application. A popup window
belongs to another window if the latter is reachable via the path
induced by the WM_TRANSIENT_FOR hints.

fixes #881
2013-02-24 15:59:38 +01:00
Michael Stapelberg 4fdf62eb2a Merge branch 'fix-move-ws' 2013-02-19 00:28:05 +01:00
Michael Stapelberg d5358a749e Merge branch 'master' into next 2013-02-19 00:28:05 +01:00
Michael Stapelberg 9bfe6a6236 Bugfix: Properly parse commands like “move workspace torrent” (Thanks rasi)
fixes #955
2013-02-19 00:27:55 +01:00
Michael Stapelberg 2922603cc4 tests: correctly close stdout with IPC::Run
while IPC::Run supports <&-, it does not support >&- apparently.
2013-02-19 00:26:00 +01:00
Michael Stapelberg 9cd2d1fb8a make t/205-ipc-windows require AnyEvent::I3 >= 0.15
Necessary due to the new event type
2013-02-18 10:59:32 +01:00
Piotr S. Staszewski 3facbbca5c Add a new IPC event for changes on windows.
Added new event id (I3_IPC_EVENT_WINDOW) so that a an IPC client can
subscribe to events on windows. Added a basic window event that gets
triggered when a window gets successfully reparented. This new event
also dumps the container data, so that IPC clients can get the initial
window name. IPC clients wishing to see window events should subscribe
to 'window'.
2013-02-18 10:55:11 +01:00
Michael Stapelberg e215fd43c0 i3bar-protocol: update example, reword separator{,_block_width} 2013-02-18 10:51:52 +01:00
Artem Shinkarov 5f05ca6b5d Separator color via config; separator width and on/off via ipc
This patch adds the following features:
1) Configure a color of the separator via config.  It is done like
   bar {
      colors {
         separator #000000
      }
   }
2) A block can have an integer entry "separator_block_width" which
   sets the width of the gap which would follow after the current block.

3) A block can have a boolean entry "separator" and if it is set
   to false, then the drawing of the separating line would be disabled.
2013-02-18 10:44:44 +01:00
Michael Stapelberg a52b1b4bb0 inline comments for enum values 2013-02-18 10:41:34 +01:00
Sebastian Ullrich 49979c9d15 Always auto center on 'scratchpad show' if window hasn't been repositioned by the user
This change ensures a scratchpad window is still centered on the screen
if it has first been shown on another screen of a different
resolution. Moving or resizing the scratchpad manually disables this
behavior.
2013-02-18 10:38:28 +01:00
Michael Stapelberg 7f0065e1b1 tests: unset $ENV{SHELL} to avoid breakage with fish (Thanks dRbiG) 2013-02-15 16:41:28 +01:00