diff options
author | runge <runge> | 2007-12-16 18:37:22 +0000 |
---|---|---|
committer | runge <runge> | 2007-12-16 18:37:22 +0000 |
commit | 649f5b2b4615ae67d97eff7f3fa246a1ac41edf9 (patch) | |
tree | 3e3d3524182cc844b76c239c9a2f3de89e0cfa38 /x11vnc/tkx11vnc | |
parent | 899c920eb4708e525c6555e2a6f043c3f999bbcb (diff) | |
download | libtdevnc-649f5b2b4615ae67d97eff7f3fa246a1ac41edf9.tar.gz libtdevnc-649f5b2b4615ae67d97eff7f3fa246a1ac41edf9.zip |
x11vnc: setup remote-ctrl file by default on macosx. improve
tkx11vnc wrt attaching to existing server in icon/tray mode.
Diffstat (limited to 'x11vnc/tkx11vnc')
-rwxr-xr-x | x11vnc/tkx11vnc | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/x11vnc/tkx11vnc b/x11vnc/tkx11vnc index 35984f7..3d4a49f 100755 --- a/x11vnc/tkx11vnc +++ b/x11vnc/tkx11vnc @@ -4860,7 +4860,7 @@ proc lmenu {menu} { } proc old_balloon {} { - global client_str saved_client_str + global client_str saved_clients_str set str "" if {[info exists client_str]} { if {$client_str != ""} { @@ -4868,8 +4868,8 @@ proc old_balloon {} { } } if {$str == ""} { - if {[info exists saved_client_str]} { - set str $saved_client_str + if {[info exists saved_clients_str]} { + set str $saved_clients_str } } if {$str != ""} { @@ -5029,6 +5029,7 @@ proc make_icon {} { } $menu add cascade -font $mfont -label "Window View:" -menu $wv + $menu add command -font $mfont -label "Dismiss" -command "$menu unpost" $menu add command -font $mfont -label "Stop x11vnc" -command clean_icon_exit set items [get_custom_menu_items] @@ -5047,10 +5048,11 @@ proc make_icon {} { bind $icon_win <Enter> {set client_balloon_id [after 500 show_client_balloon]} bind $icon_win <Button> {kill_client_balloon} bind $icon_win <Leave> {kill_client_balloon} - bind $icon_win <ButtonPress-2> {kill_client_balloon; show_client_balloon} + bind $icon_win <Shift-ButtonRelease-1> {kill_client_balloon; show_client_balloon} + bind $icon_win <ButtonRelease-2> {kill_client_balloon; show_client_balloon} # bind $menu <Leave> "lmenu $menu" # bind $menu <Enter> "set left_iconwin_menu 0" -## bind $menu <KeyPress-Escape> "$menu unpost" +# bind $menu <KeyPress-Escape> "$menu unpost" bind . <Control-KeyPress-c> {destroy .; exit 0} @@ -5071,9 +5073,20 @@ proc make_icon {} { wm iconname . "tkx11vnc" wm title . "tkx11vnc" update - wm deiconify . + if {$tray_embed && $tray_running} { + wm deiconify . + #after 10000 {wm deiconify .; puts "reqheight [winfo reqheight .]"; puts "reqwidth [winfo reqwidth .]"; puts "height [winfo height .]"; puts "width [winfo width .]"} + } else { + wm deiconify . + } update +#puts "reqheight [winfo reqheight .]" +#puts "reqwidth [winfo reqwidth .]" +#puts "height [winfo height .]" +#puts "width [winfo width .]" +#puts "AAA" + old_balloon } |