/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. Copyright 1989 by Hewlett-Packard Company, Palo Alto, California. All Rights Reserved Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Hewlett-Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ********************************************************/ /*********************************************************************** * * Extension function to grab a button on an extension device. * */ #ifdef HAVE_DIX_CONFIG_H #include #endif #include "inputstr.h" /* DeviceIntPtr */ #include "windowstr.h" /* window structure */ #include #include #include "exevents.h" #include "exglobals.h" #include "xace.h" #include "grabdev.h" #include "grabdevb.h" /*********************************************************************** * * Handle requests from clients with a different byte order. * */ int SProcXGrabDeviceButton(ClientPtr client) { REQUEST(xGrabDeviceButtonReq); swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xGrabDeviceButtonReq); swapl(&stuff->grabWindow); swaps(&stuff->modifiers); swaps(&stuff->event_count); REQUEST_FIXED_SIZE(xGrabDeviceButtonReq, stuff->event_count * sizeof(CARD32)); SwapLongs((CARD32 *) (&stuff[1]), stuff->event_count); return (ProcXGrabDeviceButton(client)); } /*********************************************************************** * * Grab a button on an extension device. * */ int ProcXGrabDeviceButton(ClientPtr client) { int ret; DeviceIntPtr dev; DeviceIntPtr mdev; XEventClass *class; struct tmask tmp[EMASKSIZE]; GrabParameters param; GrabMask mask; REQUEST(xGrabDeviceButtonReq); REQUEST_AT_LEAST_SIZE(xGrabDeviceButtonReq); if (stuff->length != bytes_to_int32(sizeof(xGrabDeviceButtonReq)) + stuff->event_count) return BadLength; ret = dixLookupDevice(&dev, stuff->grabbed_device, client, DixGrabAccess); if (ret != Success) return ret; if (stuff->modifier_device != UseXKeyboard) { ret = dixLookupDevice(&mdev, stuff->modifier_device, client, DixUseAccess); if (ret != Success) return ret; if (mdev->key == NULL) return BadMatch; } else { mdev = PickKeyboard(client); ret = XaceHook(XACE_DEVICE_ACCESS, client, mdev, DixUseAccess); if (ret != Success) return ret; } class = (XEventClass *) (&stuff[1]); /* first word of values */ if ((ret = CreateMaskFromList(client, class, stuff->event_count, tmp, dev, X_GrabDeviceButton)) != Success) return ret; param = (GrabParameters) { .grabtype = XI, .ownerEvents = stuff->ownerEvents, .this_device_mode = stuff->this_device_mode, .other_devices_mode = stuff->other_devices_mode, .grabWindow = stuff->grabWindow, .modifiers = stuff->modifiers }; mask.xi = tmp[stuff->grabbed_device].mask; ret = GrabButton(client, dev, mdev, stuff->button, ¶m, XI, &mask); return ret; } alue='libreoffice-24-2-3'>libreoffice-24-2-3 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-03-19Version 7.6.6.2, tag libreoffice-7.6.6.2libreoffice-7.6.6.2Christian Lohmaier0-0/+0
2024-03-19update translations for 7.6.6 rc2Christian Lohmaier53-251/+249
2024-03-18bump copyright year for sl translationChristian Lohmaier2-4/+4
2024-03-18update translations for 7-6Christian Lohmaier931-21480/+20814
2024-03-05Branch libreoffice-7-6-6Christian Lohmaier0-0/+0
2024-03-05update translations for 7.6.6 rc1Christian Lohmaier295-5547/+5404
2024-02-15update translations for 7.6.5 rc2Christian Lohmaier285-5982/+5640
2024-02-01update translations for 7.6.5 rc1Christian Lohmaier37-483/+473
2024-01-30update translations for 7.6.5 rc1Christian Lohmaier879-27048/+26033
2023-11-30update translations for 7.6.4 rc1Xisco Fauli152-2777/+2756
2023-11-23update translations for 7-6Xisco Fauli42-818/+811
2023-11-21update translations for 7-6Xisco Fauli70-1462/+1451
2023-11-16update translations for 7.6.3 rc2Christian Lohmaier278-4389/+4308
2023-11-02update translations for 7.6.3 rc1Christian Lohmaier355-8735/+9208
2023-10-02update translations for 7-6Christian Lohmaier130-2279/+2254
2023-09-22update translations for 7.6.2 rc1Christian Lohmaier25-624/+594
2023-09-19update translations for 7.6.2 rc1Christian Lohmaier92-1251/+1232
2023-09-18Updated Slovenian translationMartin Srebotnjak54-286/+293
2023-09-16Updated Slovenian translationMartin Srebotnjak54-578/+578
2023-09-13update translations for 7-6Christian Lohmaier60-2531/+2463
2023-09-06update translations for 7.6.1 rc2Christian Lohmaier98-3677/+3513
2023-08-28update translations for master/7.6Christian Lohmaier112-2646/+2674
2023-08-23update translations for master/7.6.1 rc1Xisco Fauli62-2393/+2289
2023-08-16update translations for master/7.6.1 rc1Xisco Fauli290-13739/+13680
2023-08-08update translations for 7.6.0 rc3Christian Lohmaier38-1025/+944
2023-08-07update translations for 7.6.0 rc3Christian Lohmaier233-8251/+7856
2023-07-26update translations for 7.6.0 rc2Christian Lohmaier879-28115/+27400
2023-07-08Updated Slovenian translationMartin Srebotnjak17-2275/+2601
2023-07-07update translations for master/7.6.0 rc1Christian Lohmaier1748-357269/+430134
2023-07-01Updated Slovenian translationMartin Srebotnjak30-2002/+3514
2023-06-19update translations for master/7.6Christian Lohmaier940-10242/+20911
2023-06-12update translations for 7.6/masterChristian Lohmaier777-10559/+17593
2023-06-07Branch libreoffice-7-6Christian Lohmaier0-0/+0
2023-06-07update translations for master/7.6.0 beta1libreoffice-7-6-branch-pointChristian Lohmaier1234-124630/+170202
2023-06-01Updated Slovenian translationMartin Srebotnjak38-3954/+5251
2023-05-31update translations for master/7.6Christian Lohmaier1747-91792/+170634
2023-05-22update translations for master/7.6Christian Lohmaier722-151571/+156642
2023-05-17update translations for masterChristian Lohmaier1295-55089/+71497
2023-05-14Updated Slovenian translationMartin Srebotnjak67-9207/+15986
2023-05-11update tranlsations for master/7.6.0 alpha1Christian Lohmaier399-27908/+29243
2023-05-10update translations for masterChristian Lohmaier2164-289516/+301752
2023-05-03update translations for masterChristian Lohmaier1350-43395/+56073
2023-04-27update translations for masterChristian Lohmaier