*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:
parent
6dc42dbec8
commit
72cdc49512
3 changed files with 11 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
FALLBACK=\"0.10-svn\"
|
FALLBACK=\"0.11-svn\"
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
DIR=.
|
DIR=.
|
||||||
|
|
|
@ -148,7 +148,8 @@ int click_padding(Panel *panel, int x, int y);
|
||||||
int click_clock(Panel *panel, int x, int y);
|
int click_clock(Panel *panel, int x, int y);
|
||||||
Area* click_area(Panel *panel, int x, int y);
|
Area* click_area(Panel *panel, int x, int y);
|
||||||
|
|
||||||
void autohide_trigger_show();
|
void autohide_show(void* p);
|
||||||
void autohide_trigger_hide();
|
void autohide_trigger_show(Panel* p);
|
||||||
|
void autohide_trigger_hide(Panel* p);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
11
src/tint.c
11
src/tint.c
|
@ -790,8 +790,12 @@ start:
|
||||||
autohide_trigger_show(panel);
|
autohide_trigger_show(panel);
|
||||||
else if (e.type == LeaveNotify)
|
else if (e.type == LeaveNotify)
|
||||||
autohide_trigger_hide(panel);
|
autohide_trigger_hide(panel);
|
||||||
if (panel->is_hidden)
|
if (panel->is_hidden) {
|
||||||
continue; // discard further processing of this event because the panel is not visible yet
|
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) {
|
switch (e.type) {
|
||||||
|
@ -871,8 +875,7 @@ start:
|
||||||
// Start real_transparency
|
// Start real_transparency
|
||||||
signal_pending = SIGUSR1;
|
signal_pending = SIGUSR1;
|
||||||
}
|
}
|
||||||
if (!systray.area.on_screen) break;
|
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) {
|
||||||
if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) {
|
|
||||||
net_message(&e.xclient);
|
net_message(&e.xclient);
|
||||||
}
|
}
|
||||||
else if (e.xclient.message_type == server.atom.XdndPosition) {
|
else if (e.xclient.message_type == server.atom.XdndPosition) {
|
||||||
|
|
Loading…
Reference in a new issue