[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-05 Thread Henrik Fehlauer
https://bugs.kde.org/show_bug.cgi?id=395034

--- Comment #9 from Henrik Fehlauer  ---
Before the bug was reported, I checked with a KDE 4 based system, where the
share button is working fine. The only change on Gwenview's side since then is
[1], where David ported from KMenu to QMenu. However, in KMenu [2] I could not
find anything special really.

Farid: I guess the last thing you could try is reporting this to
https://bugreports.qt.io, and hope that it's a problem in Qt that is triggered
by turning on KWin's compositing.

[1]
https://phabricator.kde.org/R260:2e69abc63776f05668a188f5ea3f58d0c8243754#change-OOnyLJlEzc3C
[2]
https://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/kmenu_8cpp_source.html

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-05 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=395034

--- Comment #8 from Martin Flöser  ---
Sorry I misunderstood from the description. Nevertheless I very much doubt that
this is an issue in KWin. Relevant code areas haven't been touched in years. In
such situations the fault is normally with the application or toolkit.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-05 Thread Farid Boudedja
https://bugs.kde.org/show_bug.cgi?id=395034

--- Comment #7 from Farid Boudedja  ---
Created attachment 113094
  --> https://bugs.kde.org/attachment.cgi?id=113094&action=edit
Qt application reproducing the bug using a QTimer

I have attached the entire Qt Creator project of the test application
reproducing the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-05 Thread Henrik Fehlauer
https://bugs.kde.org/show_bug.cgi?id=395034

--- Comment #6 from Henrik Fehlauer  ---
Sorry David, I haven't written any additional sample code, I thought the code
above was enough to show the nature of the problem. Is there any issue with
Farid's code (besides omitting the boilerplate and not coming in tar.gz form)?

If you are interested, this bug originates from the discussion in
https://phabricator.kde.org/D13312 (please don't mind the detours over there).

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-05 Thread David Edmundson
https://bugs.kde.org/show_bug.cgi?id=395034

David Edmundson  changed:

   What|Removed |Added

 CC||k...@davidedmundson.co.uk

--- Comment #5 from David Edmundson  ---
Henrik can you upload the sample code that you've written.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-05 Thread Henrik Fehlauer
https://bugs.kde.org/show_bug.cgi?id=395034

Henrik Fehlauer  changed:

   What|Removed |Added

 CC||rk...@lab12.net

--- Comment #4 from Henrik Fehlauer  ---
Thanks for your response, Martin.

> KWin has nothing to do with that. It is not responsible for input handling.
Could you tell us why you think input handling is the problem (we are mainly
interested in the menu showing, because that's not working right, input
handling seems fine)?

> If the application reacts on input for a not visible window that is an 
> application bug.
That's not the problem. The problem is that the menu is _invisible_ with
compositing on, while with compositing off it is perfectly visible as it should
be.

Any suggestions in solving this on the application side?  I guess a different
code path in the application when compositing is off is not the way to go, but
what else are we doing wrong? Perhaps it's a bug in Qt, but then why is it
working fine with KWin's compositing turned off (on X11)?

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-04 Thread Martin Flöser
https://bugs.kde.org/show_bug.cgi?id=395034

Martin Flöser  changed:

   What|Removed |Added

 Resolution|--- |UPSTREAM
 Status|UNCONFIRMED |RESOLVED

--- Comment #3 from Martin Flöser  ---
Sorry, but KWin has nothing to do with that. It is not responsible for input
handling. If the application reacts on input for a not visible window that is
an application bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-04 Thread Farid Boudedja
https://bugs.kde.org/show_bug.cgi?id=395034

--- Comment #2 from Farid Boudedja  ---
Created attachment 113080
  --> https://bugs.kde.org/attachment.cgi?id=113080&action=edit
e.g. of QMenu working but invisible in Gwenview

-- 
You are receiving this mail because:
You are watching all bug changes.

[kwin] [Bug 395034] QMenu becomes invisible when cleared while still open

2018-06-04 Thread Farid Boudedja
https://bugs.kde.org/show_bug.cgi?id=395034

--- Comment #1 from Farid Boudedja  ---
Created attachment 113079
  --> https://bugs.kde.org/attachment.cgi?id=113079&action=edit
QMenu cleared by a timer with compositing disabled

-- 
You are receiving this mail because:
You are watching all bug changes.