Programming :: Gtk+ Detect Current Active Window C++?

Jun 28, 2010

Detect the current window that has the focus. For example at the moment am using firefox therefore teh function should say firefox is the main window.

View 2 Replies


ADVERTISEMENT

Programming :: Detect Current OS In Compile Time?

Dec 8, 2010

Code:

#if defined(WIN32) || defined(WIN64)
#define WINDOWS
#endif

[code]....

what is the directive thats required to detect a linux system? i want to to be able to detect which platform im compiling on automatically.

View 5 Replies View Related

Programming :: Socket Programming - Detect Whether A Client Socket Is Closed / Active?

Mar 8, 2011

iam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?

client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....

View 3 Replies View Related

Ubuntu :: ESC Key To Close Any Active Window?

Jan 22, 2011

I'd like to set my ESC key to close any active window. Is it possible ?

View 4 Replies View Related

Slackware :: Set Conky Behind The Active Window?

Jun 23, 2011

Is there a way to make conky stay behind my active windows?

View 1 Replies View Related

Slackware :: Laptop Isn't Able To Detect The Current Battery State?

May 1, 2011

My linux laptop isn't able to detect the current battery state. I am using slackware64 13.37 xfce with a Toshiba L645 laptop.

This is what I came up with so far.

Code:
lsmod
Module Size Used by
snd_seq_dummy 1479 0
snd_seq_oss 30116 0

[Code].....

I use a program called conky that reports my cpu frequency and most of the time it's always at 0.93GHz instead of 2.53GHz. Sometimes it jumps to 1.20GHz and 2.53GHz but falls back down to 0.93GHz. Is this normal?

View 13 Replies View Related

OpenSUSE :: 11.3 - Active Window Replaced By 4 Smaller

Dec 5, 2010

I like openSUSE 11.3 very much. When I move the mouse pointer to the upper left corner of the screen, my active window is immediately replaced by 4, smaller windows (I think that at the beginning I had a cube). I'm afraid this gobbles up a lot of memory and henceforth slows down my computer. Is it possible to have only one window "active" at the time? If I want, say a terminal screen, I can always activate it via the "Computer" button?

View 6 Replies View Related

Ubuntu :: Set So New Program Doesn't Become Active Window?

Feb 5, 2011

