Home » U++ Library support » U++ Widgets - General questions or Mixed problems » [Linux] Upp application can block all mouse events
[Linux] Upp application can block all mouse events [message #43161] |
Wed, 21 May 2014 14:08  |
Zbych
Messages: 327 Registered: July 2009
|
Senior Member |
|
|
Hi,
When Upp GUI application is not responding to events, it blocks mouse events sent to other GUI programs (gnome menu or unity dash can not be open with mouse click)
Here is sample code:
CursorTest.lay:
LAYOUT(CursorTestLayout, 200, 100)
ITEM(Button, button, SetLabel(t_("Test")).HCenterPosZ(84, 2).VCenterPosZ(32, -2))
END_LAYOUT
CursorTest.cpp:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <CursorTest/CursorTest.lay>
#include <CtrlCore/lay.h>
class CursorTest : public WithCursorTestLayout<TopWindow> {
void Test() { Sleep(10000);}
public:
typedef CursorTest CLASSNAME;
CursorTest()
{
CtrlLayout(*this, "Cursor Test");
button.WhenAction = THISBACK(Test);
};
};
GUI_APP_MAIN
{
CursorTest().Run();
}
I made test in Ubuntu 12.04 and Debian 6 (both GTK and X11 backends). In both systems mouse events were blocked.
Does anyone know why all other applications can not receive mouse events?
[Updated on: Wed, 21 May 2014 14:23] Report message to a moderator
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:30:32 CEST 2025
Total time taken to generate the page: 0.00885 seconds
|