*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
This commit is contained in:
Andreas.Fink85 2010-06-20 15:56:04 +00:00
parent 6dc42dbec8
commit 72cdc49512
3 changed files with 11 additions and 7 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
FALLBACK=\"0.10-svn\"
FALLBACK=\"0.11-svn\"
if [ $# -eq 0 ]; then
DIR=.

View file

@ -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

View file

@ -790,9 +790,13 @@ start:
autohide_trigger_show(panel);
else if (e.type == LeaveNotify)
autohide_trigger_hide(panel);
if (panel->is_hidden)
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) {
case ButtonPress:
@ -871,8 +875,7 @@ start:
// 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) {