Project

General

Profile

Bug #398

skins: Double-click on bitrate textbox leads to strange dock behavior

Added by Thomas Lange almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Minor
Assignee:
-
Category:
plugins/skins
Target version:
Start date:
February 01, 2014
Due date:
% Done:

100%

Estimated time:
Affects version:

Description

If the textbox which contains the bitrate and quality is double-clicked,
the main window shades.

Then this window cannot be closed anymore
because the equalizer or playlist window follows the mouse cursor.

This is caused by a wrong Y value in "skins/ui_main.c/mainwin_mouse_button_press()".
What is going wrong here? The coordinates around the textbox are all correct.

History

#1 Updated by John Lindgren almost 11 years ago

  • Status changed from New to Closed
  • Target version set to 3.5
  • % Done changed from 0 to 100
  • Affects version 3.4.3 added

The problem is that the x and y values in the GdkEventButton structure are relative to the GdkWindow clicked on (in this case, the textbox rather than the main window). I have fixed this by ignoring events that do not come from the GdkWindow of the main window. Possibly better would be to adjust the x and y values by the relative offset of the two GdkWindows, but I don't think that's necessary here.

https://github.com/audacious-media-player/audacious-plugins/commit/fa4e6321cd0a4ef1944e97975d578820b6b6d527

Also available in: Atom PDF