aMSN Forums
February 12, 2012, 03:00:11 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: smileys menu and handleLeaveEvent  (Read 2901 times)
Zaskar
Super Power User
**
Offline Offline

Posts: 159


View Profile
« on: March 07, 2007, 10:10:31 pm »

I've noticed that the patch for the smileys menu to works correctly with beryl/compiz is working only if you move the mouse horizontally. There's a little mistake in the handleLeaveEvent proc (I think a typical copy/paste bug). It checks twice the x coord and never the y coord.

You should only replace the line 735 in smileys.tcl from:
Code:
if { $pointer_x == -1 || $pointer_y==-1 || $x < 0 || $x > $x_geo || $x < 0 || $x > $x_geo } {

to
Code:
if { $pointer_x == -1 || $pointer_y==-1 || $x < 0 || $x > $x_geo || $y < 0 || $y > $y_geo } {



and line 728 in the same file from
Code:
set window_y [winfo rootx $w]

to
Code:
set window_y [winfo rooty $w]
Logged
Zaskar
Super Power User
**
Offline Offline

Posts: 159


View Profile
« Reply #1 on: March 07, 2007, 10:17:13 pm »

One more suggestion: you can add "moveinscreen $w 5" in line 457 so the smiley menu will always be completely inside the screen. Here's the diff for both changes:

Code:

456c456,457
<
---
>
>               moveinscreen $w 5
728c729
<               set window_y [winfo rootx $w]
---
>               set window_y [winfo rooty $w]
735c736
<               if { $pointer_x == -1 || $pointer_y==-1 || $x < 0 || $x > $x_geo || $x < 0 || $x > $x_geo } {
---
>               if { $pointer_x == -1 || $pointer_y==-1 || $x < 0 || $x > $x_geo || $y < 0 || $y > $y_geo } {
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9424


View Profile WWW
« Reply #2 on: March 08, 2007, 02:32:32 am »

Hey, thanks zaskar for noticing! I committed it under your name, revision 8174
Logged

KaKaRoTo
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!