/[rdesktop]/sourceforge.net/trunk/rdesktop/ewmhints.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/ewmhints.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 467 by astrand, Mon Sep 8 08:30:35 2003 UTC revision 468 by astrand, Mon Sep 15 07:59:36 2003 UTC
# Line 93  get_current_desktop(void) Line 93  get_current_desktop(void)
93          unsigned char *prop_return;          unsigned char *prop_return;
94          int current_desktop;          int current_desktop;
95    
96          if (get_property_value("_NET_CURRENT_DESKTOP", 1, &nitems_return,          if (get_property_value("_NET_CURRENT_DESKTOP", 1, &nitems_return, &prop_return) < 0)
                                &prop_return) < 0)  
97                  return (-1);                  return (-1);
98    
99          if (nitems_return != 1)          if (nitems_return != 1)
# Line 126  get_current_workarea(uint32 * x, uint32 Line 125  get_current_workarea(uint32 * x, uint32
125          const uint32 net_workarea_height_offset = 3;          const uint32 net_workarea_height_offset = 3;
126          const uint32 max_prop_length = 32 * 4;  /* Max 32 desktops */          const uint32 max_prop_length = 32 * 4;  /* Max 32 desktops */
127    
128          if (get_property_value("_NET_WORKAREA", max_prop_length, &nitems_return,          if (get_property_value("_NET_WORKAREA", max_prop_length, &nitems_return, &prop_return) < 0)
                                &prop_return) < 0)  
129                  return (-1);                  return (-1);
130    
131          if (nitems_return % 4)          if (nitems_return % 4)
# Line 141  get_current_workarea(uint32 * x, uint32 Line 139  get_current_workarea(uint32 * x, uint32
139          if (current_desktop < 0)          if (current_desktop < 0)
140                  return -1;                  return -1;
141    
142          return_words = (uint32 *)prop_return;          return_words = (uint32 *) prop_return;
143    
144          *x = return_words[current_desktop * 4 + net_workarea_x_offset];          *x = return_words[current_desktop * 4 + net_workarea_x_offset];
145          *y = return_words[current_desktop * 4 + net_workarea_y_offset];          *y = return_words[current_desktop * 4 + net_workarea_y_offset];

Legend:
Removed from v.467  
changed lines
  Added in v.468

  ViewVC Help
Powered by ViewVC 1.1.26