diff options
| author | Alexander Golubev <fatzer2@gmail.com> | 2026-03-22 07:59:46 +0300 |
|---|---|---|
| committer | Alexander Golubev <fatzer2@gmail.com> | 2026-03-22 15:11:10 +0300 |
| commit | c2b71f4731c4ab2047a7ee3344894c1273c1131f (patch) | |
| tree | 763b0505421fd6576a5e6f160a9c3b6c50c98034 /src/kernel/tqapplication_x11.cpp | |
| parent | 1c019978b3fac649f4495fc21ef093104903f60b (diff) | |
| download | tqt-Fat-Zer/minor/refactoring.tar.gz tqt-Fat-Zer/minor/refactoring.zip | |
Rename several symbols {qt=>tqt}Fat-Zer/minor/refactoring
Symbols renamed:
* {qt=>tqt}_desktopwidget_update_workarea
* {qt=>tqt}_desktopwidget_workarea_dirty
* {qt=>tqt}_net_supports()
* {qt=>tqt}_net_*
* {qt=>tqt}_x11_create_desktop_on_screen
All those are internal symbols; the changes don't affect API/ABI. No
additional changes required.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'src/kernel/tqapplication_x11.cpp')
| -rw-r--r-- | src/kernel/tqapplication_x11.cpp | 296 |
1 files changed, 148 insertions, 148 deletions
diff --git a/src/kernel/tqapplication_x11.cpp b/src/kernel/tqapplication_x11.cpp index 5b0bba96e..2c78dc6c0 100644 --- a/src/kernel/tqapplication_x11.cpp +++ b/src/kernel/tqapplication_x11.cpp @@ -214,18 +214,18 @@ static GC* app_gc_tmp = 0; // temporary GC static GC* app_gc_ro_m = 0; // read-only GC (monochrome) static GC* app_gc_tmp_m = 0; // temporary GC (monochrome) // symbols needed by extern TQXEmbed class -TQ_EXPORT Atom tqt_wm_protocols = 0; // window manager protocols +TQ_EXPORT Atom tqt_wm_protocols = 0; // window manager protocols TQ_EXPORT Atom tqt_wm_delete_window = 0; // delete window protocol TQ_EXPORT Atom tqt_wm_take_focus = 0; // take focus window protocol Atom qt_qt_scrolldone = 0; // scroll synchronization -Atom qt_net_wm_context_help = 0; // context help -Atom qt_net_wm_ping = 0; // _NET_WM_PING protocol +Atom tqt_net_wm_context_help = 0; // context help +Atom tqt_net_wm_ping = 0; // _NET_WM_PING protocol static Atom qt_xsetroot_id = 0; Atom qt_xa_clipboard = 0; Atom qt_selection_property = 0; -Atom tqt_clipboard_sentinel = 0; +Atom tqt_clipboard_sentinel = 0; Atom qt_selection_sentinel = 0; TQ_EXPORT Atom tqt_wm_state = 0; Atom qt_wm_change_state = 0; @@ -250,68 +250,68 @@ bool qt_broken_wm = false; static void qt_detect_broken_window_manager(); // NET WM support -Atom qt_net_supported = 0; -Atom qt_net_wm_name = 0; -Atom qt_net_wm_icon_name = 0; -Atom qt_net_virtual_roots = 0; -Atom qt_net_workarea = 0; -Atom qt_net_wm_state = 0; -Atom qt_net_wm_state_modal = 0; -Atom qt_net_wm_state_max_v = 0; -Atom qt_net_wm_state_max_h = 0; -Atom qt_net_wm_state_fullscreen = 0; -Atom qt_net_wm_state_above = 0; -Atom qt_net_wm_action = 0; -Atom qt_net_wm_action_move = 0; -Atom qt_net_wm_action_resize = 0; -Atom qt_net_wm_action_minimize = 0; -Atom qt_net_wm_action_shade = 0; -Atom qt_net_wm_action_stick = 0; -Atom qt_net_wm_action_max_h = 0; -Atom qt_net_wm_action_max_v = 0; -Atom qt_net_wm_action_fullscreen = 0; -Atom qt_net_wm_action_change_desktop = 0; -Atom qt_net_wm_action_close = 0; -Atom qt_net_wm_action_above = 0; -Atom qt_net_wm_action_below = 0; -Atom qt_net_wm_window_type = 0; -Atom qt_net_wm_window_type_normal = 0; -Atom qt_net_wm_window_type_dialog = 0; -Atom qt_net_wm_window_type_toolbar = 0; -Atom qt_net_wm_window_type_menu = 0; -Atom qt_net_wm_window_type_utility = 0; -Atom qt_net_wm_window_type_splash = 0; -Atom qt_net_wm_window_type_override = 0; // KDE extension -Atom qt_net_wm_window_type_dropdown_menu = 0; -Atom qt_net_wm_window_type_popup_menu = 0; -Atom qt_net_wm_window_type_tooltip = 0; -Atom qt_net_wm_window_type_combo = 0; -Atom qt_net_wm_window_type_dnd = 0; -Atom qt_net_wm_frame_strut = 0; // KDE extension -Atom qt_net_wm_state_stays_on_top = 0; // KDE extension -Atom qt_net_wm_pid = 0; -Atom qt_net_wm_user_time = 0; -Atom qt_net_wm_full_placement = 0; // KDE extension +Atom tqt_net_supported = 0; +Atom tqt_net_wm_name = 0; +Atom tqt_net_wm_icon_name = 0; +Atom tqt_net_virtual_roots = 0; +Atom tqt_net_workarea = 0; +Atom tqt_net_wm_state = 0; +Atom tqt_net_wm_state_modal = 0; +Atom tqt_net_wm_state_max_v = 0; +Atom tqt_net_wm_state_max_h = 0; +Atom tqt_net_wm_state_fullscreen = 0; +Atom tqt_net_wm_state_above = 0; +Atom tqt_net_wm_action = 0; +Atom tqt_net_wm_action_move = 0; +Atom tqt_net_wm_action_resize = 0; +Atom tqt_net_wm_action_minimize = 0; +Atom tqt_net_wm_action_shade = 0; +Atom tqt_net_wm_action_stick = 0; +Atom tqt_net_wm_action_max_h = 0; +Atom tqt_net_wm_action_max_v = 0; +Atom tqt_net_wm_action_fullscreen = 0; +Atom tqt_net_wm_action_change_desktop = 0; +Atom tqt_net_wm_action_close = 0; +Atom tqt_net_wm_action_above = 0; +Atom tqt_net_wm_action_below = 0; +Atom tqt_net_wm_window_type = 0; +Atom tqt_net_wm_window_type_normal = 0; +Atom tqt_net_wm_window_type_dialog = 0; +Atom tqt_net_wm_window_type_toolbar = 0; +Atom tqt_net_wm_window_type_menu = 0; +Atom tqt_net_wm_window_type_utility = 0; +Atom tqt_net_wm_window_type_splash = 0; +Atom tqt_net_wm_window_type_override = 0; // KDE extension +Atom tqt_net_wm_window_type_dropdown_menu = 0; +Atom tqt_net_wm_window_type_popup_menu = 0; +Atom tqt_net_wm_window_type_tooltip = 0; +Atom tqt_net_wm_window_type_combo = 0; +Atom tqt_net_wm_window_type_dnd = 0; +Atom tqt_net_wm_frame_strut = 0; // KDE extension +Atom tqt_net_wm_state_stays_on_top = 0; // KDE extension +Atom tqt_net_wm_pid = 0; +Atom tqt_net_wm_user_time = 0; +Atom tqt_net_wm_full_placement = 0; // KDE extension // Enlightenment support Atom qt_enlightenment_desktop = 0; // window managers list of supported "stuff" -Atom *qt_net_supported_list = 0; +Atom *tqt_net_supported_list = 0; // list of virtual root windows -Window *qt_net_virtual_root_list = 0; +Window *tqt_net_virtual_root_list = 0; // X11 SYNC support #ifndef TQT_NO_XSYNC -Atom qt_net_wm_sync_request_counter = 0; -Atom qt_net_wm_sync_request = 0; +Atom tqt_net_wm_sync_request_counter = 0; +Atom tqt_net_wm_sync_request = 0; #endif // client leader window Window qt_x11_wm_client_leader = 0; // function to update the workarea of the screen - in tqdesktopwidget_x11.cpp -extern void qt_desktopwidget_update_workarea(); +extern void tqt_desktopwidget_update_workarea(); // current focus model static const int FocusModel_Unknown = -1; @@ -1451,14 +1451,14 @@ void qt_get_net_supported() unsigned char *data = 0; int e = XGetWindowProperty(appDpy, TQPaintDevice::x11AppRootWindow(), - qt_net_supported, 0, 0, + tqt_net_supported, 0, 0, False, XA_ATOM, &type, &format, &nitems, &after, &data); if (data) XFree(data); - if (qt_net_supported_list) - delete [] qt_net_supported_list; - qt_net_supported_list = 0; + if (tqt_net_supported_list) + delete [] tqt_net_supported_list; + tqt_net_supported_list = 0; if (e == Success && type == XA_ATOM && format == 32) { TQBuffer ts; @@ -1466,7 +1466,7 @@ void qt_get_net_supported() while (after > 0) { XGetWindowProperty(appDpy, TQPaintDevice::x11AppRootWindow(), - qt_net_supported, offset, 1024, + tqt_net_supported, offset, 1024, False, XA_ATOM, &type, &format, &nitems, &after, &data); if (type == XA_ATOM && format == 32) { @@ -1481,25 +1481,25 @@ void qt_get_net_supported() // compute nitems TQByteArray buffer(ts.buffer()); nitems = buffer.size() / sizeof(Atom); - qt_net_supported_list = new Atom[nitems + 1]; + tqt_net_supported_list = new Atom[nitems + 1]; Atom *a = (Atom *) buffer.data(); uint i; for (i = 0; i < nitems; i++) - qt_net_supported_list[i] = a[i]; - qt_net_supported_list[nitems] = 0; + tqt_net_supported_list[i] = a[i]; + tqt_net_supported_list[nitems] = 0; } } -bool qt_net_supports(Atom atom) +bool tqt_net_supports(Atom atom) { - if (! qt_net_supported_list) + if (! tqt_net_supported_list) return false; bool supported = false; int i = 0; - while (qt_net_supported_list[i] != 0) { - if (qt_net_supported_list[i++] == atom) { + while (tqt_net_supported_list[i] != 0) { + if (tqt_net_supported_list[i++] == atom) { supported = true; break; } @@ -1512,11 +1512,11 @@ bool qt_net_supports(Atom atom) // update the virtual roots array void qt_get_net_virtual_roots() { - if (qt_net_virtual_root_list) - delete [] qt_net_virtual_root_list; - qt_net_virtual_root_list = 0; + if (tqt_net_virtual_root_list) + delete [] tqt_net_virtual_root_list; + tqt_net_virtual_root_list = 0; - if (! qt_net_supports(qt_net_virtual_roots)) + if (! tqt_net_supports(tqt_net_virtual_roots)) return; Atom type; @@ -1526,7 +1526,7 @@ void qt_get_net_virtual_roots() unsigned char *data; int e = XGetWindowProperty(appDpy, TQPaintDevice::x11AppRootWindow(), - qt_net_virtual_roots, 0, 0, + tqt_net_virtual_roots, 0, 0, False, XA_ATOM, &type, &format, &nitems, &after, &data); if (data) XFree(data); @@ -1537,7 +1537,7 @@ void qt_get_net_virtual_roots() while (after > 0) { XGetWindowProperty(appDpy, TQPaintDevice::x11AppRootWindow(), - qt_net_virtual_roots, offset, 1024, + tqt_net_virtual_roots, offset, 1024, False, XA_ATOM, &type, &format, &nitems, &after, &data); if (type == XA_ATOM && format == 32) { @@ -1552,12 +1552,12 @@ void qt_get_net_virtual_roots() // compute nitems TQByteArray buffer(ts.buffer()); nitems = buffer.size() / sizeof(Window); - qt_net_virtual_root_list = new Window[nitems + 1]; + tqt_net_virtual_root_list = new Window[nitems + 1]; Window *a = (Window *) buffer.data(); uint i; for (i = 0; i < nitems; i++) - qt_net_virtual_root_list[i] = a[i]; - qt_net_virtual_root_list[nitems] = 0; + tqt_net_virtual_root_list[i] = a[i]; + tqt_net_virtual_root_list[nitems] = 0; } } @@ -1586,9 +1586,9 @@ void qt_x11_create_wm_client_leader() } } -static void qt_net_update_user_time(TQWidget *tlw) +static void tqt_net_update_user_time(TQWidget *tlw) { - XChangeProperty(TQPaintDevice::x11AppDisplay(), tlw->winId(), qt_net_wm_user_time, XA_CARDINAL, + XChangeProperty(TQPaintDevice::x11AppDisplay(), tlw->winId(), tqt_net_wm_user_time, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &tqt_x_user_time, 1); } @@ -2011,8 +2011,8 @@ void tqt_init_internal( int *argcptr, char **argv, qt_x11_intern_atom( "_QT_SCROLL_DONE", &qt_qt_scrolldone ); qt_x11_intern_atom( "_QT_INPUT_ENCODING", &qt_input_encoding ); qt_x11_intern_atom( "_QT_SIZEGRIP", &qt_sizegrip ); - qt_x11_intern_atom( "_NET_WM_CONTEXT_HELP", &qt_net_wm_context_help ); - qt_x11_intern_atom( "_NET_WM_PING", &qt_net_wm_ping ); + qt_x11_intern_atom( "_NET_WM_CONTEXT_HELP", &tqt_net_wm_context_help ); + qt_x11_intern_atom( "_NET_WM_PING", &tqt_net_wm_ping ); qt_x11_intern_atom( "_MOTIF_WM_HINTS", &qt_xa_motif_wm_hints ); qt_x11_intern_atom( "DTWM_IS_RUNNING", &qt_cde_running ); qt_x11_intern_atom( "KWIN_RUNNING", &qt_twin_running ); @@ -2023,56 +2023,56 @@ void tqt_init_internal( int *argcptr, char **argv, atomname += XDisplayName(appDpyName); qt_x11_intern_atom( atomname.latin1(), &qt_settings_timestamp ); - qt_x11_intern_atom( "_NET_SUPPORTED", &qt_net_supported ); - qt_x11_intern_atom( "_NET_VIRTUAL_ROOTS", &qt_net_virtual_roots ); - qt_x11_intern_atom( "_NET_WORKAREA", &qt_net_workarea ); - qt_x11_intern_atom( "_NET_WM_STATE", &qt_net_wm_state ); - qt_x11_intern_atom( "_NET_WM_STATE_MODAL", &qt_net_wm_state_modal ); - qt_x11_intern_atom( "_NET_WM_STATE_MAXIMIZED_VERT", &qt_net_wm_state_max_v ); - qt_x11_intern_atom( "_NET_WM_STATE_MAXIMIZED_HORZ", &qt_net_wm_state_max_h ); - qt_x11_intern_atom( "_NET_WM_STATE_FULLSCREEN", &qt_net_wm_state_fullscreen ); - qt_x11_intern_atom( "_NET_WM_STATE_ABOVE", &qt_net_wm_state_above ); - qt_x11_intern_atom( "_NET_WM_ALLOWED_ACTIONS", &qt_net_wm_action ); - qt_x11_intern_atom( "_NET_WM_ACTION_MOVE", &qt_net_wm_action_move ); - qt_x11_intern_atom( "_NET_WM_ACTION_RESIZE", &qt_net_wm_action_resize ); - qt_x11_intern_atom( "_NET_WM_ACTION_MINIMIZE", &qt_net_wm_action_minimize ); - qt_x11_intern_atom( "_NET_WM_ACTION_SHADE", &qt_net_wm_action_shade ); - qt_x11_intern_atom( "_NET_WM_ACTION_STICK", &qt_net_wm_action_stick ); - qt_x11_intern_atom( "_NET_WM_ACTION_MAXIMIZE_HORZ", &qt_net_wm_action_max_h ); - qt_x11_intern_atom( "_NET_WM_ACTION_MAXIMIZE_VERT", &qt_net_wm_action_max_v ); - qt_x11_intern_atom( "_NET_WM_ACTION_FULLSCREEN", &qt_net_wm_action_fullscreen ); - qt_x11_intern_atom( "_NET_WM_ACTION_CHANGE_DESKTOP", &qt_net_wm_action_change_desktop ); - qt_x11_intern_atom( "_NET_WM_ACTION_CLOSE", &qt_net_wm_action_close ); - qt_x11_intern_atom( "_NET_WM_ACTION_ABOVE", &qt_net_wm_action_above ); - qt_x11_intern_atom( "_NET_WM_ACTION_BELOW", &qt_net_wm_action_below ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE", &qt_net_wm_window_type ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_NORMAL", &qt_net_wm_window_type_normal ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_DIALOG", &qt_net_wm_window_type_dialog ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_TOOLBAR", &qt_net_wm_window_type_toolbar ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_MENU", &qt_net_wm_window_type_menu ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_UTILITY", &qt_net_wm_window_type_utility ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_SPLASH", &qt_net_wm_window_type_splash ); - qt_x11_intern_atom( "_KDE_NET_WM_WINDOW_TYPE_OVERRIDE", &qt_net_wm_window_type_override ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_DROPDOWN_MENU", &qt_net_wm_window_type_dropdown_menu ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_POPUP_MENU", &qt_net_wm_window_type_popup_menu ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_TOOLTIP", &qt_net_wm_window_type_tooltip ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_COMBO", &qt_net_wm_window_type_combo ); - qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_DND", &qt_net_wm_window_type_dnd ); - qt_x11_intern_atom( "_KDE_NET_WM_FRAME_STRUT", &qt_net_wm_frame_strut ); + qt_x11_intern_atom( "_NET_SUPPORTED", &tqt_net_supported ); + qt_x11_intern_atom( "_NET_VIRTUAL_ROOTS", &tqt_net_virtual_roots ); + qt_x11_intern_atom( "_NET_WORKAREA", &tqt_net_workarea ); + qt_x11_intern_atom( "_NET_WM_STATE", &tqt_net_wm_state ); + qt_x11_intern_atom( "_NET_WM_STATE_MODAL", &tqt_net_wm_state_modal ); + qt_x11_intern_atom( "_NET_WM_STATE_MAXIMIZED_VERT", &tqt_net_wm_state_max_v ); + qt_x11_intern_atom( "_NET_WM_STATE_MAXIMIZED_HORZ", &tqt_net_wm_state_max_h ); + qt_x11_intern_atom( "_NET_WM_STATE_FULLSCREEN", &tqt_net_wm_state_fullscreen ); + qt_x11_intern_atom( "_NET_WM_STATE_ABOVE", &tqt_net_wm_state_above ); + qt_x11_intern_atom( "_NET_WM_ALLOWED_ACTIONS", &tqt_net_wm_action ); + qt_x11_intern_atom( "_NET_WM_ACTION_MOVE", &tqt_net_wm_action_move ); + qt_x11_intern_atom( "_NET_WM_ACTION_RESIZE", &tqt_net_wm_action_resize ); + qt_x11_intern_atom( "_NET_WM_ACTION_MINIMIZE", &tqt_net_wm_action_minimize ); + qt_x11_intern_atom( "_NET_WM_ACTION_SHADE", &tqt_net_wm_action_shade ); + qt_x11_intern_atom( "_NET_WM_ACTION_STICK", &tqt_net_wm_action_stick ); + qt_x11_intern_atom( "_NET_WM_ACTION_MAXIMIZE_HORZ", &tqt_net_wm_action_max_h ); + qt_x11_intern_atom( "_NET_WM_ACTION_MAXIMIZE_VERT", &tqt_net_wm_action_max_v ); + qt_x11_intern_atom( "_NET_WM_ACTION_FULLSCREEN", &tqt_net_wm_action_fullscreen ); + qt_x11_intern_atom( "_NET_WM_ACTION_CHANGE_DESKTOP", &tqt_net_wm_action_change_desktop ); + qt_x11_intern_atom( "_NET_WM_ACTION_CLOSE", &tqt_net_wm_action_close ); + qt_x11_intern_atom( "_NET_WM_ACTION_ABOVE", &tqt_net_wm_action_above ); + qt_x11_intern_atom( "_NET_WM_ACTION_BELOW", &tqt_net_wm_action_below ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE", &tqt_net_wm_window_type ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_NORMAL", &tqt_net_wm_window_type_normal ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_DIALOG", &tqt_net_wm_window_type_dialog ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_TOOLBAR", &tqt_net_wm_window_type_toolbar ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_MENU", &tqt_net_wm_window_type_menu ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_UTILITY", &tqt_net_wm_window_type_utility ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_SPLASH", &tqt_net_wm_window_type_splash ); + qt_x11_intern_atom( "_KDE_NET_WM_WINDOW_TYPE_OVERRIDE", &tqt_net_wm_window_type_override ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_DROPDOWN_MENU", &tqt_net_wm_window_type_dropdown_menu ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_POPUP_MENU", &tqt_net_wm_window_type_popup_menu ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_TOOLTIP", &tqt_net_wm_window_type_tooltip ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_COMBO", &tqt_net_wm_window_type_combo ); + qt_x11_intern_atom( "_NET_WM_WINDOW_TYPE_DND", &tqt_net_wm_window_type_dnd ); + qt_x11_intern_atom( "_KDE_NET_WM_FRAME_STRUT", &tqt_net_wm_frame_strut ); qt_x11_intern_atom( "_NET_WM_STATE_STAYS_ON_TOP", - &qt_net_wm_state_stays_on_top ); - qt_x11_intern_atom( "_NET_WM_PID", &qt_net_wm_pid ); - qt_x11_intern_atom( "_NET_WM_USER_TIME", &qt_net_wm_user_time ); - qt_x11_intern_atom( "_NET_WM_FULL_PLACEMENT", &qt_net_wm_full_placement ); + &tqt_net_wm_state_stays_on_top ); + qt_x11_intern_atom( "_NET_WM_PID", &tqt_net_wm_pid ); + qt_x11_intern_atom( "_NET_WM_USER_TIME", &tqt_net_wm_user_time ); + qt_x11_intern_atom( "_NET_WM_FULL_PLACEMENT", &tqt_net_wm_full_placement ); qt_x11_intern_atom( "ENLIGHTENMENT_DESKTOP", &qt_enlightenment_desktop ); - qt_x11_intern_atom( "_NET_WM_NAME", &qt_net_wm_name ); - qt_x11_intern_atom( "_NET_WM_ICON_NAME", &qt_net_wm_icon_name ); + qt_x11_intern_atom( "_NET_WM_NAME", &tqt_net_wm_name ); + qt_x11_intern_atom( "_NET_WM_ICON_NAME", &tqt_net_wm_icon_name ); qt_x11_intern_atom( "UTF8_STRING", &qt_utf8_string ); qt_x11_intern_atom( "_SGI_DESKS_MANAGER", &qt_sgi_desks_manager ); #ifndef TQT_NO_XSYNC - qt_x11_intern_atom( "_NET_WM_SYNC_REQUEST_COUNTER", &qt_net_wm_sync_request_counter ); - qt_x11_intern_atom( "_NET_WM_SYNC_REQUEST", &qt_net_wm_sync_request ); + qt_x11_intern_atom( "_NET_WM_SYNC_REQUEST_COUNTER", &tqt_net_wm_sync_request_counter ); + qt_x11_intern_atom( "_NET_WM_SYNC_REQUEST", &tqt_net_wm_sync_request ); #endif qt_xdnd_setup(); @@ -2550,13 +2550,13 @@ void tqt_cleanup() appClass = 0; } - if (qt_net_supported_list) - delete [] qt_net_supported_list; - qt_net_supported_list = 0; + if (tqt_net_supported_list) + delete [] tqt_net_supported_list; + tqt_net_supported_list = 0; - if (qt_net_virtual_root_list) - delete [] qt_net_virtual_root_list; - qt_net_virtual_root_list = 0; + if (tqt_net_virtual_root_list) + delete [] tqt_net_virtual_root_list; + tqt_net_virtual_root_list = 0; } @@ -3234,16 +3234,16 @@ int TQApplication::x11ClientMessage(TQWidget* w, XEvent* event, bool passive_onl TQWidget *p = amw->parentWidget(); while (p && p != widget) p = p->parentWidget(); - if (!p || !qt_net_supported_list) + if (!p || !tqt_net_supported_list) amw->raise(); // help broken window managers amw->setActiveWindow(); } } #ifndef TQT_NO_WHATSTHIS - } else if ( a == qt_net_wm_context_help ) { + } else if ( a == tqt_net_wm_context_help ) { TQWhatsThis::enterWhatsThisMode(); #endif // TQT_NO_WHATSTHIS - } else if ( a == qt_net_wm_ping ) { + } else if ( a == tqt_net_wm_ping ) { // avoid send/reply loops Window root = TQPaintDevice::x11AppRootWindow( w->x11Screen() ); if (event->xclient.window != root) { @@ -3252,7 +3252,7 @@ int TQApplication::x11ClientMessage(TQWidget* w, XEvent* event, bool passive_onl False, SubstructureNotifyMask|SubstructureRedirectMask, event ); } #ifndef TQT_NO_XSYNC - } else if (a == qt_net_wm_sync_request ) { + } else if (a == tqt_net_wm_sync_request ) { widget->handleSyncRequest( event ); #endif } @@ -3444,12 +3444,12 @@ int TQApplication::x11ProcessEvent( XEvent* event ) // root properties for the default screen if ( event->xproperty.atom == qt_input_encoding ) { qt_set_input_encoding(); - } else if ( event->xproperty.atom == qt_net_supported ) { + } else if ( event->xproperty.atom == tqt_net_supported ) { qt_get_net_supported(); - } else if ( event->xproperty.atom == qt_net_virtual_roots ) { + } else if ( event->xproperty.atom == tqt_net_virtual_roots ) { qt_get_net_virtual_roots(); - } else if ( event->xproperty.atom == qt_net_workarea ) { - qt_desktopwidget_update_workarea(); + } else if ( event->xproperty.atom == tqt_net_workarea ) { + tqt_desktopwidget_update_workarea(); } } else if ( widget ) { widget->translatePropertyEvent(event); @@ -3559,7 +3559,7 @@ int TQApplication::x11ProcessEvent( XEvent* event ) return 1; } if (event->type == ButtonPress) - qt_net_update_user_time(widget->topLevelWidget()); + tqt_net_update_user_time(widget->topLevelWidget()); // fall through intended case MotionNotify: #if defined(QT_TABLET_SUPPORT) @@ -3574,7 +3574,7 @@ int TQApplication::x11ProcessEvent( XEvent* event ) break; case XKeyPress: // keyboard event - qt_net_update_user_time(widget->topLevelWidget()); + tqt_net_update_user_time(widget->topLevelWidget()); // fallthrough intended case XKeyRelease: { @@ -4535,12 +4535,12 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) unsigned char *data = 0; unsigned long nitems, after; - if (event->xproperty.atom == qt_net_wm_frame_strut) { + if (event->xproperty.atom == tqt_net_wm_frame_strut) { topData()->fleft = topData()->fright = topData()->ftop = topData()->fbottom = 0; fstrut_dirty = 1; if (event->xproperty.state == PropertyNewValue) { - e = XGetWindowProperty(appDpy, event->xproperty.window, qt_net_wm_frame_strut, + e = XGetWindowProperty(appDpy, event->xproperty.window, tqt_net_wm_frame_strut, 0, 4, // struts are 4 longs False, XA_CARDINAL, &ret, &format, &nitems, &after, &data); @@ -4554,14 +4554,14 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) fstrut_dirty = 0; } } - } else if (event->xproperty.atom == qt_net_wm_state) { + } else if (event->xproperty.atom == tqt_net_wm_state) { bool max = false; bool full = false; if (event->xproperty.state == PropertyNewValue) { // using length of 1024 should be safe for all current and // possible NET states... - e = XGetWindowProperty(appDpy, event->xproperty.window, qt_net_wm_state, 0, 1024, + e = XGetWindowProperty(appDpy, event->xproperty.window, tqt_net_wm_state, 0, 1024, False, XA_ATOM, &ret, &format, &nitems, &after, &data); if (e == Success && ret == XA_ATOM && format == 32 && nitems > 0) { @@ -4569,9 +4569,9 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) unsigned long i; for (i = 0; i < nitems; i++) { - if (states[i] == qt_net_wm_state_max_v || states[i] == qt_net_wm_state_max_h) + if (states[i] == tqt_net_wm_state_max_v || states[i] == tqt_net_wm_state_max_h) max = true; - else if (states[i] == qt_net_wm_state_fullscreen) + else if (states[i] == tqt_net_wm_state_fullscreen) full = true; } } @@ -4579,8 +4579,8 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) bool send_event = false; - if (qt_net_supports(qt_net_wm_state_max_v) - && qt_net_supports(qt_net_wm_state_max_h)) { + if (tqt_net_supports(tqt_net_wm_state_max_v) + && tqt_net_supports(tqt_net_wm_state_max_h)) { if (max && !isMaximized()) { setWState(WState_Maximized); send_event = true; @@ -4590,7 +4590,7 @@ bool TQETWidget::translatePropertyEvent(const XEvent *event) } } - if (qt_net_supports(qt_net_wm_state_fullscreen)) { + if (tqt_net_supports(tqt_net_wm_state_fullscreen)) { if (full && !isFullScreen()) { setWState(WState_FullScreen); send_event = true; @@ -5824,11 +5824,11 @@ bool TQETWidget::translateScrollDoneEvent( const XEvent *event ) extern "C" { #endif #ifndef TQT_NO_XSYNC -static Bool qt_net_wm_sync_request_scanner(Display*, XEvent* event, XPointer arg) +static Bool tqt_net_wm_sync_request_scanner(Display*, XEvent* event, XPointer arg) { return (event->type == ClientMessage && event->xclient.window == *(Window*)arg && event->xclient.message_type == tqt_wm_protocols - && ((unsigned int)event->xclient.data.l[ 0 ]) == qt_net_wm_sync_request ); + && ((unsigned int)event->xclient.data.l[ 0 ]) == tqt_net_wm_sync_request ); } #endif @@ -5894,7 +5894,7 @@ bool TQETWidget::translateConfigEvent( const XEvent *event ) Window wid = winId(); while ( compressed_configs && XCheckIfEvent( x11Display(), &otherEvent, - qt_net_wm_sync_request_scanner, (XPointer)&wid ) ) { + tqt_net_wm_sync_request_scanner, (XPointer)&wid ) ) { handleSyncRequest( (void*)&otherEvent ); --compressed_configs; } |
