Commit graph

228 commits

Author SHA1 Message Date
o9000
92bd9e9184 Taskbar: code cleanup 2016-01-08 23:43:53 +01:00
o9000
5450f89612 Remove double pixmap caching, it is crazy (see issue #542) 2016-01-08 22:57:32 +01:00
o9000
1ff868fdb7 Do not use negative values for task state since it is used as array index 2016-01-03 02:44:14 +01:00
o9000
106471225f Rename dsp -> display 2016-01-01 13:49:10 +01:00
o9000
a6da0186e0 Cache pixmaps for mouse effects to improve performance 2016-01-01 04:57:08 +01:00
o9000
737150d7e9 Work better with empty config files 2015-12-27 15:39:39 +01:00
o9000
da0c52ecff Rename: monitor -> monitors 2015-12-22 23:16:01 +01:00
o9000
3790723483 Code cleanup 2015-12-13 11:39:12 +01:00
o9000
e3fcff7f21 Make the default font for workspace name bold 2015-12-12 15:29:33 +01:00
o9000
9a85f7f2c5 Use default desktop font (Gtk/FontName from XSettings) when the font is not specified in the config file 2015-12-12 15:14:42 +01:00
o9000
17f94205b4 Execplugin: add pango markup option 2015-12-05 11:42:07 +01:00
o9000
ea82926b3f New config option: taskbar sort by LRU/MRU (no config GUI yet) (issue #532) 2015-12-05 11:07:23 +01:00
o9000
333ed7a207 Fix missing redraw 2015-11-22 16:33:58 +01:00
o9000
eb044da8bc Support for NETWM viewports (compiz) 2015-11-21 04:35:12 +01:00
o9000
4a6937826c Cleanup indentation with clang-format and changed a few variable names 2015-11-20 23:28:37 +01:00
o9000
c0e62e2e79 Cleanup: area.h 2015-11-18 21:57:10 +01:00
o9000
095b311edc Mouse effects: changed defaults + disabled pixmap caching 2015-11-06 11:46:15 +01:00
o9000
0900c088ee Mouse effects: fixes, changed defaults, more config options 2015-11-04 23:14:11 +01:00
o9000
68d3799c47 Mouse effects: tint icons 2015-11-04 13:02:12 +01:00
o9000
732b9d3910 Mouse pressed effect + some fixes for mouse over 2015-11-04 12:19:23 +01:00
o9000
34b341767c Task: disable pixmap caching (temporary change until we make it work with mouse effects) 2015-11-04 11:58:11 +01:00
o9000
57c35549f3 Area: refactor list -> children 2015-11-04 02:37:10 +01:00
o9000
294fdee57f Mouse over effects 2015-11-04 01:32:13 +01:00
o9000
985c557dcd Refactored text size computation 2015-10-18 16:51:08 +02:00
o9000
5b01670a22 Fix lost font setting for desktop name 2015-09-12 03:08:25 +02:00
Sebastian Reichel
edad9bb7f5 Fix memory leak for battery tooltips
Instead of returning a const string, that is fed into strdup, tooltip
functions are now supposed to return allocated strings. This fixes a
memory leak in the battery tooltip.

This is used instead of simply freeing the memory in the battery
tooltip function, since it also avoids a uselesss strdup().
2015-08-07 02:09:53 +02:00
o9000
7ffc220891 Taskbar: Use consistent behavior when showing/hiding sticky (all desktop) windows 2015-08-01 08:22:08 +02:00
o9000
4e3989f9f5 Revert "taskbar: Add logging for window_get_monitor()"
This reverts commit 7162c5dea1.
2015-07-30 22:56:01 +02:00
o9000
7162c5dea1 taskbar: Add logging for window_get_monitor() 2015-07-26 11:51:39 +02:00
o9000
e76202b355 Fix systray rendering when compositor off 2015-07-23 20:38:33 +02:00
o9000
df1f2d4e4b Merge taskbar_alignment from branch 2015-06-12 00:52:10 +02:00
o9000
5450dcca0b Attempt to fix new window title race in fvwm 2015-05-08 21:49:26 +02:00
o9000
e7c3f99e28 Attempt to fix icon rendering problems 2015-05-03 15:36:42 +02:00
o9000
bd9e12b993 Wrap text at word boundaries 2015-04-26 16:33:07 +02:00
o9000
95fa0bbf83 tint2 & tint2conf: Use spacing in task_padding 2015-04-26 15:16:24 +02:00
o9000
b4f15db397 Use font shadows for all elements except tooltips
git-svn-id: http://tint2.googlecode.com/svn/trunk@766 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-18 13:22:07 +00:00
o9000
66cae4bb7c Fix dangling pointers causing erratic timer behaviour (affects taskbar with spacing); use calloc instead of malloc for safer initializations
git-svn-id: http://tint2.googlecode.com/svn/trunk@758 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-17 20:17:25 +00:00
o9000
7d70189bee Minor improvements to taskbar_sort_order = center (issue 478)
git-svn-id: http://tint2.googlecode.com/svn/trunk@752 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-12 20:02:58 +00:00
o9000
e49e05ad69 Fix task visilibility problem, issue 481
git-svn-id: http://tint2.googlecode.com/svn/trunk@750 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-12 16:02:03 +00:00
o9000
af003d0e19 Memory management review: match char-malloc/strdup-free, gchar-g_str*/g_free; set pointers to null after free; initialize fonts/backgrounds correctly when missing from config
git-svn-id: http://tint2.googlecode.com/svn/trunk@748 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-11 09:51:10 +00:00
o9000
e539c6536f Sort tasks on taskbar: config + sort by title or center (disabled, work in progress) - issue 478
git-svn-id: http://tint2.googlecode.com/svn/trunk@743 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-28 22:38:57 +00:00
o9000
82fe74743c Sort tasks on taskbar: use panel orientation (disabled, work in progress) - issue 478
git-svn-id: http://tint2.googlecode.com/svn/trunk@741 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-28 21:10:23 +00:00
o9000
5376e09963 Sort tasks on taskbar (disabled, work in progress) - issue 478
git-svn-id: http://tint2.googlecode.com/svn/trunk@740 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-28 21:07:33 +00:00
o9000
e113080a0e Tentative to sort tasks on taskbar (disabled) - issue 478
git-svn-id: http://tint2.googlecode.com/svn/trunk@738 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-22 16:07:04 +00:00
o9000
c900bc24b2 Add option to hide tasks from different monitors when panel_monitor = x (issue 196)
git-svn-id: http://tint2.googlecode.com/svn/trunk@736 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-21 09:49:10 +00:00
o9000
f6b78ad094 Changed icon rendering to fix issue 432
git-svn-id: http://tint2.googlecode.com/svn/trunk@734 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-20 22:15:56 +00:00
o9000
f5a18cc4f4 Option taskbar_hide_inactive_tasks (issue 458)
git-svn-id: http://tint2.googlecode.com/svn/trunk@732 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-20 21:19:02 +00:00
o9000
4c16f97e73 Autohide-show panel when task becomes urgent
git-svn-id: http://tint2.googlecode.com/svn/trunk@730 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-20 20:54:57 +00:00
o9000
4e76c2bb5d Taskbar: add option to redistribute size in multi-desktop mode (useful especially when the taskbar is getting full on one desktop)
git-svn-id: http://tint2.googlecode.com/svn/trunk@673 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-30 09:53:16 +00:00
o9000
c59f239999 taskbar: fix task cycling bug in multi_desktop mode
git-svn-id: http://tint2.googlecode.com/svn/trunk@662 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-21 01:45:09 +00:00
o9000
9ac902b62b taskbar: draw softer shadows so that text is more readable
git-svn-id: http://tint2.googlecode.com/svn/trunk@661 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-21 00:27:40 +00:00
o9000
42469038a8 taskbar: add TODO for icon sizing in large panels
git-svn-id: http://tint2.googlecode.com/svn/trunk@660 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-21 00:12:05 +00:00
o9000
f70415d7db taskbar: fix GLib-CRITICAL: g_hash_table_foreach: assertion version == hash_table->version failed
git-svn-id: http://tint2.googlecode.com/svn/trunk@656 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-20 23:37:40 +00:00
o9000
0a1ceaeed0 Fix for incorrect task cycling when windows visible on all desktops are present
git-svn-id: http://tint2.googlecode.com/svn/trunk@651 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2012-10-14 22:00:48 +00:00
o9000
97001249b5 *fix* segfault when cycling through tasks and taskbarname is enabled
git-svn-id: http://tint2.googlecode.com/svn/trunk@628 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-03-07 23:46:42 +00:00
andreas.fink85
25d1555150 *fix* test with config_background_mask rather than config_font_mask, since we check if the background was specified
git-svn-id: http://tint2.googlecode.com/svn/trunk@627 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-02-22 15:01:04 +00:00
o9000
f32d2bc7bf Fix segfault when a task state has no background in config
git-svn-id: http://tint2.googlecode.com/svn/trunk@626 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-02-20 22:47:32 +00:00
andreas.fink85
b3b26e199c *fix* battery: set background_id to 0 if none has been specified
git-svn-id: http://tint2.googlecode.com/svn/trunk@623 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-02-05 08:32:11 +00:00
Andreas.Fink85
8201742546 *add* remove of tooltip = En/Disabled. it's renamed to task_tooltip to enable/disable task/clock tooltip separatly (tooltip = N is equivalent to
task_tooltip = N for backwards compatibility)


git-svn-id: http://tint2.googlecode.com/svn/trunk@615 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-12-12 08:57:51 +00:00
thilor77
2ab0d33ae5 desktop name : last step
git-svn-id: http://tint2.googlecode.com/svn/trunk@601 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-16 20:00:22 +00:00
thilor77
d32b4ed908 desktop name
git-svn-id: http://tint2.googlecode.com/svn/trunk@600 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-15 21:56:41 +00:00
thilor77
edc5db91c6 desktop name second step
git-svn-id: http://tint2.googlecode.com/svn/trunk@599 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-15 15:36:12 +00:00
thilor77
14b6d45761 cleanup taskbar_name
git-svn-id: http://tint2.googlecode.com/svn/trunk@598 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-14 15:34:14 +00:00
thilor77
240c1dc416 fixed segfault
git-svn-id: http://tint2.googlecode.com/svn/trunk@597 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-13 23:48:36 +00:00
thilor77
d94e2a1790 desktop name: first step
git-svn-id: http://tint2.googlecode.com/svn/trunk@596 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-13 10:27:26 +00:00
thilor77
7c8a31db72 update my contribution to the company
git-svn-id: http://tint2.googlecode.com/svn/trunk@585 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-02 11:40:50 +00:00
thilor77
f9d2cc1b73 fixed taskbar redrawing when pos/size changed
git-svn-id: http://tint2.googlecode.com/svn/trunk@583 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-24 12:41:35 +00:00
thilor77
86cfa07735 fixed multi_desktop switching
git-svn-id: http://tint2.googlecode.com/svn/trunk@582 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-24 09:18:41 +00:00
thilor77
eb07f935fe cleanup : remove unneeded title change
git-svn-id: http://tint2.googlecode.com/svn/trunk@579 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-23 13:39:09 +00:00
thilor77
503a4b6845 cleanup
git-svn-id: http://tint2.googlecode.com/svn/trunk@578 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-23 11:46:47 +00:00
thilor77
c01b7f480e memorized taskbar pixmap. So we don t redraw taskbar/task when switching desktop.
git-svn-id: http://tint2.googlecode.com/svn/trunk@577 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-23 11:16:29 +00:00
thilor77
7f1f66a497 small clenup
git-svn-id: http://tint2.googlecode.com/svn/trunk@573 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-09 17:11:11 +00:00
thilor77
1161b0921b missing file
git-svn-id: http://tint2.googlecode.com/svn/trunk@571 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-08 19:47:19 +00:00
thilor77
574615b3cd add some code around taskbar_name
git-svn-id: http://tint2.googlecode.com/svn/trunk@570 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-08 19:43:54 +00:00
thilor77
301aff0f10 cleanup duplicate code and fixed ALLDESKTOP task
git-svn-id: http://tint2.googlecode.com/svn/trunk@569 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-26 17:07:33 +00:00
thilor77
c569722617 fixed some bug with rendering engine
git-svn-id: http://tint2.googlecode.com/svn/trunk@566 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-26 13:10:37 +00:00
thilor77
60590bf1ac rendering engine : _on_change_layout() called when pos/size changed
git-svn-id: http://tint2.googlecode.com/svn/trunk@565 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-25 21:18:47 +00:00
thilor77
c19819843e panel_items : fixed _NET_WM_ICON_GEOMETRY. panel_items is done for me.
git-svn-id: http://tint2.googlecode.com/svn/trunk@563 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-23 20:28:30 +00:00
thilor77
98c3cbe874 cleanup code
git-svn-id: http://tint2.googlecode.com/svn/trunk@562 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-23 18:09:30 +00:00
thilor77
8b71e3614c panel_items : allow panel without taskbar
git-svn-id: http://tint2.googlecode.com/svn/trunk@551 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-18 18:19:43 +00:00
thilor77
b98d2001cb panel_items : fixed segfault (panel without clock, change number desktop)
git-svn-id: http://tint2.googlecode.com/svn/trunk@550 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-18 18:06:29 +00:00
thilor77
52eb843047 order of panel items : position of each object is update by layering engine (area)
git-svn-id: http://tint2.googlecode.com/svn/trunk@547 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-18 10:41:34 +00:00
thilor77
438dbfed02 order of panel items : partial implementation. expect crash/instability
git-svn-id: http://tint2.googlecode.com/svn/trunk@546 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-17 21:39:17 +00:00
thilor77
aabe6b11b9 add comment
git-svn-id: http://tint2.googlecode.com/svn/trunk@545 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-16 23:24:25 +00:00
Andreas.Fink85
906ee82dbf *fix* issue 282
*fix* correct x/y coordinates for tooltip on multi-head setup
*fix* delete multitimer hashmap
*fix* cleanup_panel() needs to be called after cleanup_launcher()


git-svn-id: http://tint2.googlecode.com/svn/trunk@544 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-12 22:00:00 +00:00
Andreas.Fink85
d7914dd0ad *fix* issue 272
*fix* correct transient window handling (f.ex window3 is transient for window2 and window2 transient for window1 and window1 is already in tint2, so 
window3 will not be added)


git-svn-id: http://tint2.googlecode.com/svn/trunk@542 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-18 12:32:08 +00:00
thilor77
2af46648fc reverted r528 : it s breaking amd64/x86_64
git-svn-id: http://tint2.googlecode.com/svn/trunk@529 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-08 22:01:39 +00:00
thilor77
937d7faa1f fixed Issue 282 : third try
git-svn-id: http://tint2.googlecode.com/svn/trunk@528 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-08 20:03:09 +00:00
thilor77
9feef39d6f fixed Issue 282 : second try
git-svn-id: http://tint2.googlecode.com/svn/trunk@527 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-08 19:23:54 +00:00
thilor77
3eb1b736e3 fixed Issue 282
git-svn-id: http://tint2.googlecode.com/svn/trunk@526 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-08-08 14:06:15 +00:00
Andreas.Fink85
7fdcd2fbc9 *fix* set _NET_WM_ICON_GEOMETRY (fixes issue 36)
*fix* updated ChangeLog



git-svn-id: http://tint2.googlecode.com/svn/trunk@508 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-06-16 15:00:48 +00:00
thilor77
46168f6727 fixed segfault when remove desktop with task
git-svn-id: http://tint2.googlecode.com/svn/trunk@443 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-05-04 16:39:22 +00:00
thilor77
b99b5c6b8a little cleanup
git-svn-id: http://tint2.googlecode.com/svn/trunk@440 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-23 14:37:39 +00:00
thilor77
20f181fdef cleanup
git-svn-id: http://tint2.googlecode.com/svn/trunk@435 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-19 22:06:23 +00:00
thilor77
a4c2956eca back to ELLIPSIZE_END and multi-line task name. multi-line depend on task vertical_padding and size of font
git-svn-id: http://tint2.googlecode.com/svn/trunk@434 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-19 21:44:40 +00:00
thilor77
af80193e89 tint2conf enabled by default, and switch ELLIPSIZE_END to ELLIPSIZE_MIDDLE
git-svn-id: http://tint2.googlecode.com/svn/trunk@433 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-19 18:15:42 +00:00
thilor77
64530181d9 qutodetect composite manager and automaticaly switch real/fake transparency
git-svn-id: http://tint2.googlecode.com/svn/trunk@425 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 14:49:50 +00:00
thilor77
7ee42e8ca1 SIGUSR1 does now a full restat of tint2
git-svn-id: http://tint2.googlecode.com/svn/trunk@424 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 14:28:45 +00:00
thilor77
c298a39d00 moved initial values in function default_xxx
git-svn-id: http://tint2.googlecode.com/svn/trunk@423 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 12:07:36 +00:00
thilor77
3adb7e2080 cleanup default value on SIGUSR1
git-svn-id: http://tint2.googlecode.com/svn/trunk@421 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-16 18:50:03 +00:00