Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:28:32+00:00 2026-05-28T21:28:32+00:00

I am trying to create a Linux application – a screensaver, in this case

  • 0

I am trying to create a Linux application – a screensaver, in this case – and it is proving remarkably difficult to find information on the simple task of making a window full-screen. Even the code of existing screensavers makes no mention of how they manage it, and I’ve yet to see any obvious function like XRemoveDecoration().

After much fumbling around, I did manage to create a window that’s the same size as the desktop, with this:

Window win = DefaultRootWindow(disp);
XWindowAttributes getWinAttr;
XGetWindowAttributes(disp, win, &getWinAttr);
win = XCreateWindow(disp, win, 0, 0, getWinAttr.width, getWinAttr.height, 0, vInfo->depth, InputOutput, vInfo->visual, CWBorderPixel|CWColormap|CWEventMask|CWOverrideRedirect, &winAttr );

But that doesn’t do anything to get rid of the titlebar and borders. I know there’s a way, obviously – but I have yet to find anything even pointing in that direction that doesn’t rely on some other massive library being thrown on top (which existing screensavers are definitely not using).

EDIT: Please don’t remove information from my posts. There is a very good reason I explicitly pointed out that existing screensavers aren’t using optional libraries, and that is because I have been analyzing source code for most of the past day.

I have chosen the answer that most directly answers the question, and applies to applications in general.

If you have found this question researching xscreensavers… the same still applies. Yes, xscreensaver has its own API – which is complicated, and actually involves writing more lines of code (yes, seriously). If you want OpenGL in your screensaver, you’ll need to go through another API (xlockmore, a competing system) and a compatibility layer that translates it to xscreensaver.

However, xscreensaver is capable of running any program that can use virtual root windows (look into vroot.h) as a screensaver. So my advice is to just do that – you’ll have more control, no limiting API, and greater portability. (One example I looked at can even compile for Linux or Windows, with the same file!)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:28:33+00:00Added an answer on May 28, 2026 at 9:28 pm

    One way is to bypass the window manager:

    XSetWindowAttributes wa;                                                     
    wa.override_redirect = True;                                           
    XCreateWindow( ..., &wa );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a simple application that is only supposed to be called
I am trying to create a write only file in C on Linux (Ubuntu).
Is it possbile to execute linux commands with java? I am trying to create
First, context: I'm trying to create a command-line-based tool (Linux) that requires login. Accounts
I'm trying follow a tutorial to create a custom USB driver in Linux and
Trying to create a QtRuby application, I get the following error: /usr/lib64/ruby/site_ruby/1.8/Qt/qtruby4.rb:2144: [BUG] Segmentation
I've been trying to use Java's ProcessBuilder to launch an application in Linux that
I'm trying to create a web user interface for a Java application. The user
I'm trying to create a very simple Hello, world program in RoR, but when
Just for fun, I've been using python and gstreamer to create simple Linux audio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.