• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

  • sources
  • kde-4.14
  • kdelibs
  • kdeui
  • windowmanagement
Macros | Functions | Variables
netwm.cpp File Reference
#include "netwm.h"
#include "netwm_p.h"
#include <QtGui/QWidget>
#include <QtGui/qx11info_x11.h>
#include <kwindowsystem.h>
#include <kxutils.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <X11/Xmd.h>
Include dependency graph for netwm.cpp:

Go to the source code of this file.

Macros

#define CHECK_TYPE_MASK(type)
 

Functions

static void create_netwm_atoms (Display *d)
 
static char * nstrdup (const char *s1)
 
static char * nstrndup (const char *s1, int l)
 
static Window * nwindup (const Window *w1, int n)
 
static void readIcon (Display *display, Window window, Atom property, NETRArray< NETIcon > &icons, int &icon_count)
 
static void refdec_nri (NETRootInfoPrivate *p)
 
static void refdec_nwi (NETWinInfoPrivate *p)
 
static int wcmp (const void *a, const void *b)
 

Variables

static Atom kde_net_wm_activities = 0
 
static Atom kde_net_wm_block_compositing = 0
 
static Atom kde_net_wm_frame_overlap = 0
 
static Atom kde_net_wm_frame_strut = 0
 
static Atom kde_net_wm_shadow = 0
 
static Atom kde_net_wm_temporary_rules = 0
 
static Atom kde_net_wm_window_type_override = 0
 
static Atom kde_net_wm_window_type_topmenu = 0
 
const long MAX_PROP_SIZE = 100000
 
static Atom net_active_window = 0
 
static Atom net_client_list = 0
 
static Atom net_client_list_stacking = 0
 
static Atom net_close_window = 0
 
static Atom net_current_desktop = 0
 
static Atom net_desktop_geometry = 0
 
static Atom net_desktop_layout = 0
 
static Atom net_desktop_names = 0
 
static Atom net_desktop_viewport = 0
 
static Atom net_frame_extents = 0
 
static Atom net_moveresize_window = 0
 
static Atom net_number_of_desktops = 0
 
static Atom net_restack_window = 0
 
static Atom net_showing_desktop = 0
 
static Atom net_startup_id = 0
 
static Atom net_supported = 0
 
static Atom net_supporting_wm_check = 0
 
static Atom net_virtual_roots = 0
 
static Atom net_wm_action_change_desk = 0
 
static Atom net_wm_action_close = 0
 
static Atom net_wm_action_fullscreen = 0
 
static Atom net_wm_action_max_horiz = 0
 
static Atom net_wm_action_max_vert = 0
 
static Atom net_wm_action_minimize = 0
 
static Atom net_wm_action_move = 0
 
static Atom net_wm_action_resize = 0
 
static Atom net_wm_action_shade = 0
 
static Atom net_wm_action_stick = 0
 
static Atom net_wm_allowed_actions = 0
 
static Atom net_wm_desktop = 0
 
static Atom net_wm_extended_strut = 0
 
static Atom net_wm_full_placement = 0
 
static Atom net_wm_fullscreen_monitors = 0
 
static Atom net_wm_handled_icons = 0
 
static Atom net_wm_icon = 0
 
static Atom net_wm_icon_geometry = 0
 
static Atom net_wm_icon_name = 0
 
static Atom net_wm_moveresize = 0
 
static Atom net_wm_name = 0
 
static Atom net_wm_pid = 0
 
static Atom net_wm_ping = 0
 
static Atom net_wm_state = 0
 
static Atom net_wm_state_above = 0
 
static Atom net_wm_state_below = 0
 
static Atom net_wm_state_demands_attention = 0
 
static Atom net_wm_state_fullscreen = 0
 
static Atom net_wm_state_hidden = 0
 
static Atom net_wm_state_max_horiz = 0
 
static Atom net_wm_state_max_vert = 0
 
static Atom net_wm_state_modal = 0
 
static Atom net_wm_state_shaded = 0
 
static Atom net_wm_state_skip_pager = 0
 
static Atom net_wm_state_skip_taskbar = 0
 
static Atom net_wm_state_stays_on_top = 0
 
static Atom net_wm_state_sticky = 0
 
static Atom net_wm_strut = 0
 
static Atom net_wm_take_activity = 0
 
static Atom net_wm_user_time = 0
 
static Atom net_wm_visible_icon_name = 0
 
static Atom net_wm_visible_name = 0
 
static Atom net_wm_window_opacity = 0
 
static Atom net_wm_window_type = 0
 
static Atom net_wm_window_type_combobox = 0
 
static Atom net_wm_window_type_desktop = 0
 
static Atom net_wm_window_type_dialog = 0
 
static Atom net_wm_window_type_dnd = 0
 
static Atom net_wm_window_type_dock = 0
 
static Atom net_wm_window_type_dropdown_menu = 0
 
static Atom net_wm_window_type_menu = 0
 
static Atom net_wm_window_type_normal = 0
 
static Atom net_wm_window_type_notification = 0
 
static Atom net_wm_window_type_popup_menu = 0
 
static Atom net_wm_window_type_splash = 0
 
static Atom net_wm_window_type_toolbar = 0
 
static Atom net_wm_window_type_tooltip = 0
 
static Atom net_wm_window_type_utility = 0
 
static Atom net_workarea = 0
 
static const int netAtomCount = 89
 
static Bool netwm_atoms_created = False
 
const unsigned long netwm_sendevent_mask
 
static Atom UTF8_STRING = 0
 
static Atom wm_protocols = 0
 
static Atom wm_window_role = 0
 
static Atom xa_wm_state = 0
 

Macro Definition Documentation

#define CHECK_TYPE_MASK (   type)
Value:
case type: \
if( mask & type##Mask ) \
return true; \
break;

Function Documentation

static void create_netwm_atoms ( Display *  d)
static

Definition at line 260 of file netwm.cpp.

static char* nstrdup ( const char *  s1)
static

Definition at line 166 of file netwm.cpp.

static char* nstrndup ( const char *  s1,
int  l 
)
static

Definition at line 176 of file netwm.cpp.

static Window* nwindup ( const Window *  w1,
int  n 
)
static

Definition at line 186 of file netwm.cpp.

static void readIcon ( Display *  display,
Window  window,
Atom  property,
NETRArray< NETIcon > &  icons,
int &  icon_count 
)
static

Definition at line 479 of file netwm.cpp.

static void refdec_nri ( NETRootInfoPrivate *  p)
static

Definition at line 195 of file netwm.cpp.

static void refdec_nwi ( NETWinInfoPrivate *  p)
static

Definition at line 219 of file netwm.cpp.

static int wcmp ( const void *  a,
const void *  b 
)
static

Definition at line 249 of file netwm.cpp.

Variable Documentation

Atom kde_net_wm_activities = 0
static

Definition at line 99 of file netwm.cpp.

Atom kde_net_wm_block_compositing = 0
static

Definition at line 100 of file netwm.cpp.

Atom kde_net_wm_frame_overlap = 0
static

Definition at line 98 of file netwm.cpp.

Atom kde_net_wm_frame_strut = 0
static

Definition at line 91 of file netwm.cpp.

Atom kde_net_wm_shadow = 0
static

Definition at line 101 of file netwm.cpp.

Atom kde_net_wm_temporary_rules = 0
static

Definition at line 97 of file netwm.cpp.

Atom kde_net_wm_window_type_override = 0
static

Definition at line 95 of file netwm.cpp.

Atom kde_net_wm_window_type_topmenu = 0
static

Definition at line 96 of file netwm.cpp.

const long MAX_PROP_SIZE = 100000

Definition at line 164 of file netwm.cpp.

Atom net_active_window = 0
static

Definition at line 58 of file netwm.cpp.

Atom net_client_list = 0
static

Definition at line 51 of file netwm.cpp.

Atom net_client_list_stacking = 0
static

Definition at line 52 of file netwm.cpp.

Atom net_close_window = 0
static

Definition at line 66 of file netwm.cpp.

Atom net_current_desktop = 0
static

Definition at line 55 of file netwm.cpp.

Atom net_desktop_geometry = 0
static

Definition at line 53 of file netwm.cpp.

Atom net_desktop_layout = 0
static

Definition at line 63 of file netwm.cpp.

Atom net_desktop_names = 0
static

Definition at line 56 of file netwm.cpp.

Atom net_desktop_viewport = 0
static

Definition at line 54 of file netwm.cpp.

Atom net_frame_extents = 0
static

Definition at line 89 of file netwm.cpp.

Atom net_moveresize_window = 0
static

Definition at line 69 of file netwm.cpp.

Atom net_number_of_desktops = 0
static

Definition at line 57 of file netwm.cpp.

Atom net_restack_window = 0
static

Definition at line 67 of file netwm.cpp.

Atom net_showing_desktop = 0
static

Definition at line 62 of file netwm.cpp.

Atom net_startup_id = 0
static

Definition at line 86 of file netwm.cpp.

Atom net_supported = 0
static

Definition at line 50 of file netwm.cpp.

Atom net_supporting_wm_check = 0
static

Definition at line 60 of file netwm.cpp.

Atom net_virtual_roots = 0
static

Definition at line 61 of file netwm.cpp.

Atom net_wm_action_change_desk = 0
static

Definition at line 147 of file netwm.cpp.

Atom net_wm_action_close = 0
static

Definition at line 148 of file netwm.cpp.

Atom net_wm_action_fullscreen = 0
static

Definition at line 146 of file netwm.cpp.

Atom net_wm_action_max_horiz = 0
static

Definition at line 145 of file netwm.cpp.

Atom net_wm_action_max_vert = 0
static

Definition at line 144 of file netwm.cpp.

Atom net_wm_action_minimize = 0
static

Definition at line 141 of file netwm.cpp.

Atom net_wm_action_move = 0
static

Definition at line 139 of file netwm.cpp.

Atom net_wm_action_resize = 0
static

Definition at line 140 of file netwm.cpp.

Atom net_wm_action_shade = 0
static

Definition at line 142 of file netwm.cpp.

Atom net_wm_action_stick = 0
static

Definition at line 143 of file netwm.cpp.

Atom net_wm_allowed_actions = 0
static

Definition at line 87 of file netwm.cpp.

Atom net_wm_desktop = 0
static

Definition at line 76 of file netwm.cpp.

Atom net_wm_extended_strut = 0
static

Definition at line 80 of file netwm.cpp.

Atom net_wm_full_placement = 0
static

Definition at line 157 of file netwm.cpp.

Atom net_wm_fullscreen_monitors = 0
static

Definition at line 92 of file netwm.cpp.

Atom net_wm_handled_icons = 0
static

Definition at line 85 of file netwm.cpp.

Atom net_wm_icon = 0
static

Definition at line 82 of file netwm.cpp.

Atom net_wm_icon_geometry = 0
static

Definition at line 81 of file netwm.cpp.

Atom net_wm_icon_name = 0
static

Definition at line 74 of file netwm.cpp.

Atom net_wm_moveresize = 0
static

Definition at line 68 of file netwm.cpp.

Atom net_wm_name = 0
static

Definition at line 72 of file netwm.cpp.

Atom net_wm_pid = 0
static

Definition at line 83 of file netwm.cpp.

Atom net_wm_ping = 0
static

Definition at line 105 of file netwm.cpp.

Atom net_wm_state = 0
static

Definition at line 78 of file netwm.cpp.

Atom net_wm_state_above = 0
static

Definition at line 134 of file netwm.cpp.

Atom net_wm_state_below = 0
static

Definition at line 135 of file netwm.cpp.

Atom net_wm_state_demands_attention = 0
static

Definition at line 136 of file netwm.cpp.

Atom net_wm_state_fullscreen = 0
static

Definition at line 133 of file netwm.cpp.

Atom net_wm_state_hidden = 0
static

Definition at line 132 of file netwm.cpp.

Atom net_wm_state_max_horiz = 0
static

Definition at line 128 of file netwm.cpp.

Atom net_wm_state_max_vert = 0
static

Definition at line 127 of file netwm.cpp.

Atom net_wm_state_modal = 0
static

Definition at line 125 of file netwm.cpp.

Atom net_wm_state_shaded = 0
static

Definition at line 129 of file netwm.cpp.

Atom net_wm_state_skip_pager = 0
static

Definition at line 131 of file netwm.cpp.

Atom net_wm_state_skip_taskbar = 0
static

Definition at line 130 of file netwm.cpp.

Atom net_wm_state_stays_on_top = 0
static

Definition at line 151 of file netwm.cpp.

Atom net_wm_state_sticky = 0
static

Definition at line 126 of file netwm.cpp.

Atom net_wm_strut = 0
static

Definition at line 79 of file netwm.cpp.

Atom net_wm_take_activity = 0
static

Definition at line 106 of file netwm.cpp.

Atom net_wm_user_time = 0
static

Definition at line 84 of file netwm.cpp.

Atom net_wm_visible_icon_name = 0
static

Definition at line 75 of file netwm.cpp.

Atom net_wm_visible_name = 0
static

Definition at line 73 of file netwm.cpp.

Atom net_wm_window_opacity = 0
static

Definition at line 90 of file netwm.cpp.

Atom net_wm_window_type = 0
static

Definition at line 77 of file netwm.cpp.

Atom net_wm_window_type_combobox = 0
static

Definition at line 121 of file netwm.cpp.

Atom net_wm_window_type_desktop = 0
static

Definition at line 110 of file netwm.cpp.

Atom net_wm_window_type_dialog = 0
static

Definition at line 114 of file netwm.cpp.

Atom net_wm_window_type_dnd = 0
static

Definition at line 122 of file netwm.cpp.

Atom net_wm_window_type_dock = 0
static

Definition at line 111 of file netwm.cpp.

Atom net_wm_window_type_dropdown_menu = 0
static

Definition at line 117 of file netwm.cpp.

Atom net_wm_window_type_menu = 0
static

Definition at line 113 of file netwm.cpp.

Atom net_wm_window_type_normal = 0
static

Definition at line 109 of file netwm.cpp.

Atom net_wm_window_type_notification = 0
static

Definition at line 120 of file netwm.cpp.

Atom net_wm_window_type_popup_menu = 0
static

Definition at line 118 of file netwm.cpp.

Atom net_wm_window_type_splash = 0
static

Definition at line 116 of file netwm.cpp.

Atom net_wm_window_type_toolbar = 0
static

Definition at line 112 of file netwm.cpp.

Atom net_wm_window_type_tooltip = 0
static

Definition at line 119 of file netwm.cpp.

Atom net_wm_window_type_utility = 0
static

Definition at line 115 of file netwm.cpp.

Atom net_workarea = 0
static

Definition at line 59 of file netwm.cpp.

const int netAtomCount = 89
static

Definition at line 259 of file netwm.cpp.

Bool netwm_atoms_created = False
static

Definition at line 159 of file netwm.cpp.

const unsigned long netwm_sendevent_mask
Initial value:
= (SubstructureRedirectMask|
SubstructureNotifyMask)

Definition at line 160 of file netwm.cpp.

Atom UTF8_STRING = 0
static

Definition at line 47 of file netwm.cpp.

Atom wm_protocols = 0
static

Definition at line 104 of file netwm.cpp.

Atom wm_window_role = 0
static

Definition at line 88 of file netwm.cpp.

Atom xa_wm_state = 0
static

Definition at line 154 of file netwm.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal