Commit graph

216 commits

Author SHA1 Message Date
o9000
e2023b7172 systray: Revert break embedding into 2 steps (breaks transparency for Qt icons) 2015-07-31 10:04:41 +02:00
o9000
9224971407 systray: Proper resize redirect handling 2015-07-31 09:58:17 +02:00
o9000
d492f80468 systray: Redirect resize events 2015-07-31 09:31:03 +02:00
o9000
78bc330448 systray: Break embedding into 2 steps 2015-07-30 23:54:46 +02:00
o9000
754d9187df systray: Revert change that removed XSyncs 2015-07-27 09:47:00 +02:00
o9000
e3939a56e1 systray: Set _NET_SYSTEM_TRAY_ICON_SIZE 2015-07-26 11:23:27 +02:00
o9000
263d1ab15f systray: Remove unused variable 2015-07-23 22:08:56 +02:00
o9000
e218b3fa96 systray: Prevent segfault if systray disabled 2015-07-23 19:38:26 +02:00
o9000
50e21b4077 systray: Trying some variations 2015-07-19 18:06:45 +02:00
o9000
b6a1a1c0f6 systray: Remove unneeded resize 2015-07-19 17:12:41 +02:00
o9000
15e12142ca Minor improvements 2015-07-19 17:10:53 +02:00
o9000
b8c1c29df2 systray: Throttle resize events for misbehaving applications 2015-07-19 16:49:05 +02:00
o9000
4a1880ead0 Move things around in the systray code 2015-07-19 16:12:02 +02:00
o9000
46aab61bf6 Revert "systray: Process XEmbed events according to spec"
This reverts commit 227dc8e48a.
2015-07-16 22:25:18 +02:00
o9000
227dc8e48a systray: Process XEmbed events according to spec 2015-07-16 21:08:48 +02:00
o9000
c606a1a35a systray: Separate reparenting from embedding 2015-07-16 21:08:47 +02:00
o9000
9933399dc4 systray: Withdraw window before reparenting 2015-07-16 21:08:47 +02:00
o9000
5ce8023ef7 systray: Watch for window events before reparenting 2015-07-16 21:08:47 +02:00
o9000
6438c75faf systray: A bit of cleanup 2015-07-16 21:08:47 +02:00
o9000
712097ba45 systray: Make sure we redraw the panel when rendering icons 2015-07-16 14:01:57 +02:00
o9000
9a5cb749ed systray: Workaround for GTK icon resize loop issue 2015-07-16 13:12:42 +02:00
o9000
d730f23027 systray: Trigger icon resize only when necessary 2015-07-16 09:02:13 +02:00
o9000
9f161f2baf More logging 2015-07-16 08:53:25 +02:00
o9000
2570ae2cf6 systray: Resize icons only if necessary 2015-07-15 09:53:09 +02:00
o9000
222eca4099 systray: (disable_transparency=1) detect empty icons whenever a new icon is added, from any process; clear icon area because some icons were failing to redraw 2015-06-21 15:23:55 +02:00
o9000
ea75558ac2 systray: reduce icon flicker by painting on buffer instead of directly on window 2015-06-21 15:00:01 +02:00
o9000
876cae8239 systray: fix black icon background for 32-bit icons when disable_transparency = 1; fix empty icon detection when disable_transparency = 1; fix icon blinking by delaying rendering less aggressively; removed XClearArea on traywin->win (triggers unnecessary redraws); cache icon names; profiling messages updated 2015-06-21 14:50:08 +02:00
o9000
7c3951e3a0 systray: Profiling code. Export environment variable SYSTRAY_PROFILING=1 when running tint2 to enable it 2015-06-19 10:46:29 +02:00
o9000
19b40bc59e systray: Check icon position 2015-06-14 12:23:34 +02:00
o9000
8c9a9a111e systray: trigger resizes in some places 2015-06-14 11:39:51 +02:00
o9000
b13540123b systray: force a repaint on icon resize 2015-06-14 11:21:42 +02:00
o9000
f5b2de62b6 systray: reorder operations to prevent the long icon first show delay that occurs sometimes 2015-06-14 10:51:30 +02:00
o9000
cae621918e systray: Do not turn off compositing for missing window errors 2015-06-13 11:32:22 +02:00
o9000
f28983e5a7 systray: Use different X connection for XGetImage (fixes crash on ATI cards) 2015-06-12 21:28:58 +02:00
o9000
b35cdb70df systray: Detect window resizez during composited rendering to prevent crashes 2015-06-12 21:13:20 +02:00
o9000
80361a121e Better error handling in systray rendering and fall back to non-composited rendering in case of errors 2015-06-12 12:24:19 +02:00
o9000
b4ff007e42 systray: reorder some operations to make sure we resize correctly 2015-06-12 11:57:05 +02:00
o9000
ae379d865c systray: fix bad embed 2015-06-12 11:40:22 +02:00
o9000
0a3876dc8c systray: prevent race in error detection 2015-06-12 11:39:36 +02:00
o9000
5ac1a6a653 systray: resize icon when reparenting 2015-06-12 09:44:13 +02:00
o9000
481c409617 Fix bad interaction between freespace and systray 2015-06-12 02:09:43 +02:00
o9000
e8869b4d87 systray: Minor change in error logging 2015-06-12 01:43:39 +02:00
o9000
9040764cf1 systray: Cleaned up the code a bit 2015-06-07 12:58:29 +02:00
o9000
d8d4bc76cd systray: Delay reparenting to the first render to prevent graphical corruptions 2015-06-07 12:45:48 +02:00
o9000
fbcfa54061 Disable systray composited rendering if disable_transparency = 1 2015-06-07 11:44:43 +02:00
o9000
b235f77f39 systray: Prevent triggering concurrent updates for the same icon 2015-05-30 14:22:40 +02:00
o9000
1b4b0a8d8d systray: Delay icon rendering only when throttling is necessary 2015-05-30 13:41:29 +02:00
o9000
7ea0dc241c systray: Sort icons in the correct order when an icon is empty and order is right2left 2015-05-30 13:33:44 +02:00
o9000
39e67df44d Revert "systray: Sort icons in the correct order when an icon is empty and order is right2left"
This reverts commit cb17e5a662.
2015-05-30 13:23:20 +02:00
o9000
cb17e5a662 systray: Sort icons in the correct order when an icon is empty and order is right2left 2015-05-30 13:03:42 +02:00
o9000
6014b51850 Better error handling in systray icon rendering 2015-05-20 15:42:27 +02:00
o9000
a4894b8257 Workaround for empty systray icon in Google Chrome (misbehaving) - fix resize 2015-05-13 22:58:58 +02:00
o9000
a08491c122 Workaround for empty systray icon in Google Chrome (misbehaving) - fix sorting 2015-05-13 21:17:02 +02:00
o9000
8795f50bb8 Workaround for empty systray icon in Google Chrome (misbehaving) - fix sorting 2015-05-13 21:02:40 +02:00
o9000
3ab42f9b72 Workaround for empty systray icon in Google Chrome (misbehaving) 2015-05-11 21:19:36 +02:00
o9000
e7c3f99e28 Attempt to fix icon rendering problems 2015-05-03 15:36:42 +02: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
45d6463315 Revert r751 and add workaround for systray rendering artifacts
git-svn-id: http://tint2.googlecode.com/svn/trunk@755 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-13 20:18:28 +00:00
o9000
eb1244a415 Simplify systray icon management (attempt to fix issue 480)
git-svn-id: http://tint2.googlecode.com/svn/trunk@751 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-04-12 17:35:54 +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
40d8d05be7 Reverted systray icon rendering to fix issue 479
git-svn-id: http://tint2.googlecode.com/svn/trunk@745 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-03-28 22:45:15 +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
5bd4bcf727 Fix issue 343: Double system tray icons
git-svn-id: http://tint2.googlecode.com/svn/trunk@685 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-02-04 23:15:57 +00:00
o9000
b70e6b500e Better handling of the systray_monitor option
git-svn-id: http://tint2.googlecode.com/svn/trunk@678 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-31 11:02:35 +00:00
o9000
de539e218a Systray: option to configure monitor (fixes issue 451 and TODOs in the code)
git-svn-id: http://tint2.googlecode.com/svn/trunk@667 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-23 18:40:31 +00:00
o9000
2432a2ed51 Prevent division by zero in strange circumstances when the panel has size 0
git-svn-id: http://tint2.googlecode.com/svn/trunk@665 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2015-01-22 17:31:56 +00:00
andreas.fink85
f71967bbca *fix* even better XSelectInput on traywindows. It's inside the block, where we listen to XError's, thus an icon which is already deleted before we ask for StuctureNotify will not be added at all
git-svn-id: http://tint2.googlecode.com/svn/trunk@630 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-05-22 08:25:40 +00:00
andreas.fink85
7797f8d318 *fix* register for the StructureNotifyEventMask early, since an icon can be created and unregistered directly after it, so we would 'forget' about it
git-svn-id: http://tint2.googlecode.com/svn/trunk@629 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-05-21 18:32:54 +00:00
thilor77
e5478fc1f3 fixed issue 309
git-svn-id: http://tint2.googlecode.com/svn/trunk@620 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2011-01-06 23:28:16 +00:00
thilor77
a7a2ae337a fixed : revert change to systray position
git-svn-id: http://tint2.googlecode.com/svn/trunk@595 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-09 19:32:45 +00:00
thilor77
5d7e211537 launcher : fixed icon position
git-svn-id: http://tint2.googlecode.com/svn/trunk@591 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-11-07 17:43:14 +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
Andreas.Fink85
eae7223ddf *fix* valgrind invalid read/write and memleaks
git-svn-id: http://tint2.googlecode.com/svn/trunk@572 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-10-08 21:45:14 +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
e68c361951 cleanup : generic resize function (in area.c)
git-svn-id: http://tint2.googlecode.com/svn/trunk@561 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-22 22:01:37 +00:00
thilor77
b4fb372f52 panel_items : fixed hide/unhide of baterry and systray
git-svn-id: http://tint2.googlecode.com/svn/trunk@560 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-22 19:33:10 +00:00
thilor77
d2d2277bfe cleanup : Area posx/posy managed by layering engine (area.c)
git-svn-id: http://tint2.googlecode.com/svn/trunk@558 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-21 09:54:19 +00:00
thilor77
1bd5fd9937 panel_items : fixed tray icon position.
git-svn-id: http://tint2.googlecode.com/svn/trunk@553 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-09-18 22:00:16 +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
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
abeb6d384d *add* include svn revision in the VERSION_STRING if building with cmake
git-svn-id: http://tint2.googlecode.com/svn/trunk@475 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-06-09 15:31:18 +00:00
thilor77
885377a234 cleanup code
git-svn-id: http://tint2.googlecode.com/svn/trunk@439 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-22 15:08:21 +00:00
thilor77
b9544f0fa0 reverted Rev 407 because here it s breaking alls icon with systray + xcompmgr
git-svn-id: http://tint2.googlecode.com/svn/trunk@437 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-20 15:14:37 +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
a94d75d393 fixed systray_asb in fake transparency (see r407)
git-svn-id: http://tint2.googlecode.com/svn/trunk@422 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-04-18 10:35:25 +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
Andreas.Fink85
d4a67f631b *fix* issue 241
git-svn-id: http://tint2.googlecode.com/svn/trunk@407 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-03-30 18:47:11 +00:00
Andreas.Fink85
cfff505f75 *fix* again issue 221, but this time with the suggested solution to take 32-bit icons...
git-svn-id: http://tint2.googlecode.com/svn/trunk@398 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-02-28 07:58:50 +00:00
Andreas.Fink85
d9454cc8cf *fix* issue 221
git-svn-id: http://tint2.googlecode.com/svn/trunk@397 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-02-27 19:25:51 +00:00
Andreas.Fink85
a58a4d1830 *add* strut_policy = none
git-svn-id: http://tint2.googlecode.com/svn/trunk@395 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-02-20 10:08:56 +00:00
Andreas.Fink85
cb5eea1bd3 *fix* issue 217
git-svn-id: http://tint2.googlecode.com/svn/trunk@391 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-01-31 16:56:54 +00:00
Andreas.Fink85
6155ce0f0c *fix* reverted Thierry's last change
git-svn-id: http://tint2.googlecode.com/svn/trunk@390 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
2010-01-31 15:10:38 +00:00