all repos — tint2 @ 72cdc495120d98f375f9138e67f6acdd8658a85b

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

*fix* start work on autohide+drag'n'drop
*fix* fallback version is 0.11-svn



git-svn-id: http://tint2.googlecode.com/svn/trunk@510 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

72cdc495120d98f375f9138e67f6acdd8658a85b

parent

6dc42dbec88735409f37373bc129015ecb180ee5

3 files changed, 11 insertions(+), 7 deletions(-)

jump to
M get_svnrev.shget_svnrev.sh

@@ -1,6 +1,6 @@

#!/bin/sh -FALLBACK=\"0.10-svn\" +FALLBACK=\"0.11-svn\" if [ $# -eq 0 ]; then DIR=.
M src/panel.hsrc/panel.h

@@ -148,7 +148,8 @@ int click_padding(Panel *panel, int x, int y);

int click_clock(Panel *panel, int x, int y); Area* click_area(Panel *panel, int x, int y); -void autohide_trigger_show(); -void autohide_trigger_hide(); +void autohide_show(void* p); +void autohide_trigger_show(Panel* p); +void autohide_trigger_hide(Panel* p); #endif
M src/tint.csrc/tint.c

@@ -790,8 +790,12 @@ if (e.type == EnterNotify)

autohide_trigger_show(panel); else if (e.type == LeaveNotify) autohide_trigger_hide(panel); - if (panel->is_hidden) - continue; // discard further processing of this event because the panel is not visible yet + if (panel->is_hidden) { + if (e.type == ClientMessage && e.xclient.message_type == server.atom.XdndPosition) + autohide_show(panel); + else + continue; // discard further processing of this event because the panel is not visible yet + } } switch (e.type) {

@@ -871,8 +875,7 @@ else

// Start real_transparency signal_pending = SIGUSR1; } - if (!systray.area.on_screen) break; - if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) { + if (systray.area.on_screen && e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) { net_message(&e.xclient); } else if (e.xclient.message_type == server.atom.XdndPosition) {