62 Commits

Author SHA1 Message Date
Sascha Kruse
1221ac8c92 Use sanitized variable instead of settings value 2014-06-16 20:42:04 +02:00
Amadeus Folego
d2245c70f6 Set wm class and name with -name 2014-04-30 19:36:59 -03:00
Sascha Kruse
48de907812 error handling for follow mode
see issue #141
2014-03-10 22:57:16 +01:00
Sascha Kruse
8bb8f6269f fix compiler warnings 2014-03-08 12:09:18 +01:00
Sascha Kruse
6957ac77a0 Merge branch 'feature-icon' of git://github.com/Gjum/dunst into pull_requests
Conflicts:
	dunstrc
	settings.c
2014-03-08 11:57:09 +01:00
Sascha Kruse
ff4d56e826 Merge branch 'fix_layout_alignment' of git://github.com/wavexx/dunst into pull_requests 2014-03-08 11:36:11 +01:00
Yuri D'Elia
0466d41c50 Set _NET_WM_STATE_ABOVE and fix window type.
- Fix indentation.
- Fix wrong paramenters in call to XChangeProperty
- Do not try to raise the window, set _NET_WM_STATE_ABOVE instead
2014-03-06 16:47:06 +01:00
Yuri D'Elia
38702761a3 Fix layout alignment with dynamic width.
Update pango layout's width if width has changed and alignment != left.
2014-03-06 12:56:57 +01:00
Gjum
5a5dab2ff3 Add script option to override shown icon 2014-03-01 14:53:30 +01:00
Gjum
a02ab4cf70 Change how icons are loaded
- use several icon_folders instead of a single icon_path
- check all paths for the icon
2014-02-27 15:15:11 +01:00
Gjum
c6ef8ecaed Fix error on non-existent icon names 2014-02-27 00:36:59 +01:00
Gjum
01327a6bc4 Add option to align icons left or right 2014-02-26 22:43:53 +01:00
Gjum
d9e68803dc Fix stuff regarding icons
- fix icon_path string calculations
- add default settings to config.def.h
2014-02-26 19:05:32 +01:00
Gjum
c2801181f8 Add icon support
- icons are displayed at the top left corner
- disabed by default, fully backwards-compatible
- no additional dependencies, only cairo used
- TODO: only supports png (but all default images are png)
- TODO: message formatting is sometimes buggy
2014-02-25 23:35:08 +01:00
progandy
80af8a1030 fix dynamic width calculation 2013-12-06 07:01:51 +01:00
Sascha Kruse
41e5976e6d set _NET_WM_WINDOW_TYPE (thanks lexming)
fix #113
2013-07-16 13:30:46 +02:00
Sascha Kruse
fb8eafe3fa show pango markup errors only once
see also #111
2013-06-29 00:50:57 +02:00
Sascha Kruse
a098b9476f set width of layouts correctly on dynamic width
fix #110
2013-06-29 00:32:54 +02:00
René 'Necoro' Neumann
be7d2b3511 Correctly handle Num_Lock.
Find out which modifier key is used by Num_Lock (`x_numlock_mod()`) and
register grabs for both variants: modifier present/not present.
2013-06-13 15:16:03 +02:00
Giuliano Schneider
24d9179e4d xctx.geometry.y -> xctx.geometry.x 2013-05-01 12:00:35 +02:00
Giuliano Schneider
dd047ccd20 implemented shrink option 2013-04-30 14:55:50 +02:00
Giuliano Schneider
2d59a77e0c wrap the text if it's wider than the screen width (Fixes #53) 2013-04-23 20:58:19 +02:00
Sascha Kruse
99feeea84b fix segfault 2013-03-12 02:17:43 +01:00
Sascha Kruse
cdb39c30b4 x.c: free_colored_layout stuff leak 2013-03-08 20:14:13 +01:00
Sascha Kruse
75ef76946b x.c define functions as static where possible 2013-03-08 17:59:23 +01:00
Sascha Kruse
916b8816cb refactor calculate_foreground_color()
split repeated code into separate function.
2013-03-08 17:50:46 +01:00
Sascha Kruse
2ee38ca961 only FocusChangeMask|PropertyChangeMask if needed
We don't need to listen to the corresponding events when we don't need
to follow the mouse/keyboard focus.
2013-03-08 17:19:56 +01:00
Sascha Kruse
15cd7586a2 move renderling of layouts into extra function 2013-03-08 03:25:13 +01:00
Sascha Kruse
411434a18f refactor calculation of dimentions 2013-03-08 02:47:03 +01:00
Sascha Kruse
5099b57ee5 use double buffering
render to cairo_image_surface and drop that onto the xlib_surface
to get rid of flickering on redraws.
2013-03-08 02:30:23 +01:00
Sascha Kruse
c2a5b526e2 fix expanding window across the screen
test case included
2013-03-02 17:22:12 +01:00
Sascha Kruse
d314e01b34 fix background rendering with padding 2013-02-28 20:09:35 +01:00
Sascha Kruse
0c3c7c8d16 get rid off some compiler warnings 2013-02-25 22:04:34 +01:00
Sascha Kruse
779c4354c4 Wakeup on PropertyNotify
This causes dunst to wakeup when _NET_ACTIVE_WINDOW changed so we can
check wether we need to move to another monitor.
2013-02-25 21:58:15 +01:00
Sascha Kruse
f4d852550d Merge remote-tracking branch 'tardis/focusevent' into cairo 2013-02-25 20:40:50 +01:00
Sascha Kruse
06b056eea2 actually use the result of calculate_width() 2013-02-23 00:46:41 +00:00
Sascha Kruse
7af28d7145 ellipsize when !word_wrap 2013-02-23 00:35:06 +00:00
Sascha Kruse
dd0647eaf7 fix width calculation 2013-02-23 00:35:06 +00:00
Sascha Kruse
a34adda3a4 resize surface to match window size 2013-02-22 20:41:23 +00:00
Sascha Kruse
88cb136b88 reintroduced (x more) message 2013-02-22 20:32:45 +00:00
Sascha Kruse
4cb4e9f8d4 watch focus event 2013-02-22 19:53:47 +00:00
Sascha Kruse
f12d5332a8 fail more gracefully on broken markup
Strip markup and display plain text. Also print
error message why markup couldn't be parsed.
2013-02-22 19:38:42 +00:00
Sascha Kruse
0d8be7dccf markup 2013-02-22 18:36:25 +00:00
Sascha Kruse
f839d0656e use cairo_rectangle for separator 2013-02-22 18:36:24 +00:00
Sascha Kruse
fdffe4a6c0 colors 2013-02-22 18:36:24 +00:00
Sascha Kruse
5f5f706381 remove debug printfs 2013-02-22 18:36:24 +00:00
Sascha Kruse
138476486e removed another unused function 2013-02-22 18:36:24 +00:00
Sascha Kruse
ced9186cf1 removed the rest of old drawing code 2013-02-22 18:36:24 +00:00
Sascha Kruse
c2032b9cc6 removed some unused code 2013-02-22 18:36:24 +00:00
Sascha Kruse
ec52f00edf frame 2013-02-22 18:36:24 +00:00