Sponsored Content
Special Forums UNIX and Linux Applications xlib: allow overlay of other windows in full-screen Post 302340869 by aerosmith on Tuesday 4th of August 2009 02:10:39 PM
Old 08-04-2009
xlib: allow overlay of other windows in full-screen

Hi,

I am using the feh slideshow program in full-screen mode. While the slide show is in progress I would like to draw some other windows (something like clock or calendar from gdesklets) on top of this slideshow. Currently feh does not allow me to do that. Below is the code that feh uses to create a window. Any ideas on how to allow feh to give focus to other windows while it is playing the slide show? I have posted a question to feh but looks like the project is dead. Any ideas or information is really appreciated.

Code:
  XSetWindowAttributes attr;
  XClassHint *xch;
  MWMHints mwmhints;
  Atom prop = None;
  attr.backing_store = NotUseful;
  attr.override_redirect = False;
  attr.colormap = cm;
  attr.border_pixel = 0;
  attr.background_pixel = 0;
  attr.save_under = False;
  attr.event_mask =
    StructureNotifyMask | ButtonPressMask | ButtonReleaseMask |
    PointerMotionMask | EnterWindowMask | LeaveWindowMask | KeyPressMask |
    KeyReleaseMask | ButtonMotionMask | ExposureMask | FocusChangeMask |
    PropertyChangeMask | VisibilityChangeMask;

  if (opt.borderless || ret->full_screen) {
    prop = XInternAtom(disp, "_MOTIF_WM_HINTS", True);
    if (prop == None) {
      weprintf("Window Manager does not support MWM hints. "
               "To get a borderless window I have to bypass your wm.");
      attr.override_redirect = True;
      mwmhints.flags = 0;
    } else {
      mwmhints.flags = MWM_HINTS_DECORATIONS;
      mwmhints.decorations = 0;
    }
  } else
    mwmhints.flags = 0;

  ret->win =
    XCreateWindow(disp, DefaultRootWindow(disp), x, y, w, h, 0, depth,
                  InputOutput, vis,
                  CWOverrideRedirect | CWSaveUnder | CWBackingStore |
                  CWColormap | CWBackPixel | CWBorderPixel | CWEventMask,
                  &attr);

  if (mwmhints.flags) {
    XChangeProperty(disp, ret->win, prop, prop, 32, PropModeReplace,
                    (unsigned char *) &mwmhints, PROP_MWM_HINTS_ELEMENTS);
  }

  XSetWMProtocols(disp, ret->win, &wmDeleteWindow, 1);


Last edited by Yogesh Sawant; 08-07-2009 at 04:35 AM.. Reason: added code tags
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Full-Screen Script

Hi guys Pls I would like knew how to execut a script in full-screen. My shell is Korn in HP-UX 10.20. Thanks. Morcegao (1 Reply)
Discussion started by: Morcegao30
1 Replies

2. UNIX for Dummies Questions & Answers

Ubuntu Hardy: How to span windows over more than 1 screen?

Hi, Ive 3 screens, 2 nvidia graphiccards and all works fine with the nvidia binary driver and xinerama. I can maximize all windows an one screen, but now i need to span it over all 3 screens. Any ideas? thanks in advance. (3 Replies)
Discussion started by: mcW
3 Replies

3. SuSE

SLES 11 SP1 X windows login screen disappear ..

Dear All I have a problem (please look the attachment picture.) My SLEL 11 SP1 use run-level 5, after I reboot the server. the Ctrl+Alt F7 console only display the wallpaper... (It should display a lprompt to ask username and password, please look the attachment picture. and the... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

4. Shell Programming and Scripting

Unable to get full message text from Windows Event Logs

Hi all, . I am developing a log monitoring solution in perl for Windows I am using the CPAN module Win32 ::EventLog (0.076) version for getting the events from windows. The problem which I am facing now is all the Windows 2008 machines are upgraded with Service pack2 from then I couldn’t able... (2 Replies)
Discussion started by: kar_333
2 Replies

5. Shell Programming and Scripting

How to get full width of screen, when using large calculation with bc ?

Experts, When doing large calculation the digits in the screen are limiting to 68 digit and then with a \ ( backspace) next line comes. example: ubuntu# echo "123456789 ^ 50 " | bc 37648602365872212683379005814670372328125515868188009630652959693316\... (4 Replies)
Discussion started by: rveri
4 Replies

6. Linux

Only the terminal(command screen) no GUI, for Windows XP ???

Hi All, Am working in a major IT company, due to security issues, being a fresher am not allowed to install or asking for a specific business reason to install it in my system. The thing is i want to learn Linux, due to the same security issues we need Admin pass to install certain... (6 Replies)
Discussion started by: mr_ganapathy
6 Replies

7. UNIX and Linux Applications

Rectangle is flickering while dragging on screen with xlib

Hi, this is my first post here. I wanto make a screencasting program. I want to make a screen part selection to grab coordinates of the screen location. I found a nice prototype #include <X11/Xlib.h> //#include <X11/Xresource.h> #include <stdlib.h> #include <stdio.h> #include... (0 Replies)
Discussion started by: whatnext
0 Replies
DWARF_FORMSIG8(3)					   BSD Library Functions Manual 					 DWARF_FORMSIG8(3)

NAME
dwarf_formsig8 -- return the 64-bit type signature for a DWARF type LIBRARY
DWARF Access Library (libdwarf, -ldwarf) SYNOPSIS
#include <libdwarf.h> int dwarf_formsig8(Dwarf_Attribute attr, Dwarf_Sig8 *ret, Dwarf_Error *err); DESCRIPTION
Function dwarf_formsig8() sets the location pointed to by argument ret to the 64-bit type signature that is the value of the attribute refer- enced by argument attr. The form of argument attr must be DW_FORM_ref_sig8. If argument err is not NULL, it will be used to return an error descriptor in case of an error. RETURN VALUES
Function dwarf_formsig8() returns DW_DLV_OK on success. In case of an error, it returns DW_DLV_ERROR and sets argument err. ERRORS
Function dwarf_formsig8() may fail with the following errors: [DW_DLE_ARGUMENT] Either of arguments attr or ret was NULL. [DW_DLE_ATTR_FORM_BAD] The attribute referenced by argument attr was not of a permitted kind. SEE ALSO
dwarf(3), dwarf_attr(3), dwarf_formflag(3), dwarf_formref(3), dwarf_formsdata(3), dwarf_formstring(3), dwarf_formudata(3), dwarf_hasattr(3) HISTORY
Type signatures were added in version 4 of the DWARF specification. BSD
July 24, 2010 BSD
All times are GMT -4. The time now is 01:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy