2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef _XCNPHANDLER_H_
19 #define _XCNPHANDLER_H_
24 struct _XHandlerData {
25 Ecore_Event_Handler *xsel_clear_handler;
26 Ecore_Event_Handler *xsel_request_handler;
27 Ecore_Event_Handler *xsel_notify_handler;
28 Ecore_Event_Handler *xclient_msg_handler;
29 Ecore_Event_Handler *xfocus_out_handler;
30 Ecore_Event_Handler *xproperty_notify_handler;
31 Ecore_Event_Handler *xwindow_destroy_handler;
34 Ecore_X_Atom atomWindowRotate;
36 Ecore_X_Atom atomCBHM_MSG;
37 Ecore_X_Atom atomCBHM_ITEM;
38 Ecore_X_Atom atomXKey_MSG;
40 Ecore_X_Atom atomUTF8String;
41 Ecore_X_Atom atomCBHMCount;
43 Ecore_Timer *selection_timer;
47 #include "item_manager.h"
48 #include "xconverter.h"
50 XHandlerData *init_xhandler(AppData *data);
51 void depose_xhandler(XHandlerData *xd);
52 Eina_Bool set_selection_owner(AppData *ad, Ecore_X_Selection selection, CNP_ITEM *item);
53 #define SELECTION_CHECK_TIME 0.5