This is a bug in libnux-4.0-0 on amd64, caused by the code in
GraphicsDisplay::MousePress (NuxGraphics/GraphicsDisplayX11.cpp) which
converts the unsigned long timestamp to a signed int:

if ((double_click_counter_ == 1) && ((int)current_time -
(int)last_click_time_ < double_click_time_delay))


The timestamp is in milliseconds, so it becomes negative after about 24.86 days.

The comparison works ok until the final click on the title bar, when 
last_click_time_ is 0.
Subtracting 0 from the negative current_time results in a value that is always 
less than double_click_time_delay.
The unnecessary cast to int should be removed.


Version:
libnux-4.0-0 4.0.7+14.10.20141007-0ubuntu1

** Also affects: nux
   Importance: Undecided
       Status: New

** Also affects: compiz
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1379960

Title:
  Menu interaction in fully maximised window causes the next click on
  the title bar to restore the window

To manage notifications about this bug go to:
https://bugs.launchpad.net/compiz/+bug/1379960/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to