It drives me craxzy, and I can't find anything I can do about it.When I start a new app--say FireFox, and I return to the window I was in, as soon as each window loads it insists that IT should become the active window.This is a general issue with me--all window type OS's seem to do this, but what I want (and THAT is supposed to be what the computer will do 4 me--what I want!No matter what, I want the active window to remain the active window regardless of what other windows are doing--including newly opening windows. If I want to do something with a new window, I'll go there on my own.I'm often writing and want to research something so will open a browser window, but it takes time for the programs to load & during that time I usually want to continue with whatever I was doing until I finish the thought. As is, I'm reading or typing along, and suddenly the machine pops me into the newly opened window--a real pain,

Of course, if I could tell it to either become active or not depending upon how I call the program, or which program or which program is active, that would be perfect.I'm not sure where the fix might be, but since it's a desktop intee problem, I'm posting it hereBaring a solution, any suggestions as to where that kind of action originates

View 9 Replies View Related

Ubuntu :: Make Active Window Appear Below Panel

Jun 26, 2011

So I was thinking of having my bottom panel just for harbouring active windows. I thought also to uncheck expand so it will grow larger when more windows are active. All of which is not a problem. But there's one thing stopping me from doing this.

Currently the active window stops when it reaches either panel.

[forgot to edit the green bar out. Ops. Ignore it.] So in either bottom corner nothing is displayed. How can I get the active window to go all the way to the bottom of the screen. Whilst the panel still appears above the active window? [Probably won't have transparent panel when doing this.]

View 1 Replies View Related

Debian :: Fast Mouse Scroll Up / Down Changes Active Window

Aug 12, 2015

Fresh install of Debian 8.1, have not changed a single setting anywhere. Was scrolling in the web browser and noticed that if I scrolled up or down fast enough the active window changes. Using kde as the desktop environment. Also this has nothing to do with the browser as it happens with anything I have open. Heck trying to scroll in console and having a document open just flips between the two of them. Only way this does not happen is if I scroll slow enough.

View 1 Replies View Related

OpenSUSE :: Dolphin - Make Left Window Active?

Mar 25, 2010

I generally use dolphin as a file manager under KDE 4.4.1.

This is set up as a split window. Now, whenever I open dolphin, the right hand window is the "active" one. How does one make the left window the active one by default?

View 6 Replies View Related

General :: Bash - Checking Which Window Is Active In A Script?

Aug 8, 2010

In a Linux bash script I can do several things with windows using wmctrl but I'm trying to figure out how to determine what the currently active window is.

View 1 Replies View Related

General :: Active Window Fading When Mouse Leaves It?

Feb 5, 2011

I have been playing around with Ubuntu 10.10 for a few days. I had the functionality of when my mouse left the active window it would fade and any window behind it I moused over would come into focus. I liked this feature, but I broke it somehow. I was playing around with Compiz and all its cool animations, cube transitions, and other stuff. I am not sure if I did something in Compiz to break it or if that is unrelated.

View 3 Replies View Related

OpenSUSE :: KDE - Change Default Blue Glow / Shadow On Active Window?

May 4, 2010

11.2
KDE 4.3.5
I have desktop effects on and window shadows enabled. The main windows don't seem to follow this, nor does any taskbar pop-ups when you hover your mouse over them. I even set the shadow settings to high/annoying settings but I only see it on context/right-click menus.

I don't like the blue shadow because it is too light, but I can't seem to find where to change it. This seems to also apply to in-active windows as far as the size of the shadow but with a gray shadow instead. Still, if the desktop effects were effecting this, then the shadows I see should be large. Plus, desktop effects only give you one color choice with it just being darker on the active window. How to change this?

View 9 Replies View Related

Fedora Installation :: VirtualBox Error: Qt WARNING: QGtkStyle Was Unable To Detect The Current GTK+ Theme

Apr 4, 2010

I tried to install VirtualBox 32 bit on my 64bit Fedora11 OS. I took the 32 bit version as I want to run a 32bit software. I collected all information I could get from other forums. That's what I did: I downloaded and installed [URL]

yum groupinstall "Development Tools"
/etc/init.d/vboxdrv setup

Now I got stucked with the error Qt WARNING: QGtkStyle was unable to detect the current GTK+ theme. I searched for qt or qgtkstyle on my system and found files containing both but don't know what to do here.

View 2 Replies View Related

Ubuntu :: Image Viewer Opened From Nautilus Doesn't Change Active Window / Fix It?

Sep 1, 2010

There's something very annoying about how Nautilus opens "image viewer" windows.
They open, I can see them, but when I press the keyboard, it's still Nautilus which gets the commands.
This is because Nautilus stays the active window!

Most annoyingly, when I want to have a quick look at an image, and then close it, Nautilus closes instead (Alt+F4).

Does anyone know what I'm talking about?
How to solve it?

View 4 Replies View Related

Ubuntu :: Made A Special Script To Restart It, Unable To Invoke It As Cannot Change Active Window?

May 28, 2010

Compiz often keels over and then I have to restart the comptuer because even though I made a special script to restart it, I am unable to invoke it as I cannot change active window.However, since Metacity restarts itself, so should compiz. The question is - how?

View 5 Replies View Related

Ubuntu :: Cannot Click Mouse Outside Current Window?

Mar 24, 2011

I've just recently begun to have a problem with my mouse. I can use it normally in one window, but it will not click outside of this window. I cannot use the title bar buttons either. It seems like right clicking "frees" the mouse, but then it just gets stuck in the next window I open.

View 9 Replies View Related

Programming :: Active Forum / Mailing List For C Programming?

Apr 19, 2010

Just i want to ask doubts in c programming. I dont know whether this is the right place to ask doubts in c. If this is not a correct place, may i know where can i get help for c programming?is there any active forum or mailing list for c programming?

View 6 Replies View Related

Ubuntu Installation :: Does Partitioning HD Damage Current Window OS

Mar 21, 2010

I have a P.C. with Windows XP Pro installed and now I want to put Ubuntu on the H.D. Will the partitioning of the H.D. damage the Windows OS meaning a reinstall of Windows. If it does then I may be a bit stuck as I do not have the Windows install disc. Windows XP was put on the machine by the vendor.

View 4 Replies View Related

Ubuntu :: TightVNC - D Key Minimizes Current Window On Server

Nov 11, 2010

When accessing the server from any client, the 'd' key minimizes the current window on the server (not the VNC client itself). Every other key seems to work fine and I can use the key combo <ALT>-d to issue a 'd', but that is less than convenient. I saw this post [URL] which said to use gconf-editor to set a keyboard layout, but that didn't fix the problem.

Server Environment
Ubuntu 10.10 (upgraded from 10.04)
32-bit
tightvnc server

Client 1
Windows 7
64-bit
tightvncviewer

Client 2
Windows 7
64-bit
realvncviewer

Client 3
Ubuntu 10.10
32-bit
Vinagre

Client 4
Ubuntu 10.10
32-bit
tsclient (uses tightvncviewer)

View 9 Replies View Related

General :: Ubuntu - Bring An Open Window To The Current Desktop?

Aug 2, 2010

Let's say I have a program open on another virtual desktop. Is there a way I can bring that program to the current desktop through a script? The following command is the closest I can get:

wmctrl -a program This will switch to the desktop where the program is open and make it the foremost window. However, instead of going to the desktop where the program is, I want to bring the program to the current desktop. There is also this command:

wmctrl -R program The documentation says that this will do what I want, but it just does the same thing as the former command.

View 1 Replies View Related

Ubuntu :: How To Stop Current Window Following Me When Switching Work Space?

Aug 6, 2011

I would like to know how I stop the current window I am on following me when I switch workspace.for example, I have this web browser open whilst I am typing this, I press Ctrl+. (my shortcut to take me to the workspace to the right), and instead of taking me to what was a nice empty workspace on the right, it sweeps this web browser to it as well.I can't find a way to configure this to my liking, can anyone help?

View 4 Replies View Related

Ubuntu Multimedia :: Can't Detect USB Devices On Minimal Install / No Window Manager - Sort It?

Feb 26, 2011

I'm trying to create a media box for my TV. I've installed a barebones ubuntu from minimal install disc. After that I installed xorg and XBMC. But my usb devices are not automounting. Is there a pacakage im missing? I've read that XBMC should be able to handle mounting of devices and that no window manager or desktop environment is needed to handle this.

I followed these two tutorials and my current install is 10.04 Lucid.
http://forum.xbmc.org/showthread.php?t=38473
http://wiki.xbmc.org/?title=XBMCbuntu

Current version of XBMC is 10.0

View 2 Replies View Related

Programming :: Find The Active TCP Connections And PIDs Corresponding To Them?

Oct 19, 2010

I am programming on Linux middleware so I need to get a list of all active TCP connections. Is there any API to get such information? I know I can find the connections in /proc/net/tcp, but how to find the PIDs? Apparently ps or netstat command is not an option since it is a middleware.

View 6 Replies View Related

Programming :: Checking If A Icecast Stream Is Active

Apr 20, 2010

I run my own icecast2 server. In the near future it looks like, I will be doing some shows. I would like to beable to change my link, so if I am broadcasting, to go to the stream if not pop a box for my schedule.Now from when I was checking to see if my webcam was up or not, i used this.does anyone know haw to change my code for this? I know when I'm not stream it generates a 404 error, in winamp (on windows)

View 3 Replies View Related

Ubuntu Servers :: MySQL - Setup An Active / Active Load Balanced And High Available?

Mar 11, 2011

how to setup an Active/Active Load Balanced and High Available (If one of the nodes is down the system still runs) MySQL cluster. I have found quite a few howto's but I have some things unclear in my mind. I found a few solutions like this one: [URL] or this: [URK] Those are using two or four MySQL nodes, two Load Balancers to avoid a single point of failure but only one MySQL cluster management server. What happens if the MySQL cluster management fails?

I have also found a "MySQL Master-Master Circular Replication" technique but from what I read, with this option there is a chance that conflicts will arise if node A and node B both insert an auto-incrementing key on the same table.

View 1 Replies View Related

Ubuntu :: Shortcut To Access Sudo Nautilus (gksudo Nautilus) From The Current Window

Feb 11, 2011

Is it possible to change my current nautilus window to have sudo capabilities,? e.g. to delete locked files. It may be lazy but if it takes a lot of navigation then it would be handy to somehow activate sudo from the open window without the terminal command (gksudo nautilus) which always begins at root.

View 5 Replies View Related

Programming :: C++ Won't Detect Spaces In A String?

Oct 8, 2010

I have been trying to code a program in C++ that must check for the correct syntax in order to operate. It must find ", " within the string, but I don't know why the compiler won't recognizes spaces.

Code:
#include <iostream>
#include <stdio.h>
#include <string>

[Code]....

So the user must input "<name>, <interest>" with the ", " (comma and space) but even if you respect the syntax the compiler will skip to the else condition. I don't know why, but if I put any other condition like ",s" it will work, but not with spaces.

View 7 Replies View Related

Programming :: How To Detect Compressible Data

Apr 13, 2011

I am working on a project that takes multiple blocks of memory that are no more than 1500 bytes in side and tries to compress them. Currently I just compress them and compare the old length to the new length. If the new length is smaller it copies the compressed data into the original datas memory space.The problem I have is when lots of these blocks of memory do not compress well its huge amounts of wasted CPU.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved