Lines Matching refs:pEvent

2516 X11SalFrame::HandleExtTextEvent (XClientMessageEvent *pEvent)  in HandleExtTextEvent()  argument
2519 void* pExtTextEvent = (void*)( (pEvent->data.l[0] & 0xffffffff) in HandleExtTextEvent()
2520 | (pEvent->data.l[1] << 32) ); in HandleExtTextEvent()
2522 void* pExtTextEvent = (void*)(pEvent->data.l[0]); in HandleExtTextEvent()
2524 sal_uInt16 nExtTextEventType = sal_uInt16(pEvent->data.l[2]); in HandleExtTextEvent()
2853 long X11SalFrame::HandleMouseEvent( XEvent *pEvent ) in HandleMouseEvent() argument
2859 if( nVisibleFloats && pEvent->type == EnterNotify ) in HandleMouseEvent()
2866 switch (pEvent->type) in HandleMouseEvent()
2870 if ( pEvent->xcrossing.state & Button2Mask ) in HandleMouseEvent()
2872 pEvent->xcrossing.state &= ~Button2Mask; in HandleMouseEvent()
2873 pEvent->xcrossing.state |= Button3Mask; in HandleMouseEvent()
2878 if ( pEvent->xmotion.state & Button2Mask ) in HandleMouseEvent()
2880 pEvent->xmotion.state &= ~Button2Mask; in HandleMouseEvent()
2881 pEvent->xmotion.state |= Button3Mask; in HandleMouseEvent()
2886 if ( Button2 == pEvent->xbutton.button ) in HandleMouseEvent()
2888 pEvent->xbutton.state &= ~Button2Mask; in HandleMouseEvent()
2889 pEvent->xbutton.state |= Button3Mask; in HandleMouseEvent()
2890 pEvent->xbutton.button = Button3; in HandleMouseEvent()
2897 if( LeaveNotify == pEvent->type || EnterNotify == pEvent->type ) in HandleMouseEvent()
2916 if( pEvent->xcrossing.mode == NotifyGrab || pEvent->xcrossing.mode == NotifyUngrab ) in HandleMouseEvent()
2919 aMouseEvt.mnX = pEvent->xcrossing.x; in HandleMouseEvent()
2920 aMouseEvt.mnY = pEvent->xcrossing.y; in HandleMouseEvent()
2921 aMouseEvt.mnTime = pEvent->xcrossing.time; in HandleMouseEvent()
2922 aMouseEvt.mnCode = sal_GetCode( pEvent->xcrossing.state ); in HandleMouseEvent()
2925 nEvent = LeaveNotify == pEvent->type in HandleMouseEvent()
2929 else if( pEvent->type == MotionNotify ) in HandleMouseEvent()
2931 aMouseEvt.mnX = pEvent->xmotion.x; in HandleMouseEvent()
2932 aMouseEvt.mnY = pEvent->xmotion.y; in HandleMouseEvent()
2933 aMouseEvt.mnTime = pEvent->xmotion.time; in HandleMouseEvent()
2934 aMouseEvt.mnCode = sal_GetCode( pEvent->xmotion.state ); in HandleMouseEvent()
2942 if( pEvent->xmotion.x >= 0 && pEvent->xmotion.x < (int)maGeometry.nWidth && in HandleMouseEvent()
2943 pEvent->xmotion.y >= 0 && pEvent->xmotion.y < (int)maGeometry.nHeight ) in HandleMouseEvent()
2960 else if( pEvent->type == ButtonPress ) in HandleMouseEvent()
2971 pEvent->xbutton.x_root >= pFrame->maGeometry.nX && in HandleMouseEvent()
2972pEvent->xbutton.x_root < pFrame->maGeometry.nX + (int)pFrame->maGeometry.nWidth && in HandleMouseEvent()
2973 pEvent->xbutton.y_root >= pFrame->maGeometry.nY && in HandleMouseEvent()
2974pEvent->xbutton.y_root < pFrame->maGeometry.nY + (int)pFrame->maGeometry.nHeight ) in HandleMouseEvent()
3028 if( m_bXEmbed && pEvent->xbutton.button == Button1 ) in HandleMouseEvent()
3029 askForXEmbedFocus( pEvent->xbutton.time ); in HandleMouseEvent()
3031 if( pEvent->xbutton.button == Button1 || in HandleMouseEvent()
3032 pEvent->xbutton.button == Button2 || in HandleMouseEvent()
3033 pEvent->xbutton.button == Button3 ) in HandleMouseEvent()
3035 aMouseEvt.mnX = pEvent->xbutton.x; in HandleMouseEvent()
3036 aMouseEvt.mnY = pEvent->xbutton.y; in HandleMouseEvent()
3037 aMouseEvt.mnTime = pEvent->xbutton.time; in HandleMouseEvent()
3038 aMouseEvt.mnCode = sal_GetCode( pEvent->xbutton.state ); in HandleMouseEvent()
3040 if( Button1 == pEvent->xbutton.button ) in HandleMouseEvent()
3042 else if( Button2 == pEvent->xbutton.button ) in HandleMouseEvent()
3044 else if( Button3 == pEvent->xbutton.button ) in HandleMouseEvent()
3047 nEvent = ButtonPress == pEvent->type in HandleMouseEvent()
3051 else if( pEvent->xbutton.button == Button4 || in HandleMouseEvent()
3052 pEvent->xbutton.button == Button5 || in HandleMouseEvent()
3053 pEvent->xbutton.button == Button6 || in HandleMouseEvent()
3054 pEvent->xbutton.button == Button7 ) in HandleMouseEvent()
3057 pEvent->xbutton.button == Button4 || in HandleMouseEvent()
3058 pEvent->xbutton.button == Button6 ); in HandleMouseEvent()
3060 pEvent->xbutton.button == Button6 || in HandleMouseEvent()
3061 pEvent->xbutton.button == Button7 ); in HandleMouseEvent()
3063 if( pEvent->type == ButtonRelease ) in HandleMouseEvent()
3076 aWheelEvt.mnTime = pEvent->xbutton.time; in HandleMouseEvent()
3077 aWheelEvt.mnX = pEvent->xbutton.x; in HandleMouseEvent()
3078 aWheelEvt.mnY = pEvent->xbutton.y; in HandleMouseEvent()
3082 aWheelEvt.mnCode = sal_GetCode( pEvent->xbutton.state ); in HandleMouseEvent()
3243 long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent ) in HandleKeyEvent() argument
3256 nKeySym = pDisplay_->GetKeySym( pEvent, pPrintable, &nLen, in HandleKeyEvent()
3263 nKeySym = pDisplay_->GetKeySym( pEvent, pPrintable, &nLen, in HandleKeyEvent()
3272 nKeySym = pDisplay_->GetKeySym( pEvent, pPrintable, &nLen, &nUnmodifiedKeySym, &nStatus ); in HandleKeyEvent()
3280 if( pEvent->state & ShiftMask ) in HandleKeyEvent()
3282 if( pEvent->state & ControlMask ) in HandleKeyEvent()
3284 if( pEvent->state & Mod1Mask ) in HandleKeyEvent()
3298 if( pEvent->type == XLIB_KeyPress && mnExtKeyMod == 0 ) in HandleKeyEvent()
3300 else if( pEvent->type == KeyRelease && mbSendExtKeyModChange ) in HandleKeyEvent()
3351 if( pEvent->type == KeyRelease ) in HandleKeyEvent()
3363 aModEvt.mnTime = pEvent->time; in HandleKeyEvent()
3371 if( pEvent->type == XLIB_KeyPress ) in HandleKeyEvent()
3378 aKeyEvt.mnTime = pEvent->time; in HandleKeyEvent()
3415 if( nModCode == (KEY_SHIFT | KEY_MOD1) && pEvent->type == XLIB_KeyPress ) in HandleKeyEvent()
3500 && KeyRelease != pEvent->type in HandleKeyEvent()
3511 aKeyEvt.mnTime = pEvent->time; in HandleKeyEvent()
3514 if( KeyRelease == pEvent->type ) in HandleKeyEvent()
3551 long X11SalFrame::HandleFocusEvent( XFocusChangeEvent *pEvent ) in HandleFocusEvent() argument
3569 if( FocusIn == pEvent->type ) in HandleFocusEvent()
3583 if ( pEvent->mode == NotifyNormal || pEvent->mode == NotifyWhileGrabbed || in HandleFocusEvent()
3584 ( ( nStyle_ & SAL_FRAME_STYLE_PLUG ) && pEvent->window == GetShellWindow() ) in HandleFocusEvent()
3590 if( FocusIn == pEvent->type ) in HandleFocusEvent()
3622 long X11SalFrame::HandleExposeEvent( XEvent *pEvent ) in HandleExposeEvent() argument
3627 if( pEvent->type == Expose ) in HandleExposeEvent()
3629 aRect.x = pEvent->xexpose.x; in HandleExposeEvent()
3630 aRect.y = pEvent->xexpose.y; in HandleExposeEvent()
3631 aRect.width = pEvent->xexpose.width; in HandleExposeEvent()
3632 aRect.height = pEvent->xexpose.height; in HandleExposeEvent()
3633 nCount = pEvent->xexpose.count; in HandleExposeEvent()
3635 else if( pEvent->type == GraphicsExpose ) in HandleExposeEvent()
3637 aRect.x = pEvent->xgraphicsexpose.x; in HandleExposeEvent()
3638 aRect.y = pEvent->xgraphicsexpose.y; in HandleExposeEvent()
3639 aRect.width = pEvent->xgraphicsexpose.width; in HandleExposeEvent()
3640 aRect.height = pEvent->xgraphicsexpose.height; in HandleExposeEvent()
3641 nCount = pEvent->xgraphicsexpose.count; in HandleExposeEvent()
3728 long X11SalFrame::HandleSizeEvent( XConfigureEvent *pEvent ) in HandleSizeEvent() argument
3730 if ( pEvent->window != GetShellWindow() in HandleSizeEvent()
3731 && pEvent->window != GetWindow() in HandleSizeEvent()
3732 && pEvent->window != GetForeignParent() in HandleSizeEvent()
3733 && pEvent->window != GetStackingWindow() in HandleSizeEvent()
3741 if( ( nStyle_ & SAL_FRAME_STYLE_PLUG ) && pEvent->window == GetShellWindow() ) in HandleSizeEvent()
3748 if( pEvent->window == GetForeignParent() ) in HandleSizeEvent()
3751 pEvent->width, in HandleSizeEvent()
3752 pEvent->height ); in HandleSizeEvent()
3759 &pEvent->x, &pEvent->y, in HandleSizeEvent()
3762 if( pEvent->window == GetStackingWindow() ) in HandleSizeEvent()
3764 if( maGeometry.nX != pEvent->x || maGeometry.nY != pEvent->y ) in HandleSizeEvent()
3766 maGeometry.nX = pEvent->x; in HandleSizeEvent()
3767 maGeometry.nY = pEvent->y; in HandleSizeEvent()
3777 nWidth_ = pEvent->width; in HandleSizeEvent()
3778 nHeight_ = pEvent->height; in HandleSizeEvent()
3780 bool bMoved = ( pEvent->x != maGeometry.nX || pEvent->y != maGeometry.nY ); in HandleSizeEvent()
3781 …bool bSized = ( pEvent->width != (int)maGeometry.nWidth || pEvent->height != (int)maGeometry.nHeig… in HandleSizeEvent()
3783 maGeometry.nX = pEvent->x; in HandleSizeEvent()
3784 maGeometry.nY = pEvent->y; in HandleSizeEvent()
3785 maGeometry.nWidth = pEvent->width; in HandleSizeEvent()
3786 maGeometry.nHeight = pEvent->height; in HandleSizeEvent()
3810 long X11SalFrame::HandleReparentEvent( XReparentEvent *pEvent ) in HandleReparentEvent() argument
3812 Display *pDisplay = pEvent->display; in HandleReparentEvent()
3875 || pEvent->parent == pDisplay_->GetRootWindow( pDisplay_->GetDefaultScreenNumber() ) in HandleReparentEvent()
4000 long X11SalFrame::HandleStateEvent( XPropertyEvent *pEvent ) in HandleStateEvent() argument
4009 pEvent->atom, // property in HandleStateEvent()
4013 pEvent->atom, // req_type in HandleStateEvent()
4023 DBG_ASSERT( actual_type = pEvent->atom in HandleStateEvent()
4038 long X11SalFrame::HandleClientMessage( XClientMessageEvent *pEvent ) in HandleClientMessage() argument
4043 if( pEvent->message_type == rWMAdaptor.getAtom( WMAdaptor::SAL_EXTTEXTEVENT ) ) in HandleClientMessage()
4045 HandleExtTextEvent (pEvent); in HandleClientMessage()
4049 else if( pEvent->message_type == rWMAdaptor.getAtom( WMAdaptor::SAL_QUITEVENT ) ) in HandleClientMessage()
4055 else if( pEvent->message_type == rWMAdaptor.getAtom( WMAdaptor::WM_PROTOCOLS ) ) in HandleClientMessage()
4057 if( (Atom)pEvent->data.l[0] == rWMAdaptor.getAtom( WMAdaptor::NET_WM_PING ) ) in HandleClientMessage()
4058 rWMAdaptor.answerPing( this, pEvent ); in HandleClientMessage()
4063 if( (Atom)pEvent->data.l[0] == rWMAdaptor.getAtom( WMAdaptor::WM_DELETE_WINDOW ) ) in HandleClientMessage()
4068 else if( (Atom)pEvent->data.l[0] == rWMAdaptor.getAtom( WMAdaptor::WM_TAKE_FOCUS ) ) in HandleClientMessage()
4077 else if( (Atom)pEvent->data.l[0] == rWMAdaptor.getAtom( WMAdaptor::WM_SAVE_YOURSELF ) ) in HandleClientMessage()
4108 else if( pEvent->message_type == rWMAdaptor.getAtom( WMAdaptor::XEMBED ) && in HandleClientMessage()
4109 pEvent->window == GetWindow() ) in HandleClientMessage()
4111 if( pEvent->data.l[1] == 1 || // XEMBED_WINDOW_ACTIVATE in HandleClientMessage()
4112 pEvent->data.l[1] == 2 ) // XEMBED_WINDOW_DEACTIVATE in HandleClientMessage()
4115 aEvent.type = (pEvent->data.l[1] == 1 ? FocusIn : FocusOut); in HandleClientMessage()
4116 aEvent.serial = pEvent->serial; in HandleClientMessage()
4118 aEvent.display = pEvent->display; in HandleClientMessage()
4119 aEvent.window = pEvent->window; in HandleClientMessage()
4188 long X11SalFrame::Dispatch( XEvent *pEvent ) in Dispatch() argument
4197 pDisplay_->PrintEvent( "Captured", pEvent ); in Dispatch()
4201 if( pEvent->xany.window == GetShellWindow() || pEvent->xany.window == GetWindow() ) in Dispatch()
4203 switch( pEvent->type ) in Dispatch()
4206 nKeyCode_ = pEvent->xkey.keycode; in Dispatch()
4207 nKeyState_ = pEvent->xkey.state; in Dispatch()
4208 nRet = HandleKeyEvent( &pEvent->xkey ); in Dispatch()
4214 nReleaseTime_ = pEvent->xkey.time; in Dispatch()
4216 …if( XCheckIfEvent( pEvent->xkey.display, &aEvent, call_checkKeyReleaseForRepeat, (XPointer)this ) ) in Dispatch()
4217 XPutBackEvent( pEvent->xkey.display, &aEvent ); in Dispatch()
4219 nRet = HandleKeyEvent( &pEvent->xkey ); in Dispatch()
4237 nRet = HandleMouseEvent( pEvent ); in Dispatch()
4242 nRet = HandleFocusEvent( &pEvent->xfocus ); in Dispatch()
4247 nRet = HandleExposeEvent( pEvent ); in Dispatch()
4251 if( pEvent->xmap.window == GetShellWindow() ) in Dispatch()
4361 if( pEvent->xunmap.window == GetShellWindow() ) in Dispatch()
4373 if( pEvent->xconfigure.window == GetShellWindow() in Dispatch()
4374 || pEvent->xconfigure.window == GetWindow() ) in Dispatch()
4375 nRet = HandleSizeEvent( &pEvent->xconfigure ); in Dispatch()
4379 nVisibility_ = pEvent->xvisibility.state; in Dispatch()
4389 nRet = HandleReparentEvent( &pEvent->xreparent ); in Dispatch()
4393 if( MappingPointer != pEvent->xmapping.request ) in Dispatch()
4398 nRet = HandleColormapEvent( &pEvent->xcolormap ); in Dispatch()
4403 if( pEvent->xproperty.atom == pDisplay_->getWMAdaptor()->getAtom( WMAdaptor::WM_STATE ) ) in Dispatch()
4404 nRet = HandleStateEvent( &pEvent->xproperty ); in Dispatch()
4406 nRet = pDisplay_->getWMAdaptor()->handlePropertyNotify( this, &pEvent->xproperty ); in Dispatch()
4411 nRet = HandleClientMessage( &pEvent->xclient ); in Dispatch()
4417 switch( pEvent->type ) in Dispatch()
4422 && ( pEvent->xfocus.window == GetShellWindow() in Dispatch()
4423 || pEvent->xfocus.window == GetForeignParent() ) in Dispatch()
4426 nRet = HandleFocusEvent( &pEvent->xfocus ); in Dispatch()
4431 if( pEvent->xconfigure.window == GetForeignParent() || in Dispatch()
4432 pEvent->xconfigure.window == GetShellWindow() ) in Dispatch()
4433 nRet = HandleSizeEvent( &pEvent->xconfigure ); in Dispatch()
4435 if( pEvent->xconfigure.window == GetStackingWindow() ) in Dispatch()
4436 nRet = HandleSizeEvent( &pEvent->xconfigure ); in Dispatch()